Latest

Displays latest items from posts, projects…

Frontmatter

blocks:
  - type: latest
    heading: {} # (optional)
      surtitle: '' # string (optional)
      title: '' # string (optional)
      text: '' # markdown (optional)
    section: '' # string [posts, publications, products…]
    count: 4 # number, defaults to 3 (optional)
    show_more: true # boolean, adds a link to the section index (optional)
    ui: {} # (optional)
      theme: '' # [accent, black, dark, highlight, light, neutral, white] (optional)
      grid: '' # [xsmall, small, medium, large, container, full] (optional)
      offset: '' # [start, center, end] (optional)
      align: '' # [start, center, end] (optional)
      layout: '' # [grid, list] (optional)
      scrollsnap: '' # [none, sm, md, lg, xl, all] or object (optional)

Pages are ordered pinned first — those with a weight — then by date when the section has one, by title otherwise. section: pages picks up every page flagged isPage: true.

The block class carries the section, block-latest-posts, so a section can be styled on its own.

See Common keys for heading, footing, scrollsnap and the full ui reference.

Demo visual renderer

Files

CMS availability

CMSHugolify Admin v2
CloudCannonAvailable
Decap CMSAvailable
Netlify CMSAvailable
Pages CMSAvailable
Static CMSAvailable
Sveltia CMSAvailable
Tina CMSAvailable