diff --git a/config.toml b/config.toml index fd54b33..6e412f6 100644 --- a/config.toml +++ b/config.toml @@ -1,6 +1,5 @@ baseURL = "https://nonsense.dymc.win" title = "James' Blog" -# theme = "etch" languageCode = "en-GB" enableInlineShortcodes = true pygmentsCodeFences = true @@ -12,17 +11,17 @@ pygmentsUseClasses = true [menu] [[menu.main]] - identifier = "--help" - name = "--help" - title = "--help" + identifier = "👋" + name = "👋" + title = "👋" url = "/info/" weight = 20 - # [[menu.main]] - # identifier = "search" - # name = "search" - # title = "search" - # url = "/search/" - # weight = 20 + [[menu.main]] + identifier = "🔎" + name = "🔎" + title = "🔎" + url = "/search/" + weight = 20 [permalinks] posts = "/:title/" diff --git a/content/info/index.md b/content/info/index.md index f49b687..3b0449b 100644 --- a/content/info/index.md +++ b/content/info/index.md @@ -2,4 +2,4 @@ This is a place to document bits and bobs I've been up to that have interested m Expect linux and self-hosting tinkering, some novice programming, and maybe the occasional recipe. I tend to be a fool so take anything written here with a pinch of salt :) -- [rss HERE!!](../index.xml) +[rss feed here!](../index.xml) diff --git a/content/posts/making-nix-colors-talk-to-neovim.md b/content/posts/making-nix-colors-talk-to-neovim.md index dd43b76..2eb3388 100644 --- a/content/posts/making-nix-colors-talk-to-neovim.md +++ b/content/posts/making-nix-colors-talk-to-neovim.md @@ -11,6 +11,7 @@ draft: false I recently started fiddling around with home-managerifying my neovim config. After moving across most of my stuff I came across the problem of how to hook things up with with [nix-colors](https://github.com/misterio77/nix-colors) so that my neovim theme would follow color changes in home-manager. + Luckily, I came across [this](https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-base16.md) handy little plugin from the lovely [mini.nvim](https://github.com/echasnovski/mini.nvim) suite of plugins which lets you create your own theme with your custom colors. diff --git a/content/posts/multi-user-qtile-fiddling.md b/content/posts/multi-user-qtile-fiddling.md index 9bbd7cf..ed01a8f 100644 --- a/content/posts/multi-user-qtile-fiddling.md +++ b/content/posts/multi-user-qtile-fiddling.md @@ -1,6 +1,6 @@ --- title: Multi user qtile fiddling -date: 2022-12-20 +date: 2022-12-20 tags: - qtile - python diff --git a/content/posts/nixos-remote-auto-static-site-deploy.md b/content/posts/nixos-remote-auto-static-site-deploy.md index 03e6f18..3ac9872 100644 --- a/content/posts/nixos-remote-auto-static-site-deploy.md +++ b/content/posts/nixos-remote-auto-static-site-deploy.md @@ -9,6 +9,7 @@ draft: false As is traditional with people hosting their own blog I'm going to do a post detailing EXACTLY how I'm hosting my blog. Down to the last dirty detail. I have nothing better to talk about. + Here is a diagram I edited to illustrate (credit to xkcd I think?). ![self-hosting](/image/self-hosting.png) diff --git a/content/posts/zen-twitch-viewing-script.md b/content/posts/zen-twitch-viewing-script.md index fd667f7..5b355da 100644 --- a/content/posts/zen-twitch-viewing-script.md +++ b/content/posts/zen-twitch-viewing-script.md @@ -12,6 +12,7 @@ I'm declining cookies. I'm getting spammed with notifications to claim a sick new overwatch skin. There's a little channel point button twerking for me to click it. You get the idea; it's a heavy noisy experience. + As a result I set out to devise a solution which does spark joy. I came up with a script which leans on DIY desktop staples (dunst, tofi, mpv) and the very nice cli utility [streamlink](https://github.com/streamlink/streamlink). @@ -71,7 +72,7 @@ if [[ -n "$choice" ]]; then # get first column from selection aka stream name meat=$(echo "$choice" | awk '{print $1}') "${NOTIFY}" "twitch -- launching twitch.tv/$meat" - streamlink twitch.tv/"$meat" 1080p60 --player $"{PLAYER}" + streamlink twitch.tv/"$meat" 1080p60 --player "${PLAYER}" fi ``` @@ -104,3 +105,5 @@ fi - no chat (you might want to spam LUL) - takes a second to talk to the internet so things don't launch immediately - have to faff with getting api key - [how to get one btw](https://dev.twitch.tv/docs/api/get-started/) + +Hope you enjoyed bye diff --git a/content/search/_index.md b/content/search/_index.md new file mode 100644 index 0000000..c7dd7f6 --- /dev/null +++ b/content/search/_index.md @@ -0,0 +1,3 @@ +--- +layout: "search" +--- diff --git a/layouts/_default/search.html b/layouts/_default/search.html new file mode 100644 index 0000000..a458d63 --- /dev/null +++ b/layouts/_default/search.html @@ -0,0 +1,36 @@ +{{ define "main" }} + +

This is not a very clever search. It simply looks if the content of a post contains your query.

+ + + + + +

Alternatively, this is everything.

+ +{{ $pages := where site.RegularPages "Type" "posts" }} +{{ $years := $pages.GroupByDate "2006" }} + + +{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index f0facf2..09e8033 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,12 +1,12 @@ {{ define "main" }}
-

{{ .Title }}

+

{{ .Title }}

{{- if isset .Params "date" -}} {{ if eq .Lastmod .Date }} - +

{{ .Date | time.Format (i18n "post.created") }}

{{ else }} - +

{{ .Lastmod | time.Format (i18n "post.updated") }}

{{ end }} {{- end -}}
diff --git a/layouts/index.html b/layouts/index.html index d868b30..20d5767 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,3 +1,9 @@ {{ define "main" }} -{{ partial "results.html" . }} +{{ range first 5 (where .Site.RegularPages "Type" "in" site.Params.mainSections) }} +
+

{{ .Title }}

+

{{ .Date.Format "Jan 2, 2006" }}

+

{{ .Summary }}

+
+{{ end }} {{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 151a640..7fe9603 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,8 +1,6 @@ -
- -