Back button on blog posts
This commit is contained in:
parent
447e4d29ee
commit
4e85915ebe
1 changed files with 13 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue