Skip to content

Commit

Permalink
Don't add translated title for archives.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Jun 4, 2017
1 parent 884a488 commit 93cfc3e
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
6 changes: 5 additions & 1 deletion nikola/data/themes/base/templates/index.tmpl
Expand Up @@ -24,7 +24,11 @@
<div class="translationslist translations">
<h3 class="translationslist-intro">${messages("Also available in:")}</h3>
%for language, classification, name in other_languages:
<p><a href="${_link(kind, classification, language)}" rel="alternate">${messages("LANGUAGE", language)} (${name|h})</a></p>
<p><a href="${_link(kind, classification, language)}" rel="alternate">${messages("LANGUAGE", language)}
%if kind != 'archive':
(${name|h})
%endif
</a></p>
%endfor
</div>
%endif
Expand Down
6 changes: 5 additions & 1 deletion nikola/data/themes/base/templates/list.tmpl
Expand Up @@ -20,7 +20,11 @@
<div class="translationslist translations">
<h3 class="translationslist-intro">${messages("Also available in:")}</h3>
%for language, classification, name in other_languages:
<p><a href="${_link(kind, classification, language)}" rel="alternate">${messages("LANGUAGE", language)} (${name|h})</a></p>
<p><a href="${_link(kind, classification, language)}" rel="alternate">${messages("LANGUAGE", language)}
%if kind != 'archive':
(${name|h})
%endif
</a></p>
%endfor
</div>
%endif
Expand Down
6 changes: 5 additions & 1 deletion nikola/data/themes/base/templates/list_post.tmpl
Expand Up @@ -20,7 +20,11 @@
<div class="translationslist translations">
<h3 class="translationslist-intro">${messages("Also available in:")}</h3>
%for language, classification, name in other_languages:
<p><a href="${_link(kind, classification, language)}" rel="alternate">${messages("LANGUAGE", language)} (${name|h})</a></p>
<p><a href="${_link(kind, classification, language)}" rel="alternate">${messages("LANGUAGE", language)}
%if kind != 'archive':
(${name|h})
%endif
</a></p>
%endfor
</div>
%endif
Expand Down
6 changes: 5 additions & 1 deletion nikola/data/themes/base/templates/tag.tmpl
Expand Up @@ -43,7 +43,11 @@
<div class="translationslist translations">
<h3 class="translationslist-intro">${messages("Also available in:")}</h3>
%for language, classification, name in other_languages:
<p><a href="${_link(kind, classification, language)}" rel="alternate">${messages("LANGUAGE", language)} (${name|h})</a></p>
<p><a href="${_link(kind, classification, language)}" rel="alternate">${messages("LANGUAGE", language)}
%if kind != 'archive':
(${name|h})
%endif
</a></p>
%endfor
</div>
%endif
Expand Down

0 comments on commit 93cfc3e

Please sign in to comment.