From f916fc4e7902308d1b499ed5f37d519446dbe7dd Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 19 Jul 2022 11:13:28 +0100 Subject: first implementation of blog posts sorted by category --- content/blog/cats/cat_kills/index.md | 2 +- content/blog/openbsd_partition.md | 1 + layouts/blog/list.html | 2 +- themes/problematic/layouts/_default/li.html | 2 +- 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 @@
  • {{ .Title }} - () + ()
  • 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 @@ -

    Posts

    - +

    Blog Posts

    + +{{ range $key, $value := .Site.Taxonomies.categories }} + +

    {{ $key | title }}

    + + + +{{ end }} + -- cgit v1.2.3