📘
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
  • Add/remove posts
  • Customize post page
  1. Basics

Blog posts

How to add, remove, and edit blog posts

PreviousTeam membersNextCitations

Last updated 3 months ago

Add/remove posts

To add or remove a blog post, create or delete a Markdown file in /_posts.

The filename should be in the format YYYY-MM-DD-your-post-title.md, which Jekyll uses for the post's URL and date (among other things).

Each file will automatically generate its own page based on its filename.

After adding post, you can display them on your site with the and components.

Example:

YYYY-MM-DD-your-post-title.md
---
title: An ordinary day in the life of me
image: images/some-photo.jpg
author: tim-member
tags:
  - biology
  - big data
  - medicine
---

<!-- excerpt start -->
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
<!-- excerpt end -->
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Parameter
Description
Default

title

Title of post.

image

URL to a thumbnail image for post. Also shows as a background at the top of the post page.

author

Filename of author's team member page (without the extension). If found, the portrait and name of the member is displayed automatically. If not found, the template assumes you provided a raw name to display, e.g. "Tim Member". Can be a comma-separated string or an array to display multiple authors.

tags

List of topics/themes for post.

<!-- excerpt start/end --> in body

OR excerpt in front matter

last_modified_at

File last saved, taken from filesystem

Customize post page

The skeleton arrangement and style of blog post pages are based on the /_layouts/post.html template, which you can freely edit to your liking.

Manually specify what should be used as the excerpt when displaying the post with the component.

Manually set date that article was last updated on. Set to "" to not show in the component.

list
post excerpt
post excerpt
The first paragraph
post excerpt