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 --- config.toml | 2 +- content/blog/cats/cat_kills/index.md | 2 +- content/blog/intro.md | 1 + layouts/_default/li.html | 24 ------------------------ layouts/blog/li.html | 24 ++++++++++++++++++++++++ layouts/blog/single.html | 4 ++-- 6 files changed, 29 insertions(+), 28 deletions(-) delete mode 100644 layouts/_default/li.html create mode 100644 layouts/blog/li.html diff --git a/config.toml b/config.toml index b6c7a57..69cf5d4 100644 --- a/config.toml +++ b/config.toml @@ -17,7 +17,7 @@ pygmentsUseClasses = true identifier = "blog" name = "blog" title = "blog" - url = "/" + url = "/blog/" weight = 10 [[menu.main]] diff --git a/content/blog/cats/cat_kills/index.md b/content/blog/cats/cat_kills/index.md index cd9975e..36212db 100644 --- a/content/blog/cats/cat_kills/index.md +++ b/content/blog/cats/cat_kills/index.md @@ -24,7 +24,7 @@ suspect we're not seeing the victims...

- + diff --git a/content/blog/intro.md b/content/blog/intro.md index 5e7d346..8df6209 100644 --- a/content/blog/intro.md +++ b/content/blog/intro.md @@ -2,6 +2,7 @@ title: "Test Page" date: 2021-05-17T19:39:13+01:00 draft: false +category: "cats" --- # Introduction diff --git a/layouts/_default/li.html b/layouts/_default/li.html deleted file mode 100644 index b5939f5..0000000 --- a/layouts/_default/li.html +++ /dev/null @@ -1,24 +0,0 @@ - - -
  • - - {{ .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/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