Skip to content

Commit

Permalink
Add .html suffix to slug links
Browse files Browse the repository at this point in the history
  • Loading branch information
ewels committed Mar 11, 2024
1 parent 9f4534f commit 240071c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/pages/blog/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const dateString = (d: Date) => {
return (
<section class="blg-summary">
<h3>
<a href={"/blog/" + post.slug}>{post.data.title}</a>
<a href={"/blog/" + post.slug + ".html"}>{post.data.title}</a>
</h3>
<div class="timeline-info hidden-xs">
<img src={"/img/" + post.data.icon} class="blg-author" alt={post.data.author} />
Expand Down
2 changes: 1 addition & 1 deletion src/pages/feed.xml.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export async function GET(context) {
title: post.data.title,
pubDate: post.data.date,
description: post.data.description,
link: `/blog/${post.slug}/`,
link: `/blog/${post.slug}.html`,
})),
customData: `<language>en-gb</language>`,
});
Expand Down
4 changes: 2 additions & 2 deletions src/pages/podcasts.astro
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const dateString = (d: Date) => {
return (
<div class="blg-summary podcast" data-golive={post.data.date}>
<h3>
<a href={"/podcast/" + post.slug}>
<a href={"/podcast/" + post.slug + ".html"}>
<span class="label label-success">Episode {post.data.episode}</span> {post.data.title}
</a>
</h3>
Expand All @@ -51,7 +51,7 @@ const dateString = (d: Date) => {
</ul>
<hr />
<p class="blg-text">{post.data.description}</p>
<a href={"/podcast/" + post.slug}>
<a href={"/podcast/" + post.slug + ".html"}>
<img src={post.data.image} class="podcast-thumb-img" />
</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/tags/[tag].astro
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ let lastMonth = "";
<ul>
<li>
{new Date(post.data.date).getDate().toString().padStart(2, "0")} -{" "}
<a href={"/blog/" + post.slug}>{post.data.title}</a>
<a href={"/blog/" + post.slug + ".html"}>{post.data.title}</a>
</li>
</ul>,
);
Expand Down

0 comments on commit 240071c

Please sign in to comment.