diff --git a/README.md b/README.md index 8096589..cf2f965 100644 --- a/README.md +++ b/README.md @@ -183,6 +183,7 @@ params: piwikTrackerUrl: "" # Matamo url, schemaless and no slash on end (example.org/matamo). poweredby: true # Show powered by hugo in footer realfavicongenerator: # If full set of favicons, site manifest etc. exists, default false. + related: false # Show related post under a "See also" section, default false. safariPinnedColor: # Hex color value, used in meta tags, default "#000000". searchLimit: 20 # Max number of search hits, default 20. sidebar: true # Show a sidebar to the right diff --git a/i18n/ar.toml b/i18n/ar.toml index cd1f5b5..ee6bcd5 100644 --- a/i18n/ar.toml +++ b/i18n/ar.toml @@ -49,6 +49,9 @@ other = "على" [string_recent_content] other = "محتوى حديث" +[string_see_also] +other = "See also" + [js_required] other = "يجب تفعيل جافاسكريبت في المتصفح لاستخدام هذه الوظيفة." diff --git a/i18n/de.toml b/i18n/de.toml index 41c20e4..506c90c 100644 --- a/i18n/de.toml +++ b/i18n/de.toml @@ -49,6 +49,9 @@ other = "auf" [string_recent_content] other = "Aktuelle Inhalte" +[string_see_also] +other = "See also" + [js_required] other = "Javascript muss aktiviert sein um dieses Kontaktformular zu nutzen." diff --git a/i18n/en.toml b/i18n/en.toml index 41d38d6..38a7296 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -49,6 +49,9 @@ other = "on" [string_recent_content] other = "Recent content" +[string_see_also] +other = "See also" + [js_required] other = "You must have Javascript enabled to use this function." diff --git a/i18n/fr.toml b/i18n/fr.toml index 8da1296..440dee0 100644 --- a/i18n/fr.toml +++ b/i18n/fr.toml @@ -49,6 +49,9 @@ other = "sur" [string_recent_content] other = "Contenu récent" +[string_see_also] +other = "See also" + [js_required] other = "Javascript doit être activé pour utiliser ce formulaire de contact." diff --git a/i18n/he.toml b/i18n/he.toml index d1c16e6..7640b70 100644 --- a/i18n/he.toml +++ b/i18n/he.toml @@ -49,6 +49,9 @@ other = "על" [string_recent_content] other = "תוכן מעודכן" +[string_see_also] +other = "See also" + [js_required] other = "javascript פונקציה זו חייבת" diff --git a/i18n/id.toml b/i18n/id.toml index 3b7b4e4..2d1670a 100644 --- a/i18n/id.toml +++ b/i18n/id.toml @@ -49,6 +49,9 @@ other = "pada" [string_recent_content] other = "Konten Terkini" +[string_see_also] +other = "See also" + [js_required] other = "Anda harus mengaktifkan Javascript untuk menggunakan fasilitas ini." diff --git a/i18n/nb.toml b/i18n/nb.toml index 44af074..a35e861 100644 --- a/i18n/nb.toml +++ b/i18n/nb.toml @@ -49,6 +49,9 @@ other = "på" [string_recent_content] other = "Siste innhold" +[string_see_also] +other = "See also" + [js_required] other = "Du må ha skrudd på Javascript for å bruke denne funksjonen." diff --git a/i18n/pt.toml b/i18n/pt.toml index 02d4c19..0ae8a3d 100644 --- a/i18n/pt.toml +++ b/i18n/pt.toml @@ -50,6 +50,9 @@ other = "em" [string_recent_content] other = "Conteúdo recente" +[string_see_also] +other = "See also" + [js_required] other = "Você deve ter o Javascript habilitado para usar este formulário de contato" diff --git a/i18n/sv.toml b/i18n/sv.toml index 469ceb8..f8adc45 100644 --- a/i18n/sv.toml +++ b/i18n/sv.toml @@ -49,6 +49,9 @@ other = "på" [string_recent_content] other = "Senaste innehåll" +[string_see_also] +other = "Se också" + [js_required] other = "Du behöver ha Javascript aktiverat för att använda denna funktion." diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 4c891f7..0842fdb 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -9,6 +9,8 @@
{{ .Content }} +{{ if $.Param "related" | default false }}{{ partial "related.html" . }}{{ end -}} + {{ if ne .Lastmod .Date }}{{ partial "dates.html" . }}{{ end -}}
diff --git a/layouts/partials/language-selector.html b/layouts/partials/language-selector.html index d4945c3..68f21bb 100644 --- a/layouts/partials/language-selector.html +++ b/layouts/partials/language-selector.html @@ -1,7 +1,8 @@

{{ i18n "lang_select_title" }}