diff options
Diffstat (limited to 'src/_includes/components')
| -rw-r--r-- | src/_includes/components/footer.njk | 6 | ||||
| -rw-r--r-- | src/_includes/components/headerbar.njk | 7 | ||||
| -rw-r--r-- | src/_includes/components/postlist.njk | 14 |
3 files changed, 27 insertions, 0 deletions
diff --git a/src/_includes/components/footer.njk b/src/_includes/components/footer.njk new file mode 100644 index 0000000..d34e2e7 --- /dev/null +++ b/src/_includes/components/footer.njk @@ -0,0 +1,6 @@ +<footer> + <div id="commitText"> + <a href="https://github.com/getchoo/getchoo.github.io">source</a> + commit: {{ gitRevision }} + </div> +</footer>
\ No newline at end of file diff --git a/src/_includes/components/headerbar.njk b/src/_includes/components/headerbar.njk new file mode 100644 index 0000000..8b211c3 --- /dev/null +++ b/src/_includes/components/headerbar.njk @@ -0,0 +1,7 @@ +<div class="headerbar"> + <div id="links"> + <a href="/">home</a> + <a href="/blog">blog</a> + <a href="https://github.com/getchoo">github</a> + </div> +</div>
\ No newline at end of file diff --git a/src/_includes/components/postlist.njk b/src/_includes/components/postlist.njk new file mode 100644 index 0000000..66a4337 --- /dev/null +++ b/src/_includes/components/postlist.njk @@ -0,0 +1,14 @@ +<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> + {% else %} + <p>no posts yet! 🥸</p> + {% endfor %} + </ul> +</div>
\ No newline at end of file |
