<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Pages methods on Hugo</title><link>https://v0-122-0--gohugoio.netlify.app/methods/pages/</link><description>Recent content in Pages methods on Hugo</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="https://v0-122-0--gohugoio.netlify.app/methods/pages/index.xml" rel="self" type="application/rss+xml"/><item><title>ByDate</title><link>https://v0-122-0--gohugoio.netlify.app/methods/pages/bydate/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/methods/pages/bydate/</guid><description>When sorting by date, the value is determined by your site configuration, defaulting to the date field in front matter.
{{ range .Pages.ByDate }} &amp;lt;h2&amp;gt;&amp;lt;a href=&amp;#34;{{ .RelPermalink }}&amp;#34;&amp;gt;{{ .LinkTitle }}&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt; {{ end }} To sort in descending order:
{{ range .Pages.ByDate.Reverse }} &amp;lt;h2&amp;gt;&amp;lt;a href=&amp;#34;{{ .RelPermalink }}&amp;#34;&amp;gt;{{ .LinkTitle }}&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt; {{ end }}</description></item><item><title>ByExpiryDate</title><link>https://v0-122-0--gohugoio.netlify.app/methods/pages/byexpirydate/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/methods/pages/byexpirydate/</guid><description>When sorting by expiration date, the value is determined by your site configuration, defaulting to the expiryDate field in front matter.
{{ range .Pages.ByExpiryDate }} &amp;lt;h2&amp;gt;&amp;lt;a href=&amp;#34;{{ .RelPermalink }}&amp;#34;&amp;gt;{{ .LinkTitle }}&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt; {{ end }} To sort in descending order:
{{ range .Pages.ByExpiryDate.Reverse }} &amp;lt;h2&amp;gt;&amp;lt;a href=&amp;#34;{{ .RelPermalink }}&amp;#34;&amp;gt;{{ .LinkTitle }}&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt; {{ end }}</description></item><item><title>ByLanguage</title><link>https://v0-122-0--gohugoio.netlify.app/methods/pages/bylanguage/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/methods/pages/bylanguage/</guid><description>{{ range .Site.AllPages.ByLanguage }} &amp;lt;h2&amp;gt;&amp;lt;a href=&amp;#34;{{ .RelPermalink }}&amp;#34;&amp;gt;{{ .LinkTitle }}&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt; {{ end }} To sort in descending order:
{{ range .Site.AllPages.ByLanguage.Reverse }} &amp;lt;h2&amp;gt;&amp;lt;a href=&amp;#34;{{ .RelPermalink }}&amp;#34;&amp;gt;{{ .LinkTitle }}&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt; {{ end }}</description></item><item><title>ByLastmod</title><link>https://v0-122-0--gohugoio.netlify.app/methods/pages/bylastmod/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/methods/pages/bylastmod/</guid><description>When sorting by last modification date, the value is determined by your site configuration, defaulting to the lastmod field in front matter.
{{ range .Pages.ByLastmod }} &amp;lt;h2&amp;gt;&amp;lt;a href=&amp;#34;{{ .RelPermalink }}&amp;#34;&amp;gt;{{ .LinkTitle }}&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt; {{ end }} To sort in descending order:
{{ range .Pages.ByLastmod.Reverse }} &amp;lt;h2&amp;gt;&amp;lt;a href=&amp;#34;{{ .RelPermalink }}&amp;#34;&amp;gt;{{ .LinkTitle }}&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt; {{ end }}</description></item><item><title>ByLength</title><link>https://v0-122-0--gohugoio.netlify.app/methods/pages/bylength/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/methods/pages/bylength/</guid><description>{{ range .Pages.ByLength }} &amp;lt;h2&amp;gt;&amp;lt;a href=&amp;#34;{{ .RelPermalink }}&amp;#34;&amp;gt;{{ .LinkTitle }}&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt; {{ end }} To sort in descending order:
{{ range .Pages.ByLength.Reverse }} &amp;lt;h2&amp;gt;&amp;lt;a href=&amp;#34;{{ .RelPermalink }}&amp;#34;&amp;gt;{{ .LinkTitle }}&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt; {{ end }}</description></item><item><title>ByLinkTitle</title><link>https://v0-122-0--gohugoio.netlify.app/methods/pages/bylinktitle/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/methods/pages/bylinktitle/</guid><description>{{ range .Pages.ByLinkTitle }} &amp;lt;h2&amp;gt;&amp;lt;a href=&amp;#34;{{ .RelPermalink }}&amp;#34;&amp;gt;{{ .LinkTitle }}&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt; {{ end }} To sort in descending order:
{{ range .Pages.ByLinkTitle.Reverse }} &amp;lt;h2&amp;gt;&amp;lt;a href=&amp;#34;{{ .RelPermalink }}&amp;#34;&amp;gt;{{ .LinkTitle }}&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt; {{ end }}</description></item><item><title>ByParam</title><link>https://v0-122-0--gohugoio.netlify.app/methods/pages/byparam/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/methods/pages/byparam/</guid><description>If the given parameter is not present in front matter, Hugo will use the matching parameter in your site configuration if present.
{{ range .Pages.ByParam &amp;#34;author&amp;#34; }} &amp;lt;h2&amp;gt;&amp;lt;a href=&amp;#34;{{ .RelPermalink }}&amp;#34;&amp;gt;{{ .LinkTitle }}&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt; {{ end }} To sort in descending order:
{{ range (.Pages.ByParam &amp;#34;author&amp;#34;).Reverse }} &amp;lt;h2&amp;gt;&amp;lt;a href=&amp;#34;{{ .RelPermalink }}&amp;#34;&amp;gt;{{ .LinkTitle }}&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt; {{ end }} If the targeted parameter is nested, access the field using dot notation:
{{ range .Pages.ByParam &amp;#34;author.</description></item><item><title>ByPublishDate</title><link>https://v0-122-0--gohugoio.netlify.app/methods/pages/bypublishdate/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/methods/pages/bypublishdate/</guid><description>When sorting by publish date, the value is determined by your site configuration, defaulting to the publishDate field in front matter.
{{ range .Pages.ByPublishDate }} &amp;lt;h2&amp;gt;&amp;lt;a href=&amp;#34;{{ .RelPermalink }}&amp;#34;&amp;gt;{{ .LinkTitle }}&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt; {{ end }} To sort in descending order:
{{ range .Pages.ByPublishDate.Reverse }} &amp;lt;h2&amp;gt;&amp;lt;a href=&amp;#34;{{ .RelPermalink }}&amp;#34;&amp;gt;{{ .LinkTitle }}&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt; {{ end }}</description></item><item><title>ByTitle</title><link>https://v0-122-0--gohugoio.netlify.app/methods/pages/bytitle/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/methods/pages/bytitle/</guid><description>{{ range .Pages.ByTitle }} &amp;lt;h2&amp;gt;&amp;lt;a href=&amp;#34;{{ .RelPermalink }}&amp;#34;&amp;gt;{{ .Title }}&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt; {{ end }} To sort in descending order:
{{ range .Pages.ByTitle.Reverse }} &amp;lt;h2&amp;gt;&amp;lt;a href=&amp;#34;{{ .RelPermalink }}&amp;#34;&amp;gt;{{ .Title }}&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt; {{ end }}</description></item><item><title>ByWeight</title><link>https://v0-122-0--gohugoio.netlify.app/methods/pages/byweight/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/methods/pages/byweight/</guid><description>Assign a weight to a page using the weight field in front matter. The weight must be a non-zero integer. Lighter items float to the top, while heavier items sink to the bottom. Unweighted or zero-weighted pages are placed at the end of the collection.
{{ range .Pages.ByWeight }} &amp;lt;h2&amp;gt;&amp;lt;a href=&amp;#34;{{ .RelPermalink }}&amp;#34;&amp;gt;{{ .LinkTitle }}&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt; {{ end }} To sort in descending order:
{{ range .Pages.ByWeight.Reverse }} &amp;lt;h2&amp;gt;&amp;lt;a href=&amp;#34;{{ .RelPermalink }}&amp;#34;&amp;gt;{{ .</description></item><item><title>GroupBy</title><link>https://v0-122-0--gohugoio.netlify.app/methods/pages/groupby/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/methods/pages/groupby/</guid><description>For the optional sort order, specify either asc for ascending order, or desc for descending order.
{{ range .Pages.GroupBy &amp;#34;Section&amp;#34; }} &amp;lt;p&amp;gt;{{ .Key }}&amp;lt;/p&amp;gt; &amp;lt;ul&amp;gt; {{ range .Pages }} &amp;lt;li&amp;gt;&amp;lt;a href=&amp;#34;{{ .RelPermalink }}&amp;#34;&amp;gt;{{ .LinkTitle }}&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt; {{ end }} &amp;lt;/ul&amp;gt; {{ end }} To sort the groups in descending order:
{{ range .Pages.GroupBy &amp;#34;Section&amp;#34; &amp;#34;desc&amp;#34; }} &amp;lt;p&amp;gt;{{ .Key }}&amp;lt;/p&amp;gt; &amp;lt;ul&amp;gt; {{ range .Pages }} &amp;lt;li&amp;gt;&amp;lt;a href=&amp;#34;{{ .RelPermalink }}&amp;#34;&amp;gt;{{ .LinkTitle }}&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt; {{ end }} &amp;lt;/ul&amp;gt; {{ end }}</description></item><item><title>GroupByDate</title><link>https://v0-122-0--gohugoio.netlify.app/methods/pages/groupbydate/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/methods/pages/groupbydate/</guid><description>When grouping by date, the value is determined by your site configuration, defaulting to the date field in front matter.
The layout string has the same format as the layout string for the time.Format function. The resulting group key is localized for language and region.
For the optional sort order, specify either asc for ascending order, or desc for descending order.
To group content by year and month:
{{ range .</description></item><item><title>GroupByExpiryDate</title><link>https://v0-122-0--gohugoio.netlify.app/methods/pages/groupbyexpirydate/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/methods/pages/groupbyexpirydate/</guid><description>When grouping by expiration date, the value is determined by your site configuration, defaulting to the expiryDate field in front matter.
The layout string has the same format as the layout string for the time.Format function. The resulting group key is localized for language and region.
For the optional sort order, specify either asc for ascending order, or desc for descending order.
To group content by year and month:
{{ range .</description></item><item><title>GroupByLastmod</title><link>https://v0-122-0--gohugoio.netlify.app/methods/pages/groupbylastmod/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/methods/pages/groupbylastmod/</guid><description>When grouping by last modification date, the value is determined by your site configuration, defaulting to the lastmod field in front matter.
The layout string has the same format as the layout string for the time.Format function. The resulting group key is localized for language and region.
For the optional sort order, specify either asc for ascending order, or desc for descending order.
To group content by year and month:</description></item><item><title>GroupByParam</title><link>https://v0-122-0--gohugoio.netlify.app/methods/pages/groupbyparam/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/methods/pages/groupbyparam/</guid><description>For the optional sort order, specify either asc for ascending order, or desc for descending order.
{{ range .Pages.GroupByParam &amp;#34;color&amp;#34; }} &amp;lt;p&amp;gt;{{ .Key | title }}&amp;lt;/p&amp;gt; &amp;lt;ul&amp;gt; {{ range .Pages }} &amp;lt;li&amp;gt;&amp;lt;a href=&amp;#34;{{ .RelPermalink }}&amp;#34;&amp;gt;{{ .LinkTitle }}&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt; {{ end }} &amp;lt;/ul&amp;gt; {{ end }} To sort the groups in descending order:
{{ range .Pages.GroupByParam &amp;#34;color&amp;#34; &amp;#34;desc&amp;#34; }} &amp;lt;p&amp;gt;{{ .Key | title }}&amp;lt;/p&amp;gt; &amp;lt;ul&amp;gt; {{ range .Pages }} &amp;lt;li&amp;gt;&amp;lt;a href=&amp;#34;{{ .RelPermalink }}&amp;#34;&amp;gt;{{ .</description></item><item><title>GroupByParamDate</title><link>https://v0-122-0--gohugoio.netlify.app/methods/pages/groupbyparamdate/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/methods/pages/groupbyparamdate/</guid><description>The layout string has the same format as the layout string for the time.Format function. The resulting group key is localized for language and region.
For the optional sort order, specify either asc for ascending order, or desc for descending order.
To group content by year and month:
{{ range .Pages.GroupByParamDate &amp;#34;eventDate&amp;#34; &amp;#34;January 2006&amp;#34; }} &amp;lt;p&amp;gt;{{ .Key }}&amp;lt;/p&amp;gt; &amp;lt;ul&amp;gt; {{ range .Pages }} &amp;lt;li&amp;gt;&amp;lt;a href=&amp;#34;{{ .RelPermalink }}&amp;#34;&amp;gt;{{ .LinkTitle }}&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt; {{ end }} &amp;lt;/ul&amp;gt; {{ end }} To sort the groups in ascending order:</description></item><item><title>GroupByPublishDate</title><link>https://v0-122-0--gohugoio.netlify.app/methods/pages/groupbypublishdate/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/methods/pages/groupbypublishdate/</guid><description>When grouping by publish date, the value is determined by your site configuration, defaulting to the publishDate field in front matter.
The layout string has the same format as the layout string for the time.Format function. The resulting group key is localized for language and region.
For the optional sort order, specify either asc for ascending order, or desc for descending order.
To group content by year and month:
{{ range .</description></item><item><title>Len</title><link>https://v0-122-0--gohugoio.netlify.app/methods/pages/len/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/methods/pages/len/</guid><description>{{ .Pages.Len }} → 42</description></item><item><title>Limit</title><link>https://v0-122-0--gohugoio.netlify.app/methods/pages/limit/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/methods/pages/limit/</guid><description>{{ range .Pages.Limit 3 }} &amp;lt;h2&amp;gt;&amp;lt;a href=&amp;#34;{{ .RelPermalink }}&amp;#34;&amp;gt;{{ .LinkTitle }}&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt; {{ end }}</description></item><item><title>Next</title><link>https://v0-122-0--gohugoio.netlify.app/methods/pages/next/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/methods/pages/next/</guid><description>The behavior of the Prev and Next methods on a Pages objects is probably the reverse of what you expect.
With this content structure and the page collection sorted by weight in ascending order:
content/ ├── pages/ │ ├── _index.md │ ├── page-1.md &amp;lt;-- front matter: weight = 10 │ ├── page-2.md &amp;lt;-- front matter: weight = 20 │ └── page-3.md &amp;lt;-- front matter: weight = 30 └── _index.md When you visit page-2:</description></item><item><title>Prev</title><link>https://v0-122-0--gohugoio.netlify.app/methods/pages/prev/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/methods/pages/prev/</guid><description>The behavior of the Prev and Next methods on a Pages objects is probably the reverse of what you expect.
With this content structure and the page collection sorted by weight in ascending order:
content/ ├── pages/ │ ├── _index.md │ ├── page-1.md &amp;lt;-- front matter: weight = 10 │ ├── page-2.md &amp;lt;-- front matter: weight = 20 │ └── page-3.md &amp;lt;-- front matter: weight = 30 └── _index.md When you visit page-2:</description></item><item><title>Related</title><link>https://v0-122-0--gohugoio.netlify.app/methods/pages/related/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/methods/pages/related/</guid><description>Based on front matter, Hugo uses several factors to identify content related to the given page. Use the default related content configuration, or tune the results to the desired indices and parameters. See details.
The argument passed to the Related method may be a Page or an options map. For example, to pass the current page:
layouts/_default/single.html {{ with .Site.RegularPages.Related . | first 5 }} &amp;lt;p&amp;gt;Related pages:&amp;lt;/p&amp;gt; &amp;lt;ul&amp;gt; {{ range .</description></item><item><title>Reverse</title><link>https://v0-122-0--gohugoio.netlify.app/methods/pages/reverse/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/methods/pages/reverse/</guid><description>{{ range .Pages.ByDate.Reverse }} &amp;lt;h2&amp;gt;&amp;lt;a href=&amp;#34;{{ .RelPermalink }}&amp;#34;&amp;gt;{{ .LinkTitle }}&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt; {{ end }}</description></item></channel></rss>