chore: more consistent slugging

This commit is contained in:
Cory Dransfeldt 2024-06-03 11:39:41 -07:00
parent ae13df9813
commit a18d0049ba
No known key found for this signature in database
9 changed files with 15 additions and 18 deletions

View file

@ -16,7 +16,7 @@ permalink: "/posts/{% if pagination.pageNumber > 0 %}{{ pagination.pageNumber }}
{{ post.date | date: "%B %e, %Y" }}
</time>
</div>
<a href="{{ post.url }}">
<a href="{{ post.slug }}">
<h2 class="flex-centered">{{ post.title }}</h2>
</a>
<span class="p-author h-card hidden">{{ meta.siteName }}</span>

View file

@ -4,10 +4,10 @@ pagination:
data: posts
size: 1
alias: post
permalink: "/posts/{{ post.date | date: '%Y' }}/{{ post.title | slugifyPost }}/index.html"
permalink: "{{ post.slug }}/index.html"
schema: blog
---
{%- capture postUrl %}{{ meta.url }}{{ post.url }}{% endcapture -%}
{%- capture postUrl %}{{ meta.url }}{{ post.slug }}{% endcapture -%}
<article class="h-entry">
<div class="flex-centered gap-xs icon-small icon-light">
{% tablericon "calendar-month" "Date" %}