Skip to content

Commit

Permalink
Merge pull request #33 from jazzominy/chore/seo-meta-tags
Browse files Browse the repository at this point in the history
404 page
  • Loading branch information
jazzominy authored Nov 23, 2024
2 parents f1b1fa9 + 55a733f commit 8e82168
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
31 changes: 31 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
title: "Oops!!"
permalink: /404.html
---

<style>
.not-found-container {
text-align: center;
height: 100%;
padding-top: 2rem;
display: flex;
flex-direction: column;
align-items: center;
}

.not-found-container h1 {
font-size: 6rem;
margin: 0;
line-height: 1;
}

.not-found-container h2 {
font-size: 2rem;
}
</style>

<div class="not-found-container">
<h1>404</h1>
<h2>Page not found</h2>
<a href="/">Return to Home</a>
</div>
6 changes: 4 additions & 2 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@
<meta property="og:description" content="{{ page.excerpt }}">
<meta property="og:url" content="{{ site.url }}{{ page.url }}">
<meta property="og:title" content="{{ page.title }}">
<meta property="og:type" content="article">
<meta property="article:published_time" content="{{ page.date }}">
{% if page.date %}
<meta property="og:type" content="article">
<meta property="article:published_time" content="{{ page.date }}">
{% endif %}
<link rel="canonical" href="{{ site.url }}{{ page.url }}">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/all.min.css">
<style>
Expand Down

0 comments on commit 8e82168

Please sign in to comment.