diff options
-rw-r--r-- | content/blog/cats/cat_kills/index.md | 2 | ||||
-rw-r--r-- | content/blog/openbsd_partition.md | 1 | ||||
-rw-r--r-- | layouts/blog/list.html | 2 | ||||
-rw-r--r-- | themes/problematic/layouts/_default/li.html | 2 | ||||
-rw-r--r-- | themes/problematic/layouts/partials/posts.html | 22 |
5 files changed, 20 insertions, 9 deletions
diff --git a/content/blog/cats/cat_kills/index.md b/content/blog/cats/cat_kills/index.md index 6e70690..79412d5 100644 --- a/content/blog/cats/cat_kills/index.md +++ b/content/blog/cats/cat_kills/index.md @@ -2,7 +2,7 @@ title: "Cat Kill Log" date: 2021-06-21T18:30:49+01:00 draft: false -category: "cats" +categories: ["Cats"] --- Ah, springtime! A time of awakening, rebirth, burgeoning buds - and avian diff --git a/content/blog/openbsd_partition.md b/content/blog/openbsd_partition.md index 9b0ebcd..753c03e 100644 --- a/content/blog/openbsd_partition.md +++ b/content/blog/openbsd_partition.md @@ -4,6 +4,7 @@ date: 2022-07-17T07:46:14+01:00 slug: create_new_partition_openbsd draft: false tags: ['openbsd'] +categories: ["Computing"] --- 1. When I installed OpenBSD, the autoinstaller created a partition table for me. Interestingly (and I only just discovered this), it left a percentage of the disk free. This is a brilliant strategy, because it saves you having to do a lot of annoying resizing when you want to change things. In my case, I wanted to add a new partition of about 10G or so, for a `/jails` thing - check out [https://www.tubsta.com/2020/01/creating-a-chroot-in-openbsd/](https://www.tubsta.com/2020/01/creating-a-chroot-in-openbsd/). diff --git a/layouts/blog/list.html b/layouts/blog/list.html index 8106de3..751674b 100644 --- a/layouts/blog/list.html +++ b/layouts/blog/list.html @@ -3,5 +3,5 @@ {{ .Content }} -{{ partial "posts.html" }} +{{ partial "posts.html" . }} {{ end }} diff --git a/themes/problematic/layouts/_default/li.html b/themes/problematic/layouts/_default/li.html index 846ff3f..d0217b9 100644 --- a/themes/problematic/layouts/_default/li.html +++ b/themes/problematic/layouts/_default/li.html @@ -1,6 +1,6 @@ <li> <a href="{{ .Permalink }}"> {{ .Title }} - <small>(<time>{{ .Date.Format "2 January 2006" }}</time>)</small> + (<time>{{ .Date.Format "2 January 2006" }}</time>) </a> </li> diff --git a/themes/problematic/layouts/partials/posts.html b/themes/problematic/layouts/partials/posts.html index 8ff3eb2..191f449 100644 --- a/themes/problematic/layouts/partials/posts.html +++ b/themes/problematic/layouts/partials/posts.html @@ -1,6 +1,16 @@ -<h3>Posts</h3> -<ul id="posts"> -{{- range where site.RegularPages "Type" "in" site.Params.mainSections }} - {{ .Render "li" }} -{{- end }} -</ul> +<h2>Blog Posts</h2> + +{{ range $key, $value := .Site.Taxonomies.categories }} + + <h3>{{ $key | title }}</h3> + + <ul> + + {{ range where site.RegularPages ".Params.categories" "intersect" (slice ($key |title)) }} + <li><a href="{{ .Permalink }}">{{ .Title }}</a></li> + {{ end }} + + </ul> + +{{ end }} + |