concept list in category hugo

appears as: lists, list, list, The list
Hugo in Action: Static sites and dynamic JAMstack apps

This is an excerpt from Manning's book Hugo in Action: Static sites and dynamic JAMstack apps.

3.1.2 Headings, lists and other block elements

We need headings and lists to provide proper structure to the terms of use and the privacy policy page for the Acme corporation website. There are two ways to create top level headings. First is to underline the text with a set of equal signs for level one or with dashes for level two headings. This makes headings highlighted and readable. The second approach is to use hashes (#) before the text. Single # sign creates level 1 and double creates level 2 headings. We can use this to reach until level 6 of headings in most parsers. To distinguish with hashtags that have become popular to label issues, GitHub Flavored Markdown requires a space after the hash sign to be considered a valid heading. Hashes need to present at the start of a new line. Those in between text do not create headings.

# config/_default/related.yaml
threshold: 50  # Require a page to have a minimum score of 50 points to be listed as a related page (higher is better). It needs to be a number between 0 and 100.
includeNewer: true # Pages created after the supplied page are also matched to find related pages. This can cause the list of related pages to change as we add more content.
indices:
- name: tags  # The tags from the front matter are matched to create the score
  weight: 10  # Each matching tag gives 10 points.
- name: date  # Give scores to pages matching the date pattern
  weight: 1
  pattern: 2006 # Pages in the same calendar year get 1 point.