Shortcodes

Numbered List

Author oxypteros

Example:

Code

{{< num-list TITLE="Analysis of Forensic Evidence" STYLE="card" LIMIT="3" >}}

Overview

A numbered list of a section child pages, offering four different styles and a page limit option.

Usage

  • Designed for groups of pages that must be read in a specific order, such as book chapters or tutorial steps.
  • Use this shortcode on section pages (i.e. _index.md).

Tip: The sorting of the list is based first on weight and then by date.

Parameters Reference

TITLE
TITLE="Example title" — (string, optional)
H2 heading.
STYLE
STYLE="card-list" — (string, optional)
Rendering style: card, pill, list or card-list.
Default: card.
LIMIT
LIMIT="10" — (integer, optional)
Maximum number of items to display.

Error Reporting

  • Warnings are printed to the Hugo terminal.
  • OCD enabled.

Error Codes

ocd-sc-101
Unrecognized parameter detected.
ocd-sc-100
Invalid STYLE value detected.
Edit this page on Github