From b6f3bfb8006588f9bbfd6b07e432ad98ecc311e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 9 Aug 2016 14:26:55 +0200 Subject: [PATCH] Add IsTranslated to Node and Page Makes the templates simpler. See #2309 --- content/content/multilingual.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/content/content/multilingual.md b/content/content/multilingual.md index f5ff46f9c..7e1df45e1 100644 --- a/content/content/multilingual.md +++ b/content/content/multilingual.md @@ -93,13 +93,12 @@ By having the same _base file name_, the content pieces are linked together as t To create a list of links to translated content, use a template similar to this: ``` -{{ $translations := .Translations }} -{{ if gt (len $translations) 0 }} +{{ if .IsTranslated }}

{{ i18n "translations" }}