-
Notifications
You must be signed in to change notification settings - Fork 64
Closed
Description
When folks are creating blog posts, they are likely not adding all of the frontmatter content. One of the things that is commonly not added is the layout
tag.
THIS IS A PROBLEM
When generating the page for testing - the site applies the default tag of article
and not post
. This works and the site looks mostly the same but it's missing much of the components needed to make the site load properly.
with layout
defined.
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta
name="description"
content="Discover the inspiring stories of Uganda's next generation African Python developers who attended PyconUG 2024 and learn about their experiences in a vibrant tech community."
/>
<title>Black Python Devs | Black Python Devs at PyconUG 2024</title>
<link rel="stylesheet" href="/assets/css/style.css" />
<link rel="stylesheet" href="/assets/css/pico.min.css" />
<link rel="stylesheet" href="/assets/css/pico.colors.min.css" />
<link rel="stylesheet" href="/assets/css/bpd.css" />
<link
rel="canonical"
href="http://localhost:56178/2024-10-25-pycon-ug-2024/"
/>
<link
rel="alternate"
type="application/rss+xml"
title="Black Python Devs"
href="http://localhost:56178/feed.xml"
/>
<link
rel="icon"
href="https://fav.farm/%E2%9C%8A%F0%9F%8F%BE"
type="image/svg"
/>
</head>
</html>
without it (it goes straight to the content)
<p>Wednesday, 9th, October, 2024, was Uganda’s Independence day.</p>
I'm not sure why this is the case but the fix is an easy one.
**ensure that layout: post
is on all of the blog posts.
I will fix this in an upcoming PR to get tests passing but there should be a pre-commit rule to fix this.
Metadata
Metadata
Assignees
Labels
No labels