ByLanguage
Returns the given page collection sorted by language in ascending order.
Syntax
PAGES.ByLanguage
Returns
page.Pages
{{ range .Site.AllPages.ByLanguage }}
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ end }}
To sort in descending order:
{{ range .Site.AllPages.ByLanguage.Reverse }}
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ end }}
Last updated:
March 5, 2025
:
content: Consolidate configuration documentation (b6cae5cbc)
Improve this page