summaryrefslogtreecommitdiff
path: root/src/_includes/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/_includes/components')
-rw-r--r--src/_includes/components/footer.njk2
-rw-r--r--src/_includes/components/headerbar.njk8
-rw-r--r--src/_includes/components/postlist.njk17
3 files changed, 13 insertions, 14 deletions
diff --git a/src/_includes/components/footer.njk b/src/_includes/components/footer.njk
index f9aacaa..2d88e70 100644
--- a/src/_includes/components/footer.njk
+++ b/src/_includes/components/footer.njk
@@ -1,6 +1,6 @@
<footer>
<div id="commitText">
<a href="https://github.com/getchoo/getchoo.github.io">source</a>
- commit: {{ gitRevision }}
+ commit: {{ gitRevision }}
</div>
</footer>
diff --git a/src/_includes/components/headerbar.njk b/src/_includes/components/headerbar.njk
index 21fa357..0edc922 100644
--- a/src/_includes/components/headerbar.njk
+++ b/src/_includes/components/headerbar.njk
@@ -1,11 +1,7 @@
<div class="headerbar">
<div id="links" class="flex gap-3">
- <button onclick="window.location.href='/'">
- home
- </button>
- <button onclick="window.location.href='/blog'">
- blog
- </button>
+ <button onclick="window.location.href='/'">home</button>
+ <button onclick="window.location.href='/blog'">blog</button>
<button onclick="window.location.href='https://github.com/getchoo'">
github
</button>
diff --git a/src/_includes/components/postlist.njk b/src/_includes/components/postlist.njk
index d1fdb22..f7d2b95 100644
--- a/src/_includes/components/postlist.njk
+++ b/src/_includes/components/postlist.njk
@@ -1,14 +1,17 @@
<div>
<ul class="postList">
{% for post in postList %}
- <li>
- <a href="{{ post.data.url }}">{{ post.data.title }}</a>
- <time class="post-date" datetime="{{ post.data.date | date('DATETIME') }}">
- {{ post.data.date | date('HUMAN_DATE') }}
- </time>
- </li>
+ <li>
+ <a href="{{ post.data.url }}">{{ post.data.title }}</a>
+ <time
+ class="post-date"
+ datetime="{{ post.data.date | date('DATETIME') }}"
+ >
+ {{ post.data.date | date('HUMAN_DATE') }}
+ </time>
+ </li>
{% else %}
- <p>no posts yet! 🥸</p>
+ <p>no posts yet! 🥸</p>
{% endfor %}
</ul>
</div>