about summary refs log tree commit diff
path: root/layouts/partials/post-info.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/post-info.html')
-rw-r--r--layouts/partials/post-info.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/layouts/partials/post-info.html b/layouts/partials/post-info.html
new file mode 100644
index 0000000..bb6e3c0
--- /dev/null
+++ b/layouts/partials/post-info.html
@@ -0,0 +1,28 @@
+<div class="post-info">
+    {{ with .Params.date }}
+    <div>
+        <time>{{ .Format "2006-01-02" }}</time>
+    </div>
+    {{ end }}
+
+
+    <div class="post-taxonomies">
+        {{ if .Params.categories }}
+        Categories:
+        <ul class="post-categories">
+            {{ range .Params.categories }}
+            <li><a href="{{ "categories/" | urlize | absLangURL }}">{{ . }}</a></li>
+            {{ end }}
+        </ul>
+        {{ end }}
+        <br>
+        {{ if .Params.tags }}
+        Tags:
+        <ul class="post-tags">
+            {{ range .Params.tags }}
+            <li><a href="{{ "tags/" | absLangURL }}{{ . | urlize }}">#{{ . }}</a></li>
+            {{ end }}
+        </ul>
+        {{ end }}
+    </div>
+</div>