description |
---|
How to add, remove, and edit blog 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.
{% hint style="info" %} After adding post, you can display them on your site with the list and post excerpt components. {% endhint %}
Example:
{% code title="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.
{% endcode %}
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". | |
tags | List of topics/themes for post. | |
OR | Manually specify what should be used as the excerpt when displaying the post with the post excerpt component. | The first paragraph |
last_modified_at | Manually set date that article was last updated on. Set to "" to not show in the post excerpt component. | File last saved, taken from filesystem |
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.