From 0677319626fe6c2f0146a9e2cd717ca5db39c91a Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Sun, 4 Jun 2017 23:08:27 +0200 Subject: [PATCH] Don't add translated title for archives. --- nikola/data/themes/base/templates/index.tmpl | 6 +++++- nikola/data/themes/base/templates/list.tmpl | 6 +++++- nikola/data/themes/base/templates/list_post.tmpl | 6 +++++- nikola/data/themes/base/templates/tag.tmpl | 6 +++++- 4 files changed, 20 insertions(+), 4 deletions(-) diff --git a/nikola/data/themes/base/templates/index.tmpl b/nikola/data/themes/base/templates/index.tmpl index 6594c4406f..0bfa0f7da6 100644 --- a/nikola/data/themes/base/templates/index.tmpl +++ b/nikola/data/themes/base/templates/index.tmpl @@ -24,7 +24,11 @@

${messages("Also available in:")}

%for language, classification, name in other_languages: -

${messages("LANGUAGE", language)} (${name|h})

+

${messages("LANGUAGE", language)} + %if kind != 'archive': + (${name|h}) + %endif +

%endfor
%endif diff --git a/nikola/data/themes/base/templates/list.tmpl b/nikola/data/themes/base/templates/list.tmpl index 5f6418d104..9f16d9ea48 100644 --- a/nikola/data/themes/base/templates/list.tmpl +++ b/nikola/data/themes/base/templates/list.tmpl @@ -20,7 +20,11 @@

${messages("Also available in:")}

%for language, classification, name in other_languages: -

${messages("LANGUAGE", language)} (${name|h})

+

${messages("LANGUAGE", language)} + %if kind != 'archive': + (${name|h}) + %endif +

%endfor
%endif diff --git a/nikola/data/themes/base/templates/list_post.tmpl b/nikola/data/themes/base/templates/list_post.tmpl index 47d96b930d..2e9f42cdbd 100644 --- a/nikola/data/themes/base/templates/list_post.tmpl +++ b/nikola/data/themes/base/templates/list_post.tmpl @@ -20,7 +20,11 @@

${messages("Also available in:")}

%for language, classification, name in other_languages: -

${messages("LANGUAGE", language)} (${name|h})

+

${messages("LANGUAGE", language)} + %if kind != 'archive': + (${name|h}) + %endif +

%endfor
%endif diff --git a/nikola/data/themes/base/templates/tag.tmpl b/nikola/data/themes/base/templates/tag.tmpl index 0aadcd018c..76f6865013 100644 --- a/nikola/data/themes/base/templates/tag.tmpl +++ b/nikola/data/themes/base/templates/tag.tmpl @@ -43,7 +43,11 @@

${messages("Also available in:")}

%for language, classification, name in other_languages: -

${messages("LANGUAGE", language)} (${name|h})

+

${messages("LANGUAGE", language)} + %if kind != 'archive': + (${name|h}) + %endif +

%endfor
%endif