<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Taxonomy methods on Hugo</title><link>https://v0-122-0--gohugoio.netlify.app/methods/taxonomy/</link><description>Recent content in Taxonomy methods on Hugo</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="https://v0-122-0--gohugoio.netlify.app/methods/taxonomy/index.xml" rel="self" type="application/rss+xml"/><item><title>Alphabetical</title><link>https://v0-122-0--gohugoio.netlify.app/methods/taxonomy/alphabetical/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/methods/taxonomy/alphabetical/</guid><description>The Alphabetical method on a Taxonomy object returns an ordered taxonomy, sorted alphabetically by term.
While a Taxonomy object is a map, an ordered taxonomy is a slice, where each element is an object that contains the term and a slice of its weighted pages.
Before we can use a Taxonomy method, we need to capture a Taxonomy object.
Capture a taxonomy object Consider this site configuration:
hugo. yaml &amp;nbsp; toml &amp;nbsp; json &amp;nbsp; taxonomies: author: authors genre: genres [taxonomies] author = &amp;#39;authors&amp;#39; genre = &amp;#39;genres&amp;#39; { &amp;#34;taxonomies&amp;#34;: { &amp;#34;author&amp;#34;: &amp;#34;authors&amp;#34;, &amp;#34;genre&amp;#34;: &amp;#34;genres&amp;#34; } } And this content structure:</description></item><item><title>ByCount</title><link>https://v0-122-0--gohugoio.netlify.app/methods/taxonomy/bycount/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/methods/taxonomy/bycount/</guid><description>The ByCount method on a Taxonomy object returns an ordered taxonomy, sorted by the number of pages associated with each term.
While a Taxonomy object is a map, an ordered taxonomy is a slice, where each element is an object that contains the term and a slice of its weighted pages.
Before we can use a Taxonomy method, we need to capture a Taxonomy object.
Capture a taxonomy object Consider this site configuration:</description></item><item><title>Count</title><link>https://v0-122-0--gohugoio.netlify.app/methods/taxonomy/count/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/methods/taxonomy/count/</guid><description>The Count method on a Taxonomy object returns the number of number of weighted pages to which the given term has been assigned.
Before we can use a Taxonomy method, we need to capture a Taxonomy object.
Capture a taxonomy object Consider this site configuration:
hugo. yaml &amp;nbsp; toml &amp;nbsp; json &amp;nbsp; taxonomies: author: authors genre: genres [taxonomies] author = &amp;#39;authors&amp;#39; genre = &amp;#39;genres&amp;#39; { &amp;#34;taxonomies&amp;#34;: { &amp;#34;author&amp;#34;: &amp;#34;authors&amp;#34;, &amp;#34;genre&amp;#34;: &amp;#34;genres&amp;#34; } } And this content structure:</description></item><item><title>Get</title><link>https://v0-122-0--gohugoio.netlify.app/methods/taxonomy/get/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://v0-122-0--gohugoio.netlify.app/methods/taxonomy/get/</guid><description>The Get method on a Taxonomy object returns a slice of weighted pages to which the given term has been assigned.
Before we can use a Taxonomy method, we need to capture a Taxonomy object.
Capture a taxonomy object Consider this site configuration:
hugo. yaml &amp;nbsp; toml &amp;nbsp; json &amp;nbsp; taxonomies: author: authors genre: genres [taxonomies] author = &amp;#39;authors&amp;#39; genre = &amp;#39;genres&amp;#39; { &amp;#34;taxonomies&amp;#34;: { &amp;#34;author&amp;#34;: &amp;#34;authors&amp;#34;, &amp;#34;genre&amp;#34;: &amp;#34;genres&amp;#34; } } And this content structure:</description></item></channel></rss>