# Blog posts

## Add/remove posts

To add or remove a blog post, create or delete a Markdown file in `/_posts`.&#x20;

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](https://greene-lab.gitbook.io/lab-website-template-docs/~/changes/a57wjuxagDtJUR241kyt/basics/components/list) and [post excerpt](https://greene-lab.gitbook.io/lab-website-template-docs/~/changes/a57wjuxagDtJUR241kyt/basics/components/post-excerpt) components.
{% endhint %}

Example:

{% code title="YYYY-MM-DD-your-post-title.md" %}

```markdown
---
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 %}

<table><thead><tr><th width="315">Parameter</th><th width="271">Description</th><th>Default</th></tr></thead><tbody><tr><td><code>title</code></td><td>Title of post.</td><td></td></tr><tr><td><code>image</code></td><td>URL to a thumbnail image for post. Also shows as a background at the top of the post page.</td><td></td></tr><tr><td><code>author</code></td><td>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".</td><td></td></tr><tr><td><code>tags</code></td><td>List of topics/themes for post.</td><td></td></tr><tr><td><p><code>&#x3C;!-- excerpt start/end --></code><br>in body</p><p>OR<br><code>excerpt</code><br>in front matter</p></td><td>Manually specify what should be used as the excerpt when displaying the post with the <a href="components/post-excerpt">post excerpt</a> component.</td><td><a href="https://jekyllrb.com/docs/posts/#post-excerpts">The first paragraph</a></td></tr><tr><td><code>last_modified_at</code></td><td>Manually set date that article was last updated on. Set to <code>""</code> to not show in the <a href="components/post-excerpt">post excerpt</a> component.</td><td>File last saved, taken from filesystem</td></tr></tbody></table>

## 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.
