aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/resources/templates/layouts/note.html6
-rw-r--r--src/main/resources/templates/views/macros/tags.html8
2 files changed, 3 insertions, 11 deletions
diff --git a/src/main/resources/templates/layouts/note.html b/src/main/resources/templates/layouts/note.html
index e832dc63..e22d76d5 100644
--- a/src/main/resources/templates/layouts/note.html
+++ b/src/main/resources/templates/layouts/note.html
@@ -1,5 +1 @@
-{% import "views/macros/tags" %}
-<p>{{ msg | formatMessage }}</p>
-{% if msg.tags | length > 0 %}
-<div class="msg-tags">{{ allTags(baseUri, msg.tags | tagsList) }}</div>
-{% endif %} \ No newline at end of file
+{% import "views/macros/tags" %}<p>{{ msg | formatMessage }}</p>{% if msg.tags | length > 0 %}<div class="msg-tags">{{ allTags(baseUri, msg.tags | tagsList) }}</div>{% endif %} \ 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 c52847fc..d1b3fdea 100644
--- a/src/main/resources/templates/views/macros/tags.html
+++ b/src/main/resources/templates/views/macros/tags.html
@@ -1,11 +1,7 @@
{% macro tags(uname="", tagsList) %}
-{% for tag in tagsList %}
-<a class="hashtag" href="/{{ uname }}/?tag={{ tag | urlencode }}">{{ tag }}</a>
-{% endfor %}
+{% 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 %}
+{% for tag in tagsList %}<a class="hashtag" href="{{ baseUri }}tag/{{ tag | urlencode }}">#{{ tag }}</a>{% endfor %}
{% endmacro %} \ No newline at end of file