commit 943bdf0a33546486f69f41da8c55a912578eeb2e
parent 91111f868c006f34807294210614a1ef94cb172f
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date:   Sun, 30 Aug 2020 14:28:33 +0200

Taxonomy restructure

Each post used to have one general category and many specific tags. Now
posts have a few (1 to 3) categories, which are a bit more specific than
the previous ones.

Diffstat:
Massets/css/style.scss | 26--------------------------
Mconfig.toml | 2--
Mcontent/blog/2019-09-09-getting-a-domain.md | 7+++----
Mcontent/blog/2019-09-11-joplin.md | 8+++-----
Mcontent/blog/2019-09-23-upgrading-providers.md | 9++++-----
Mcontent/blog/2019-10-06-dark-theme.md | 7+++----
Mcontent/blog/2019-10-19-password-manager.md | 6++----
Mcontent/blog/2019-10-27-ship-scrappy.md | 4+++-
Mcontent/blog/2019-11-04-new-host.md | 10+++-------
Mcontent/blog/2019-11-10-deploying-website.md | 11+++--------
Mcontent/blog/2019-11-17-lineageos-with-microg.md | 8++------
Mcontent/blog/2019-11-24-backups.md | 10++--------
Mcontent/blog/2019-12-06-composer.md | 7++-----
Mcontent/blog/2019-12-15-your-corner-of-the-internet.md | 11+++--------
Mcontent/blog/2019-12-24-new-world-of-software.md | 5++---
Mcontent/blog/2020-01-12-securing-communications.md | 9++-------
Mcontent/blog/2020-01-17-documenting-server.md | 9++-------
Mcontent/blog/2020-01-25-syncthing.md | 9+++------
Mcontent/blog/2020-02-12-deploying-hugo-site.md | 10+++-------
Mcontent/blog/2020-02-23-sharing-a-secret.pdc | 9++-------
Mcontent/blog/2020-03-01-new-domain-name.md | 6++++--
Mcontent/blog/2020-03-02-types-of-networks.md | 9++-------
Mcontent/blog/2020-03-12-lightweight-website.md | 9++-------
Mcontent/blog/2020-03-21-lighter-website.md | 9++-------
Mcontent/blog/2020-04-07-on-not-caring-about-your-privacy.md | 6++++--
Mcontent/blog/2020-04-18-use-web-feeds.md | 8++------
Mcontent/blog/2020-05-05-my-journey-through-desktop-environments.md | 9+++------
Mcontent/blog/2020-05-27-blocking-connections-on-android.md | 8++------
Mcontent/blog/2020-06-23-setting-up-a-personal-git-server.md | 14++++----------
Mcontent/blog/2020-08-09-what-is-this-vim-talk-all-about.md | 5++---
Mcontent/blog/2020-08-15-adding-about-pages-to-stagit.md | 10+++-------
Mlayouts/_default/list.html | 2+-
Mlayouts/_default/single.html | 11+----------
Mlayouts/archive/single.html | 8+-------
Alayouts/partials/categories.html | 10++++++++++
Alayouts/partials/first-upper.html | 4++++
Mlayouts/partials/head-base.html | 2+-
37 files changed, 95 insertions(+), 212 deletions(-)

