From 158df174ad5b3b514c78e9711d82b548c5a6680a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Thu, 29 Nov 2018 10:21:52 +0100 Subject: [PATCH] Document .Sites and .Sites.First Fixes #657 --- content/en/variables/page.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/en/variables/page.md b/content/en/variables/page.md index 95c75dec8..5ef6247d4 100644 --- a/content/en/variables/page.md +++ b/content/en/variables/page.md @@ -156,6 +156,12 @@ http://remarkjs.com) .Site : see [Site Variables](/variables/site/). +.Sites +: returns all sites (languages). A typical use case would be to link back to the main language: `...`. + +.Sites.First +: returns the site for the first language. If this is not a multilingual setup, it will return itself. + .Summary : a generated summary of the content for easily showing a snippet in a summary view. The breakpoint can be set manually by inserting <!--more--> at the appropriate place in the content page. See [Content Summaries](/content-management/summaries/) for more details.