diff options
Diffstat (limited to 'docs/content/en/variables/page.md')
-rw-r--r-- | docs/content/en/variables/page.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/content/en/variables/page.md b/docs/content/en/variables/page.md index 95c75dec8..5ef6247d4 100644 --- a/docs/content/en/variables/page.md +++ b/docs/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: `<a href="{{ .Sites.First.Home.RelPermalink }}">...</a>`. + +.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 <code><!--more--></code> at the appropriate place in the content page. See [Content Summaries](/content-management/summaries/) for more details. |