Skip to content

blog posts

Andrew St Clair edited this page Nov 17, 2022 · 2 revisions

Blog Posts

Blog posts live in the src/blog-posts directory

There is some variables at the top that need to be filled out, these are used across the website for various things.

At the bottom of the file is the html that forms the blog post itself

Template

---
layout: blogpost.liquid
tags: ["blog", "posts"]
keywords: ["keyword1", "keyword2"]
date: 2022-11-17T18:37:30+11:00
eleventyNavigation:
  key: samplepost
  parent: blog
  title: Post title
  subtitle: Post subtitle
  excerpt: Post excerpt
---
<h2>Sample Post</h2>
<p>Hello there</p>

The layout must be kept as is

you can add more tags, but leave the existing ones there, both tags and keywords are advertised to search engines

Update the date to when the post was created, (this will be changed to git Created when that becomes available)

Eleventy Navigation is pretty self explanatory, though the key must be unique

Clone this wiki locally