Skip to content

Commit

Permalink
Added year to blog navigation (#402)
Browse files Browse the repository at this point in the history
Modified the blog navigation to be `/blog/<YEAR>/<TITLE>` to help
preventing duplicated names.

Added a `404` page.

## Summary

- **New Features**
- Introduced a user-friendly "Not Found" error page with a clear message
and visual elements.
  
- **Improvements**
- Updated blog post permalink structure to include the publication year,
enhancing organization and SEO.
  • Loading branch information
Bullrich authored Sep 19, 2024
1 parent db7a776 commit 35d5b1a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions src/404.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
layout: "layouts/info.html"
title: Oops! Not Found
permalink: 404.html
---

If you were looking for something here, it may <span class="font-bold">have been moved</span>.

You should go back to the <a href="/" class="link link-secondary">home page</a> and look from there.

<img src="{{ '/img/not_found.webp' | url }}" class="h-80 mx-auto rounded-3xl border-accent border-2">

2 changes: 1 addition & 1 deletion src/blog/blog.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"layout": "layouts/blog.html",
"permalink": "/blog/{{ page.fileSlug }}.html"
"permalink": "/blog/{{ page.date.getFullYear() }}/{{ page.fileSlug }}.html"
}
Binary file added src/img/not_found.webp
Binary file not shown.

0 comments on commit 35d5b1a

Please sign in to comment.