diff options
-rw-r--r-- | content/blog/cats/cat_kills/index.md | 1 | ||||
-rw-r--r-- | content/blog/cats/treecreeper_killer.md | 1 | ||||
-rw-r--r-- | content/blog/using_bash_in_vim.md | 1 | ||||
-rw-r--r-- | layouts/_default/li.html | 24 |
4 files changed, 27 insertions, 0 deletions
diff --git a/content/blog/cats/cat_kills/index.md b/content/blog/cats/cat_kills/index.md index a979870..cd9975e 100644 --- a/content/blog/cats/cat_kills/index.md +++ b/content/blog/cats/cat_kills/index.md @@ -2,6 +2,7 @@ title: "Cat Kill Log" date: 2021-06-21T18:30:49+01:00 draft: false +category: "cats" --- Ah, springtime! A time of awakening, rebirth, burgeoning buds - and avian diff --git a/content/blog/cats/treecreeper_killer.md b/content/blog/cats/treecreeper_killer.md index 23a6719..fb559ab 100644 --- a/content/blog/cats/treecreeper_killer.md +++ b/content/blog/cats/treecreeper_killer.md @@ -2,6 +2,7 @@ title: "Treecreeper Killer" date: 2021-05-17T19:42:59+01:00 draft: false +category: "cats" --- This cat kills treecreepers. He is a very naughty boy. diff --git a/content/blog/using_bash_in_vim.md b/content/blog/using_bash_in_vim.md index fddf592..96e0295 100644 --- a/content/blog/using_bash_in_vim.md +++ b/content/blog/using_bash_in_vim.md @@ -2,6 +2,7 @@ title: "Using bash in vim" date: 2022-01-03T09:05:00+01:00 draft: false +category: "vim" --- This is great if you like vim. diff --git a/layouts/_default/li.html b/layouts/_default/li.html new file mode 100644 index 0000000..b5939f5 --- /dev/null +++ b/layouts/_default/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> |