summaryrefslogtreecommitdiffstats
path: root/layouts/blog/li.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/blog/li.html')
-rw-r--r--layouts/blog/li.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/layouts/blog/li.html b/layouts/blog/li.html
new file mode 100644
index 0000000..cb44e71
--- /dev/null
+++ b/layouts/blog/li.html
@@ -0,0 +1,24 @@
+<style>
+ #cat-category {
+ font-size: small;
+ color: red;
+ }
+ #vim-category {
+ font-size: small;
+ color: #2abb01;
+ }
+</style>
+
+<li>
+ <a href="{{ .Permalink }}">
+ {{ .Title }}
+ {{ if isset .Params "category" }}
+ {{ if eq .Params.Category "cats" }}
+ <span id="cat-category">[{{ lower .Params.Category }}]</span>
+ {{ else if (eq .Params.Category "vim") }}
+ <span id="vim-category">[{{ lower .Params.Category }}]</span>
+ {{ end }}
+ {{ end }}
+ <small><time>{{ .Date.Format "2 Jan, 2006" }}</time></small>
+ </a>
+</li>