Skip to content

Commit

Permalink
add include bloghead.njk for better templating
Browse files Browse the repository at this point in the history
  • Loading branch information
moiSentineL committed Feb 14, 2024
1 parent a981d44 commit 81ecfc2
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 56 deletions.
29 changes: 1 addition & 28 deletions src/_includes/archives.njk
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,7 @@
title: Blog Archive
layout: base.njk
---
<style type="text/css">
.fcrow{
display: flex;
justify-content: center;
flex-direction: column;
padding-bottom: 0;
align-items: center;
}
@media screen and (max-width: 650px) {
}
</style>
<header>
<div class="fcrow">
<h1 style="margin: 0">Nibir's Brain Dump</h1>
<h2 style="margin: 0;color: #909090">Blog | Digital Garden</h2>
</div>
</header>
<nav>
<div class="navlinks">
<a href="/blog/">blog</a>
<a href="/blog/archive/">archive</a>
<a href="https://visionoflife.substack.com">newsletter</a>
{# <a href="/">about me</a> #}
<a href="/">about me</a>
</div>
</nav>
{% include "bloghead.njk" %}
<main>
<hr>
<div style="text-align: center">
Expand Down
28 changes: 28 additions & 0 deletions src/_includes/bloghead.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<style type="text/css">
.fcrow{
display: flex;
justify-content: center;
flex-direction: column;
padding-bottom: 0;
align-items: center;
}
@media screen and (max-width: 650px) {
}
</style>
<header>
<div class="fcrow">
<h1 style="margin: 0">Nibir's Brain Dump</h1>
<h2 style="margin: 0;color: #909090">Blog | Digital Garden</h2>
</div>
</header>
<nav>
<div class="navlinks">
<a href="/blog/">blog</a>
<a href="/blog/archive/">archive</a>
<a href="https://visionoflife.substack.com">newsletter</a>
{# <a href="/">about me</a> #}
<a href="/">about me</a>
</div>
</nav>
29 changes: 1 addition & 28 deletions src/_includes/blogs.njk
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,7 @@
title: Nibir's Brain Dump
layout: base.njk
---
<style type="text/css">
.fcrow{
display: flex;
justify-content: center;
flex-direction: column;
padding-bottom: 0;
align-items: center;
}
@media screen and (max-width: 650px) {
}
</style>
<header>
<div class="fcrow">
<h1 style="margin: 0">Nibir's Brain Dump</h1>
<h2 style="margin: 0;color: #909090">Blog | Digital Garden</h2>
</div>
</header>
<nav>
<div>
<a href="/">home</a>
<a href="/blog/archive/">archive</a>
<a href="https://visionoflife.substack.com">newsletter</a>
{# <a href="/">about me</a> #}
<a href="/">about me</a>
</div>
</nav>
{% include "bloghead.njk" %}
<main>
<hr>
<p>
Expand Down

0 comments on commit 81ecfc2

Please sign in to comment.