ByTitle
Returns the given page collection sorted by title in ascending order.
Syntax
PAGES.ByTitle
Returns
page.Pages
{{ range .Pages.ByTitle }}
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
{{ end }}
To sort in descending order:
{{ range .Pages.ByTitle.Reverse }}
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
{{ end }}
Last updated:
March 5, 2025
:
content: Remove "related" array from function and method pages (2fcd21ee5)
Improve this page