MeiK2333 / github-style

https://themes.gohugo.io/themes/github-style
MIT License
579 stars 186 forks source link

Allows use of categories and tags #136

Closed pobtastic closed 8 months ago

pobtastic commented 8 months ago

I probably wouldn't handle it like this if I were writing it from scratch, but this is a suggested solution for having both tags and categories present on the site.

---
title: "Wheelie"
date: 2024-03-01T22:06:25Z
draft: false
tags: ["skoolkit", "wheelie", "zx spectrum", "z80"]
categories:
  - "Disassembly"
---

The problem is, categories are defined by default so you end up with an empty page; e.g. https://meik2333.com/categories/

The alternative is to remove it, which can be done in the hugo config file (so you could perhaps instead stick this in the example file given).

[Taxonomies]
  tag = "tags"

(If you don't define category = "categories" then it's removed).