diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/index.html | 4 | ||||
-rw-r--r-- | templates/posts/header.html | 2 | ||||
-rw-r--r-- | templates/shortcodes/taglink.html | 4 |
3 files changed, 6 insertions, 4 deletions
diff --git a/templates/index.html b/templates/index.html index b39cd9b..c932b7c 100644 --- a/templates/index.html +++ b/templates/index.html @@ -16,7 +16,7 @@ </div> </header> <section class="post-list"> - <h2>Siste innlegg:</h2> + <h2>{{ trans(key="latest", lang=lang) }}</h2> <ul> {% for post in s.pages | reverse %} <li> @@ -30,7 +30,7 @@ </ul> </section> <footer> - <a href="{{ s.permalink }}">Se alle innleggene i {{ s.title }}...</a> + <a href="{{ s.permalink }}">{{ trans(key="allposts", lang=lang) }} {{ s.title }}...</a> </footer> </article> {% endfor %} diff --git a/templates/posts/header.html b/templates/posts/header.html index 0266f6e..9340f87 100644 --- a/templates/posts/header.html +++ b/templates/posts/header.html @@ -10,7 +10,7 @@ Merket: {% for tag in post.taxonomies['tags'] -%} <span> - <a class="tag-link" href="{{ get_taxonomy_url(kind='tags', name=tag) | safe }}"> + <a class="tag-link" href="{{ get_taxonomy_url(kind='tags', name=tag, lang=lang) | safe }}"> {{ tag }} </a> </span> diff --git a/templates/shortcodes/taglink.html b/templates/shortcodes/taglink.html index 6e8642e..75e1fc9 100644 --- a/templates/shortcodes/taglink.html +++ b/templates/shortcodes/taglink.html @@ -1,2 +1,4 @@ {% set tag_url = get_taxonomy_url(kind="tags", name=tag) %} -<a href="{{ tag_url | safe }}" class="taglink">{% if name %}{{ name }}{% else %}{{ tag }}{% endif %}</a> +<a href="{{ tag_url | safe }}" class="taglink"> + {% if name %}{{ name }}{% else %}{{ tag }}{% endif %} +</a> |