Shortcodes
Featured
Author
oxypteros
The Case of the last Donut
It sat there, a beacon of glazed perfection, promised to one, coveted by all.
Then, in a brazen act that shattered the morning calm, the last donut vanished.
No witnesses, no ransom note, only a lingering aroma of sweet betrayal and a gaping hole in the box.
Who dared to commit this confectionary crime?
Was it a desperate act of hunger, a calculated move in office pastry politics, or something far more chilling?
Join us, as we sift through the sprinkles of suspicion.
No witnesses, no ransom note, only a lingering aroma of sweet betrayal and a gaping hole in the box.
Who dared to commit this confectionary crime?
Was it a desperate act of hunger, a calculated move in office pastry politics, or something far more chilling?
Join us, as we sift through the sprinkles of suspicion.
Code
{{< featured TYPE="plain" >}}
Overview
Displays a featured post with a title, summary, and Read Now link.
Usage
- Set
featured = true
in the frontmatter of the content page you want to feature. - Use this shortcode on the homepage and section pages (i.e.
_index.md
). - The shortcode displays the page summary based on Hugo’s priority:
- A
<!--more-->
marker in the Markdown content. - A manually defined
summary
in the front matter. - An automatically generated excerpt (first
~70
words).
- A
Alpha recommends using a manually defined frontmatter summary (summary = ""
) for better readability, visual consistency, and SEO.
Tip: Only one featured post is shown at a time. If multiple posts are marked, the most recent one (by date) is selected.
Parameters Reference
- TYPE
TYPE="plain"
— (string, optional)- Controls the visual style of the featured section.
- Accepted values:
banner
,simple
,plain
- If omitted, the default style is
plain