diff options
author | Vitaly Takmazov | 2021-08-26 18:09:20 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2021-08-26 18:13:20 +0300 |
commit | 06d89c8784dd9e8745837cbd3295e3b25ad6b43f (patch) | |
tree | c71a74322802aec73f8db01d2edcac862f3d706d /src/main | |
parent | f1e7c570346f7d09b08aba3fb490de6f5c2688d6 (diff) |
ActivityPub: improve Note layout
add rel=tag on tag links, remove more line breaks
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/resources/templates/layouts/note.html | 2 | ||||
-rw-r--r-- | src/main/resources/templates/views/macros/tags.html | 9 |
2 files changed, 3 insertions, 8 deletions
diff --git a/src/main/resources/templates/layouts/note.html b/src/main/resources/templates/layouts/note.html index 7f704925..8c3d535d 100644 --- a/src/main/resources/templates/layouts/note.html +++ b/src/main/resources/templates/layouts/note.html @@ -1 +1 @@ -{% import "views/macros/tags" %}<p>{{ msg | formatMessage }}{% if msg.tags | length > 0 %} {{ allTags(baseUri, msg.tags | tagsList) }}{% endif %}</p>
\ No newline at end of file +{% import "views/macros/tags" %}<p>{{ msg | formatMessage }}{% if msg.tags | length > 0 %}{{ allTags(baseUri, msg.tags | tagsList) }}{% endif %}</p>
\ No newline at end of file diff --git a/src/main/resources/templates/views/macros/tags.html b/src/main/resources/templates/views/macros/tags.html index d1b3fdea..459cedd6 100644 --- a/src/main/resources/templates/views/macros/tags.html +++ b/src/main/resources/templates/views/macros/tags.html @@ -1,7 +1,2 @@ -{% macro tags(uname="", tagsList) %} -{% for tag in tagsList %}<a class="hashtag" href="/{{ uname }}/?tag={{ tag | urlencode }}">{{ tag }}</a>{% endfor %} -{% endmacro %} - -{% macro allTags(baseUri, tagsList) %} -{% for tag in tagsList %}<a class="hashtag" href="{{ baseUri }}tag/{{ tag | urlencode }}">#{{ tag }}</a>{% endfor %} -{% endmacro %}
\ No newline at end of file +{% macro tags(uname="", tagsList) %}{% for tag in tagsList %}<a class="hashtag" href="/{{ uname }}/?tag={{ tag | urlencode }}">{{ tag }}</a>{% endfor %}{% endmacro %} +{% macro allTags(baseUri, tagsList) %}{% for tag in tagsList %}<a class="hashtag" href="{{ baseUri }}tag/{{ tag | urlencode }}" rel="tag">#{{ tag }}</a>{% endfor %}{% endmacro %}
\ No newline at end of file |