From 6f804985e4e301afc26e9d4cf26b8f3030d8887a Mon Sep 17 00:00:00 2001
From: Alexander Bilz <mail@alexbilz.com>
Date: Thu, 21 Jan 2021 10:40:51 +0000
Subject: [PATCH] Show categories on frontpage

---
 layouts/index.html   |    6 ++++--
 assets/css/style.css |    5 ++++-
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/assets/css/style.css b/assets/css/style.css
index 70dbb98..fddc94b 100644
--- a/assets/css/style.css
+++ b/assets/css/style.css
@@ -429,10 +429,13 @@
     margin: 1em;
 }
 
+.info span {
+    margin-right: 0.5em;
+}
+
 .post .post-footer .meta a {
     text-decoration: none;
     color: var(--body-color);
-    padding-right: 10px;
 }
 
 .post .post-footer .meta a:hover {
diff --git a/layouts/index.html b/layouts/index.html
index c957852..36b5ed5 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -30,11 +30,13 @@
             </div>
             <div class="post-footer">
                 <div class="meta">
-                    <div class="info"><em class="fas fa-calendar-day"></em><span
-                                class="date">{{ if isset .Site.Params "indexdateformat" }} 
+                    <div class="info">
+                        <em class="fas fa-calendar-day"></em>
+                            <span class="date">{{ if isset .Site.Params "indexdateformat" }} 
                                                  {{ .Date.Format .Site.Params.indexDateFormat }} 
                                              {{ else }} {{.Date.Format "Mon, Jan 2, 2006"}} 
                                              {{ end }}</span>
+                        {{ with .Page.Params.Categories }}{{ partial "taxonomy/categories.html" . }}{{ end }}
                         {{ with .Params.tags }}
                             {{- range $index, $el := . -}}
                                 <a class="tag"

--
Gitblit v1.10.0