From 862a61c145ad083521f3941c56fd6e914d051a95 Mon Sep 17 00:00:00 2001 From: frosty Date: Mon, 16 Jun 2025 23:29:31 -0400 Subject: add stuff that rocks, enable table of contents, add og tags, and more --- archetypes/default.md | 5 +-- content/rocks.md | 36 ++++++++++++++++++++-- hugo.toml | 4 +++ themes/polaris/assets/css/style.css | 2 +- themes/polaris/layouts/_default/baseof.html | 27 +++++++++++----- themes/polaris/layouts/_default/single.html | 3 ++ themes/polaris/layouts/_markup/render-heading.html | 4 +++ 7 files changed, 67 insertions(+), 14 deletions(-) create mode 100644 themes/polaris/layouts/_markup/render-heading.html diff --git a/archetypes/default.md b/archetypes/default.md index 9a72f3b..0cfaf6d 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -1,5 +1,6 @@ --- -date: '{{ time.Now.Format "2006-01-02" }}' +title: "{{ replace .File.ContentBaseName `-` ` ` | title }}" +date: "{{ time.Now.Format `2006-01-02` }}" draft: true -title: '{{ replace .File.ContentBaseName `-` ` ` | title }}' +toc: false --- diff --git a/content/rocks.md b/content/rocks.md index 63c10c0..ea24077 100644 --- a/content/rocks.md +++ b/content/rocks.md @@ -1,16 +1,46 @@ --- title: "Rocks" subtext: "A compilation of anything that butters my muffin." +toc: true --- ## Server Software -* [PrivateBin](https://privatebin.info/): Pastebin service where encryption and decryption happens in the browser. +* [Gonic](https://github.com/sentriz/gonic): Music streaming server that implements the (Open)Subsonic API and is accompanied by a nice web interface. * [Miniflux](https://miniflux.app/): Feed reader with simple configuration, minimal UI, and great UX. +* [PrivateBin](https://privatebin.info/): Pastebin service where encryption and decryption happens in the browser. * [ZNC](https://wiki.znc.in/ZNC): Featureful IRC bouncer with an extensive web interface for configuration. -* [Gonic](https://github.com/sentriz/gonic): Music streaming server, implements the (Open)Subsonic API. -## Shell Scripting +## Desktop Software + +### File Managers + +* [lf](https://github.com/gokcehan/lf): TUI file manager; much faster than another program that rhymes with "danger." +* [nnn](https://github.com/jarun/nnn): An even more minimal file manager with a more unorthodox workflow. + +### Image Viewers + +* [nsxiv](https://codeberg.org/nsxiv/nsxiv): Simple and extensible image viewer for X; has a great UI. +* [swayimg](https://github.com/artemsen/swayimg): Image viewer for Wayland. + +### Miscellaneous + +* [dinit](https://github.com/davmac314/dinit): Powerful and well-implemented init system; takes everything great from systemd and implements it simpler. +* [turnstile](https://github.com/chimera-linux/turnstile): User session tracker and service manager-agnostic per-user service manager. + +### Notifications + +* [herbe](https://github.com/dudik/herbe): Daemon-less notifications for X. +* [mako](https://github.com/emersion/mako): Simple and lightweight notification daemon for Wayland. + +### Terminal Emulators + +* [foot](https://codeberg.org/dnkl/foot): Stupid fast and extensible terminal emulator for Wayland. +* [st](https://st.suckless.org/): Extremely simple terminal emulator for X; my personal favorite terminal emulator. + +## Development Tools + +### Shell Scripts * [ShellCheck](https://www.shellcheck.net/): Static analyzer for shell scripts; the gold standard for people who care about their scripts. * [shfmt](https://github.com/mvdan/sh): Shell script formatter; while quite opinionated, it works great for me. diff --git a/hugo.toml b/hugo.toml index 724913a..709058b 100644 --- a/hugo.toml +++ b/hugo.toml @@ -12,11 +12,15 @@ lastmod = ["lastmod", ":git", "date", "publishDate"] [markup.highlight] style = "gruvbox" +[markup.tableOfContents] +ordered = true + [permalinks] posts = "/:2006/:01/:02/:title/" [params] subtext = "Lots of ideas, not many implementations." +iconURL = "/img/pfp.png" [params.author] name = "frosty" diff --git a/themes/polaris/assets/css/style.css b/themes/polaris/assets/css/style.css index 1ca72e4..230e5b8 100644 --- a/themes/polaris/assets/css/style.css +++ b/themes/polaris/assets/css/style.css @@ -84,7 +84,7 @@ a:hover { font-style: italic; } -nav ul { +.nav-over ul { list-style-type: none; margin: 0; padding-left: 0; diff --git a/themes/polaris/layouts/_default/baseof.html b/themes/polaris/layouts/_default/baseof.html index 1b34f99..37a6059 100644 --- a/themes/polaris/layouts/_default/baseof.html +++ b/themes/polaris/layouts/_default/baseof.html @@ -1,17 +1,28 @@ +{{ $pageTitle := "" }} +{{ if not .IsHome }} + {{ $pageTitle = printf "%s - %s" .Title .Site.Title }} +{{ else }} + {{ $pageTitle = .Site.Title }} +{{ end }} + - {{ if not .IsHome }}{{ .Title }} - {{ end }}{{ .Site.Title }} + {{ $pageTitle }} - - {{ $notoSerif := resources.Get "css/noto-serif.css" | minify | fingerprint }} - - {{ $style := resources.Get "css/style.css" | minify | fingerprint }} - - {{ with .OutputFormats.Get "rss" }} - {{ printf `` .Rel .MediaType.Type .Permalink site.Title | safeHTML }} + + {{ with resources.Get "css/noto-serif.css" | minify | fingerprint }} + {{ end }} + {{ with resources.Get "css/style.css" | minify | fingerprint }} + + {{ end }} + + + + +