Back button on blog posts

This commit is contained in:
Firq 2023-03-10 19:22:05 +01:00
parent 447e4d29ee
commit 4e85915ebe
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20

View file

@ -16,6 +16,7 @@ const date = new Date(frontmatter.pubDate).toLocaleDateString(
---
<Layout title={title} currentpage="blog" descriptionOverride={description}>
<a href="/blog"><i class="iconoir-fast-arrow-left"></i>Back to all posts</a>
<div>
<h1>
{frontmatter.title}
@ -28,6 +29,18 @@ const date = new Date(frontmatter.pubDate).toLocaleDateString(
</Layout>
<style>
a {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
text-align: center;
color: white;
background-color: var(--c-gray);
padding: 0.5rem 0px;
margin-bottom: 2rem;
text-decoration: none;
}
h1 {
color: white;
margin: 0.5rem 3rem 0.5rem 3rem;