diff --git a/assets/css/style.scss b/assets/css/style.scss @@ -351,32 +351,6 @@ article { border: 0; } } - footer { - margin-top: var(--content-gap); - margin-bottom: var(--content-gap); - } - .tags { - li { - display: inline-block; - margin-bottom: 0.5rem; - } - li:not(:last-child) { - margin-right: 0.5rem; - } - a { - display: block; - padding-left: 14px; - padding-right: 14px; - color: var(--primary-invert); - font-size: 14px; - line-height: 34px; - background: var(--primary-bg); - border-radius: 2px; - } - a:hover { - background: var(--primary-active); - } - } } // article }}} diff --git a/config.toml b/config.toml @@ -16,12 +16,10 @@ ignoreErrors = ["error-disable-taxonomy"] [taxonomies] category = "categories" - tag = "tags" [permalinks] blog = "/blog/:year/:month/:slug/" categories = "/blog/categories/:slug/" - tags = "/blog/tags/:slug/" [frontmatter] date = ["date", ":filename", ":default"] diff --git a/content/blog/2019-09-09-getting-a-domain.md b/content/blog/2019-09-09-getting-a-domain.md @@ -1,10 +1,9 @@ --- title: "Getting my own domain name" slug: "getting-a-domain" -categories: "Incidental" -tags: [ - "Personal domain", - "DNS Record" +categories: [ + "decentralization", + "personal domain" ] date: 2019-09-09 lastmod: 2020-03-01 diff --git a/content/blog/2019-09-11-joplin.md b/content/blog/2019-09-11-joplin.md @@ -1,12 +1,10 @@ --- title: "My note taking app: Joplin" slug: "joplin" -categories: "Technology" -tags: [ +categories: [ + "decentralization", "FOSS", - "Software", - "Decentralization", - "Apps" + "privacy" ] date: 2019-09-11 lastmod: 2019-09-24 diff --git a/content/blog/2019-09-23-upgrading-providers.md b/content/blog/2019-09-23-upgrading-providers.md @@ -1,11 +1,10 @@ --- title: "Upgrading to privacy-conscious providers" slug: "upgrading-providers" -categories: "Technology" -tags: [ - "Decentralization", - "Encryption", - "Privacy" +categories: [ + "cryptography", + "decentralization", + "privacy" ] date: 2019-09-23 lastmod: 2019-09-24 diff --git a/content/blog/2019-10-06-dark-theme.md b/content/blog/2019-10-06-dark-theme.md @@ -1,10 +1,9 @@ --- title: "Creating a dark theme" slug: "dark-theme" -categories: "Technology" -tags: [ - "CSS", - "Website" +categories: [ + "personal domain", + "projects" ] date: 2019-10-06 --- diff --git a/content/blog/2019-10-19-password-manager.md b/content/blog/2019-10-19-password-manager.md @@ -1,10 +1,8 @@ --- title: "Switching to a password manager" slug: "password-manager" -categories: "Technology" -tags: [ - "Privacy", - "Security" +categories: [ + "cryptography" ] date: 2019-10-19 --- diff --git a/content/blog/2019-10-27-ship-scrappy.md b/content/blog/2019-10-27-ship-scrappy.md @@ -1,8 +1,10 @@ --- title: "Ship scrappy" slug: "ship-scrappy" -categories: "Incidental" subtitle: "I just wanted to post this interesting reflexion, as I tend to make sure everything is 100% perfect before “shipping it”. In some scenarios, this can be good, since you don't want what you are …" +categories: [ + "miscellany" +] date: 2019-10-27 --- diff --git a/content/blog/2019-11-04-new-host.md b/content/blog/2019-11-04-new-host.md @@ -1,13 +1,9 @@ --- title: "New website hosting servers" slug: "new-host" -categories: "Incidental" -tags: [ - "Website", - "Personal website", - "Personal domain", - "Hosting services", - "Autistici/Inventati" +categories: [ + "decentralization", + "personal domain" ] date: 2019-11-04 --- diff --git a/content/blog/2019-11-10-deploying-website.md b/content/blog/2019-11-10-deploying-website.md @@ -1,14 +1,9 @@ --- title: "Deploying a website using the WebDAV protocol" slug: "deploying-website" -categories: "Technology" -tags: [ - "WebDAV", - "Scripts", - "rsync", - "File synchronization", - "davfs2", - "Autistici/Inventati" +categories: [ + "FOSS", + "personal domain" ] date: 2019-11-10 --- diff --git a/content/blog/2019-11-17-lineageos-with-microg.md b/content/blog/2019-11-17-lineageos-with-microg.md @@ -1,13 +1,9 @@ --- title: "Switching to LineageOS with microG" slug: "lineageos-with-microg" -categories: "Technology" -tags: [ - "LineageOS", - "microG", +categories: [ "FOSS", - "Software", - "Privacy" + "privacy" ] date: 2019-11-17 lastmod: 2019-11-22 diff --git a/content/blog/2019-11-24-backups.md b/content/blog/2019-11-24-backups.md @@ -1,15 +1,9 @@ --- title: "Backing up my computer" slug: "backups" -categories: "Technology" -tags: [ +categories: [ "FOSS", - "Software", - "Privacy", - "File synchronization", - "Backup", - "Offline", - "Local" + "privacy" ] date: 2019-11-24 --- diff --git a/content/blog/2019-12-06-composer.md b/content/blog/2019-12-06-composer.md @@ -1,12 +1,9 @@ --- title: "Designing a composing interface" slug: "composer" -categories: "Technology" -tags: [ +categories: [ "FOSS", - "Software", - "DIY", - "Website" + "projects" ] lastmod: 2019-12-06T01:00:00+00:00 date: 2019-12-06 diff --git a/content/blog/2019-12-15-your-corner-of-the-internet.md b/content/blog/2019-12-15-your-corner-of-the-internet.md @@ -1,14 +1,9 @@ --- title: "Your corner of the Internet" slug: "your-corner-of-the-internet" -categories: "Technology" -tags: [ - "Personal domain", - "Personal website", - "Decentralization", - "DIY", - "Website", - "Hugo" +categories: [ + "decentralization", + "personal domain" ] lastmod: 2019-12-06 date: 2019-12-15 diff --git a/content/blog/2019-12-24-new-world-of-software.md b/content/blog/2019-12-24-new-world-of-software.md @@ -1,10 +1,9 @@ --- title: "A new world of software" slug: "new-world-of-software" -categories: "Technology" -tags: [ +categories: [ "FOSS", - "Software" + "miscellany" ] date: 2019-12-24 --- diff --git a/content/blog/2020-01-12-securing-communications.md b/content/blog/2020-01-12-securing-communications.md @@ -1,13 +1,8 @@ --- title: "Securing communications" slug: "securing-communications" -categories: "Knowledge base" -tags: [ - "Cryptography", - "Software", - "Privacy", - "Security", - "Encryption" +categories: [ + "cryptography" ] date: 2020-01-12 lastmod: 2020-08-10 diff --git a/content/blog/2020-01-17-documenting-server.md b/content/blog/2020-01-17-documenting-server.md @@ -1,13 +1,8 @@ --- title: "Documenting my server" slug: "documenting-server" -categories: "Incidental" -tags: [ - "Personal server", - "VPS", - "Documentation", - "DIY", - "Backup" +categories: [ + "self-hosting" ] date: 2020-01-17 lastmod: 2020-03-01 diff --git a/content/blog/2020-01-25-syncthing.md b/content/blog/2020-01-25-syncthing.md @@ -1,13 +1,10 @@ --- title: "File synchronization software: Syncthing" slug: "syncthing" -categories: "Technology" -tags: [ - "Backup", +categories: [ "Decentralization", - "File synchronization", - "Privacy", - "Software" + "FOSS", + "privacy" ] date: 2020-01-25 --- diff --git a/content/blog/2020-02-12-deploying-hugo-site.md b/content/blog/2020-02-12-deploying-hugo-site.md @@ -1,13 +1,9 @@ --- title: "Deploying a website built with Hugo" slug: "deploying-hugo-site" -categories: "Technology" -tags: [ - "Personal website", - "Personal domain", - "Personal server", - "Hosting services", - "Self-hosting" +categories: [ + "personal domain", + "self-hosting" ] date: 2020-02-12 --- diff --git a/content/blog/2020-02-23-sharing-a-secret.pdc b/content/blog/2020-02-23-sharing-a-secret.pdc @@ -1,13 +1,8 @@ --- title: "Sharing a secret" slug: "sharing-a-secret" -categories: "Knowledge base" -tags: [ - "Backup", - "Cryptography", - "Encryption", - "Privacy", - "Security" +categories: [ + "cryptography" ] date: 2020-02-23 --- diff --git a/content/blog/2020-03-01-new-domain-name.md b/content/blog/2020-03-01-new-domain-name.md @@ -1,8 +1,10 @@ --- title: "New domain name: oscarbenedito.com" slug: "new-domain-name" -categories: "Incidental" -tags: [ "Personal domain" ] +categories: [ + "miscellany", + "personal domain" +] date: 2020-03-01 --- diff --git a/content/blog/2020-03-02-types-of-networks.md b/content/blog/2020-03-02-types-of-networks.md @@ -1,13 +1,8 @@ --- title: "Centralized, decentralized and distributed networks" slug: "types-of-networks" -categories: "Knowledge base" -tags: [ - "Networks", - "Communications", - "Decentralization", - "Centralization", - "Distributed networks" +categories: [ + "miscellany", ] date: 2020-03-02 --- diff --git a/content/blog/2020-03-12-lightweight-website.md b/content/blog/2020-03-12-lightweight-website.md @@ -1,13 +1,8 @@ --- title: "A lightweight website" slug: "lightweight-website" -categories: "Technology" -tags: [ - "Personal domain", - "CSS", - "Hugo", - "Personal website", - "Website" +categories: [ + "personal domain" ] date: 2020-03-12 --- diff --git a/content/blog/2020-03-21-lighter-website.md b/content/blog/2020-03-21-lighter-website.md @@ -1,13 +1,8 @@ --- title: "A lighter website" slug: "lighter-website" -categories: "Technology" -tags: [ - "Personal domain", - "CSS", - "Hugo", - "Personal website", - "Website" +categories: [ + "personal domain" ] date: 2020-03-21 --- diff --git a/content/blog/2020-04-07-on-not-caring-about-your-privacy.md b/content/blog/2020-04-07-on-not-caring-about-your-privacy.md @@ -1,8 +1,10 @@ --- title: "On not caring about your privacy" slug: "on-not-caring-about-your-privacy" -categories: "Incidental" -tags: [ "Privacy" ] +categories: [ + "miscellany", + "privacy" +] date: 2020-04-07T16:17:00+00:00 --- diff --git a/content/blog/2020-04-18-use-web-feeds.md b/content/blog/2020-04-18-use-web-feeds.md @@ -1,12 +1,8 @@ --- title: "Use web feeds!" slug: "use-web-feeds" -categories: "Technology" -tags: [ - "Decentralization", - "Personal website", - "Privacy", - "Website" +categories: [ + "decentralization" ] date: 2020-04-18T14:59:00+00:00 --- diff --git a/content/blog/2020-05-05-my-journey-through-desktop-environments.md b/content/blog/2020-05-05-my-journey-through-desktop-environments.md @@ -1,12 +1,9 @@ --- title: "My journey through desktop environments" slug: "my-journey-through-desktop-environments" -categories: "Technology" -tags: [ - "Decentralization", - "Personal website", - "Privacy", - "Website" +categories: [ + "FOSS", + "Miscellany" ] date: 2020-05-05T19:26:00+00:00 lastmod: 2020-05-06T07:52:00+00:00 diff --git a/content/blog/2020-05-27-blocking-connections-on-android.md b/content/blog/2020-05-27-blocking-connections-on-android.md @@ -1,12 +1,8 @@ --- title: "Blocking connections on Android" slug: "blocking-connections-on-android" -categories: "Technology" -tags: [ - "Decentralization", - "Personal website", - "Privacy", - "Website" +categories: [ + "privacy" ] date: 2020-05-27T19:01:00+00:00 --- diff --git a/content/blog/2020-06-23-setting-up-a-personal-git-server.md b/content/blog/2020-06-23-setting-up-a-personal-git-server.md @@ -1,16 +1,10 @@ --- title: "Setting up a personal Git server" slug: "setting-up-a-personal-git-server" -categories: "Technology" -tags: [ - "Decentralization", - "Git", - "Personal domain", - "Personal server", - "Privacy", - "Self-hosting", - "Software", - "Website", +categories: [ + "decentralization", + "personal domain", + "self-hosting" ] date: 2020-06-23T16:10:00+00:00 lastmod: 2020-07-24T15:17:00+00:00 diff --git a/content/blog/2020-08-09-what-is-this-vim-talk-all-about.md b/content/blog/2020-08-09-what-is-this-vim-talk-all-about.md @@ -1,10 +1,9 @@ --- title: "What is this vim talk all about?" slug: "what-is-this-vim-talk-all-about" -categories: "Technology" -tags: [ +categories: [ "FOSS", - "Software" + "miscellany" ] date: 2020-08-09T15:16:00+00:00 --- diff --git a/content/blog/2020-08-15-adding-about-pages-to-stagit.md b/content/blog/2020-08-15-adding-about-pages-to-stagit.md @@ -1,13 +1,9 @@ --- title: "Adding about pages to stagit" slug: "adding-about-pages-to-stagit" -categories: "Technology" -tags: [ - "Git", - "Personal server", - "Self-hosting", - "Software", - "Website" +categories: [ + "FOSS", + "projects" ] date: 2020-08-15T19:59:00+00:00 --- diff --git a/layouts/_default/list.html b/layouts/_default/list.html @@ -22,7 +22,7 @@ <header> <h2 class="p-name"><a class="u-url" href="{{ .RelPermalink }}">{{ .Title }}</a></h2> <div class="metadata"> - {{ with .Params.categories }}<a class="p-category" href="{{ "blog/categories/" | relURL }}{{ . | urlize }}">{{ . }}</a> &middot; {{ end }}<a href="{{ .RelPermalink }}"><data class="dt-published" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 2, 2006" }}</data></a> &middot; {{ partial "read-time.html" . }} + {{ partial "categories.html" . }} &middot; <a href="{{ .RelPermalink }}"><data class="dt-published" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 2, 2006" }}</data></a> &middot; {{ partial "read-time.html" . }} <div> </header> <section class="content"> diff --git a/layouts/_default/single.html b/layouts/_default/single.html @@ -3,19 +3,10 @@ <article class="h-entry"> <header> <h1 class="p-name">{{ .Title }}</h1> - <div class="metadata">{{ with .Params.categories }}<a class="p-category" href="{{ "blog/categories/" | relURL }}{{ . | urlize }}">{{ . }}</a> &middot; {{ end }}<a class="u-url" href="{{ .RelPermalink }}"><data class="dt-published" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 2, 2006" }}</data></a>{{ if ne .Lastmod .Date }} (last modified on <data class="dt-updated" datetime="{{ .Lastmod.Format "2006-01-02" }}">{{ .Lastmod.Format "January 2, 2006" }}</data>){{ end }} + <div class="metadata">{{ partial "categories.html" . }} &middot; <a class="u-url" href="{{ .RelPermalink }}"><data class="dt-published" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 2, 2006" }}</data></a>{{ if ne .Lastmod .Date }} (last modified on <data class="dt-updated" datetime="{{ .Lastmod.Format "2006-01-02" }}">{{ .Lastmod.Format "January 2, 2006" }}</data>){{ end }} </div> </header> <div class="content e-content">{{ .Content }}</div> - {{- if .Params.tags }} - <footer> - <ul class="tags"> - {{- range .Params.tags | sort }} - <li><a class="p-category" href="{{ "blog/tags/" | relURL }}{{ . | urlize }}">{{ . }}</a></li> - {{- end }} - </ul> - </footer> - {{- end }} </article> {{- if or .NextInSection .PrevInSection }} diff --git a/layouts/archive/single.html b/layouts/archive/single.html @@ -20,13 +20,7 @@ <h2>Categories ({{ len .Site.Taxonomies.categories }})</h2> <ul> {{- range .Site.Taxonomies.categories }} - <li><a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a> ({{ .Count }} {{ if eq .Count 1}}entry{{ else }}entries{{ end }})</li> - {{- end }} - </ul> - <h2>Tags ({{ len .Site.Taxonomies.tags }})</h2> - <ul> - {{- range .Site.Taxonomies.tags }} - <li><a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a> ({{ .Count }} {{ if eq .Count 1}}entry{{ else }}entries{{ end }})</li> + <li><a href="{{ .Page.RelPermalink }}">{{ partial "first-upper.html" .Page.Title }}</a> ({{ .Count }} {{ if eq .Count 1}}entry{{ else }}entries{{ end }})</li> {{- end }} </ul> </div> diff --git a/layouts/partials/categories.html b/layouts/partials/categories.html @@ -0,0 +1,10 @@ +{{ range $i, $e := ( .Params.categories ) }} + {{- if $i }}, {{ end -}} + <a class="p-category" href="{{ "blog/categories/" | relURL }}{{ $e | urlize }}"> + {{- if $i }} + {{- $e }} + {{- else }} + {{- partial "first-upper.html" $e }} + {{- end -}} + </a> +{{- end -}} diff --git a/layouts/partials/first-upper.html b/layouts/partials/first-upper.html @@ -0,0 +1,4 @@ +{{ $chars := split . "" }} +{{- range $i, $e := $chars }} + {{- if $i }}{{ $e }}{{ else }}{{ $e | title }}{{ end }} +{{- end -}} diff --git a/layouts/partials/head-base.html b/layouts/partials/head-base.html @@ -5,5 +5,5 @@ {{- $favicon := resources.Get "img/favicon.min.svg" | fingerprint }} <link rel="icon" href="{{ $favicon.RelPermalink }}"> <link rel="shortcut icon" href="/favicon.ico"> -<title>{{ if .Params.headtitle }}{{ .Params.headtitle }} | {{ else if eq .Kind "term" }}{{ .Title }} | {{ else if not .IsHome }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title> +<title>{{ if .Params.headtitle }}{{ .Params.headtitle }} | {{ else if eq .Kind "term" }}{{ partial "first-upper.html" .Title }} | {{ else if not .IsHome }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title> <link rel="alternate" type="application/atom+xml" title="Oscar's Blog" href="/blog/index.xml">