📘
Lab Website Template docs
  • Introduction
    • Overview
    • Is this right for me?
    • Gallery
    • Support
  • Getting Started
    • Set up your site
    • Set up your URL
    • Tidy up your repo
    • Change your site
    • Preview your site
  • Basics
    • Repo structure
    • Configure your site
    • Edit pages
    • Write basic content
    • Use your logo
    • Customize your theme
    • Team members
    • Blog posts
    • Citations
    • Components
      • Section
      • Figure
      • Button
      • Icon
      • Feature
      • List
      • Citation
      • Card
      • Portrait
      • Post Excerpt
      • Alert
      • Tags
      • Float
      • Grid
      • Cols
      • Search
      • Site Search
  • Advanced
    • Update your template
    • Embeds
    • Math, diagrams, videos, etc.
    • Analytics
    • Data and collections
    • Jekyll plugins
    • Custom components
    • Background knowledge
Powered by GitBook
On this page
  1. Basics
  2. Components

Post Excerpt

An excerpt and info from a blog post

PreviousPortraitNextAlert

Last updated 3 months ago

Typically you'd use this with the component, which would automatically read from posts and pass this component the parameters. But you can also use it stand-alone to manually display individual posts:

{%
  include post-excerpt.html
  lookup="example-blog-post-1"
%}
Parameter
Description

lookup

Lookup post details from posts by filename, without the YYYY-MM-DD- date prefix or .md extension.

title / etc.

The same parameters outlined in . Retrieved from lookup, or passed automatically from list component.

👁️
PREVIEW
list
blog posts