aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorfrosty <passedgoandgot200@disroot.org>2025-06-16 23:29:31 -0400
committerfrosty <passedgoandgot200@disroot.org>2025-06-16 23:29:31 -0400
commit862a61c145ad083521f3941c56fd6e914d051a95 (patch)
tree1b41dc3e850c08eb63d07c7dde577e0f56f53215
parentb9b380447b5722b58e21fda0ffaee2fd87e20635 (diff)
add stuff that rocks, enable table of contents, add og tags, and more
-rw-r--r--archetypes/default.md5
-rw-r--r--content/rocks.md36
-rw-r--r--hugo.toml4
-rw-r--r--themes/polaris/assets/css/style.css2
-rw-r--r--themes/polaris/layouts/_default/baseof.html27
-rw-r--r--themes/polaris/layouts/_default/single.html3
-rw-r--r--themes/polaris/layouts/_markup/render-heading.html4
7 files changed, 67 insertions, 14 deletions
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 }}
+
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
- <title>{{ if not .IsHome }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title>
+ <title>{{ $pageTitle }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="icon" href="/img/pfp.png">
- {{ $notoSerif := resources.Get "css/noto-serif.css" | minify | fingerprint }}
- <link rel="stylesheet" href="{{ $notoSerif.Permalink }}">
- {{ $style := resources.Get "css/style.css" | minify | fingerprint }}
- <link rel="stylesheet" href="{{ $style.Permalink }}">
- {{ with .OutputFormats.Get "rss" }}
- {{ printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML }}
+ <link rel="icon" href="{{ .Site.Params.iconURL }}">
+ {{ with resources.Get "css/noto-serif.css" | minify | fingerprint }}
+ <link rel="stylesheet" href="{{ .Permalink }}">
{{ end }}
+ {{ with resources.Get "css/style.css" | minify | fingerprint }}
+ <link rel="stylesheet" href="{{ .Permalink }}">
+ {{ end }}
+ <meta property="og:title" content="{{ $pageTitle }}">
+ <meta property="og:url" content="{{ .Page.RelPermalink }}">
+ <meta property="og:image" content="{{ .Site.Params.iconURL }}">
+ <meta property="og:site_name" content="{{ .Site.Title }}">
+ <meta property="og:description" content="{{ .Site.Params.subtext }}">
</head>
<body>
<nav>
diff --git a/themes/polaris/layouts/_default/single.html b/themes/polaris/layouts/_default/single.html
index 21b247d..56b9d9d 100644
--- a/themes/polaris/layouts/_default/single.html
+++ b/themes/polaris/layouts/_default/single.html
@@ -7,5 +7,8 @@
</p>
{{ end }}
{{ end }}
+ {{ if or (eq .Section "posts") (.Params.toc) }}
+ {{ with .TableOfContents }}{{ . }}{{ end }}
+ {{ end }}
{{ .Content }}
{{ end }}
diff --git a/themes/polaris/layouts/_markup/render-heading.html b/themes/polaris/layouts/_markup/render-heading.html
new file mode 100644
index 0000000..c4d156c
--- /dev/null
+++ b/themes/polaris/layouts/_markup/render-heading.html
@@ -0,0 +1,4 @@
+<h{{ .Level }} id="{{ .Anchor }}" {{ with .Attributes.class }} class="{{ . }}" {{ end }}>
+ {{ .Text }}
+{{ if and (ge .Level 2) (le .Level 3) }}<a href="#{{ .Anchor }}">#</a>{{ end }}
+</h{{ .Level }}>