Back to Hugo

Pages

docs/content/en/methods/site/Pages.md

0.161.1422 B
Original Source

This method returns all page kinds in the current language, in the default sort order. That includes the home page, section pages, taxonomy pages, term pages, and regular pages.

In most cases you should use the RegularPages method instead.

go-html-template
{{ range .Site.Pages }}
  <h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ end }}