From 1a3ff61ef61e74a43d10a7c5663dd3ffd1e2a126 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Mon, 3 Oct 2016 17:57:08 +0300 Subject: [PATCH] layouts/_default/single.html: Add basic support for multi-language content Hugo 0.17 will allow you to write content and user interface strings in multiple languages. Requires the user to amend their config a bit though. See: https://github.com/spf13/hugo/blob/master/docs/content/content/multilingual.md --- layouts/_default/single.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index bbd8438..d269198 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -7,6 +7,16 @@ {{ .Content }} + {{ if .IsTranslated }} +

Translations

+ + {{ end }} {{ if not .Site.Params.sharingicons.hide }} {{ partial "sharing-icons.html" . }} {{ end }}