From 47932676235b90cdf033c31fdc62d52cfed7f168 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 3 Jan 2022 20:41:21 +0000 Subject: better stuff with templates --- layouts/blog/li.html | 24 ++++++++++++++++++++++++ layouts/blog/single.html | 4 ++-- 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 layouts/blog/li.html (limited to 'layouts/blog') 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 @@ + + +
  • + + {{ .Title }} + {{ if isset .Params "category" }} + {{ if eq .Params.Category "cats" }} + [{{ lower .Params.Category }}] + {{ else if (eq .Params.Category "vim") }} + [{{ lower .Params.Category }}] + {{ end }} + {{ end }} + + +
  • diff --git a/layouts/blog/single.html b/layouts/blog/single.html index a89da2b..698be33 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -5,9 +5,9 @@
    {{- if isset .Params "date" -}} {{ if eq .Lastmod .Date }} - + {{ else }} - Updated + Updated {{ end }} {{- end -}}
    -- cgit v1.2.3