Shortcodes

Recent Posts

Author oxypteros

Example:

Code

{{< recent TITLE="Recent Cases" LIMIT="3" >}} 

Overview

Displays a list of the recent posts as card links with the title, series, category, and a pseudo-dynamic New badge.

Usage

  • Use this shortcode on the homepage and/or section pages (i.e. _index.md).
  • Posts published within 7 days from the latest site build will display a New badge.

Tip: If you set a LIMIT, the most recent posts (sorted by date) will appear, up to that number.

Parameters Reference

TITLE
TITLE="Example Title" — (string, optional)
H2 heading.
LIMIT
LIMIT="4" — (integer, optional)
Maximum number of posts to display.
Default value: 4
Edit this page on Github