general improvements for handling 'slashes' category

This commit is contained in:
John Bowdre 2024-05-30 09:18:09 -05:00
parent 0c57742e19
commit b1cc74ed3a
10 changed files with 25 additions and 12 deletions

View file

@ -5,7 +5,7 @@ lastmod: "2024-05-29"
description: "A brief introduction to me, this blog, and what you're likely to see here."
timeless: true
toc: false
categories: "/slashes"
categories: slashes
---
**Hi, I'm John.**

View file

@ -0,0 +1,8 @@
---
title: slashes
url: /slashes
aliases:
- categories/slashes
description: >
My collection of slashpages.
---

View file

@ -6,7 +6,7 @@ description: "Maybe I should keep a log of all my site-related tinkering?"
featured: false
toc: false
timeless: true
categories: /slashes
categories: slashes
---
*High-level list of config/layout changes to the site.*

View file

@ -6,7 +6,7 @@ description: "There's a lot that goes into this site. Let me tell you how it wor
featured: false
toc: true
timeless: true
categories: /slashes
categories: slashes
---
*I don't consider myself to be a web developer, but I've learned a **ton** through the process of building/tweaking/maintaining this site. The [colophon](https://indieweb.org/colophon) provides a quick overview of what powers `runtimeterror.dev`.*

View file

@ -8,7 +8,7 @@ description: "The systems I use for fun and enrichment."
featured: false
toc: true
timeless: true
categories: /slashes
categories: slashes
---
*I enjoy tinkering with small technology projects, and I learn a ton from these experiments. I also self-host a number of apps/services from my home as well as various cloud environments. This page describes some of my technical playground.*

View file

@ -6,7 +6,7 @@ description: "Referral links for products and services I use and heartily recomm
featured: false
toc: true
timeless: true
categories: /slashes
categories: slashes
---
*This `/saves` page lists my referral/affiliate links for high-quality products and services that I use on a daily basis. These are things I frequently recommend to others anyway, but signing up with these links might save one or both of us some money.*

View file

@ -5,7 +5,7 @@ date: "2024-05-29"
description: "The hardware, software, services, and gear which I use (almost) daily."
toc: true
timeless: true
categories: /slashes
categories: slashes
---
*Here's some of the stuff I use and how I use it.*

View file

@ -6,8 +6,13 @@
{{ if .IsHome }}
<h1>{{ site.Params.indexTitle | markdownify }}</h1>
{{ else }}
{{ if eq .Title "slashes" }}
<h1>/slashes&nbsp;<a target="_blank" href="{{ .Permalink }}feed.xml" aria-label="Category RSS"><i class="fa-solid fa-square-rss"></i></a>&nbsp;</h1>
<i>My collection of <a target="_blank" title="what's a slashpage?" href="https://slashpages.net">slashpages</a>.</i><hr>
{{ else }}
<h1>{{ .Title | markdownify }}{{ if eq .Kind "term" }}&nbsp;<a target="_blank" href="{{ .Permalink }}feed.xml" aria-label="Category RSS"><i class="fa-solid fa-square-rss"></i></a>&nbsp;</h1>
{{ if eq .Title "/slashes" }}<i>My collection of <a target="_blank" title="what's a slashpage?" href="https://slashpages.net">slashpages</a>.</i><hr>{{ else }}{{ with .Description }}<i>{{ . }}</i><hr>{{ else }}<br>{{ end }}{{ end }}
{{ with .Description }}<i>{{ . }}</i><hr>{{ else }}<br>{{ end }}
{{ end }}
{{ end }}{{ end }}
{{ .Content }}
</header>
@ -43,7 +48,7 @@
{{ end }}
{{- end }}
{{- else }}
{{- if eq .Title "/slashes" }}
{{- if eq .Title "slashes" }}
{{- $sortedSlashes := sort $pages "Title" }}
{{- range $sortedSlashes }}
{{- $postDate := .Date.Format "2006-01-02" }}

View file

@ -10,7 +10,7 @@
{{ if isset .Params "categories" }}
{{$related := where .Site.RegularPages ".Params.categories" "eq" .Params.categories }}
{{- $relatedLimit := default 8 .Site.Params.numberOfRelatedPosts }}
{{ if eq .Params.categories "/slashes" }}
{{ if eq .Params.categories "slashes" }}
<h3>More {{ .Params.categories }}</h3>
{{ $sortedPosts := sort $related "Title" }}
<ul>
@ -21,7 +21,7 @@
{{ end }}
</ul>
{{ else }}
<h3>More {{ .Params.categories }}</h3>
<h3>More /slashes</h3>
<ul>
{{- range first $relatedLimit $related }}
<li>

View file

@ -1,5 +1,5 @@
<p class="copyright">{{ .Site.Copyright | markdownify }}</p>
<p class="footer_links">{"<a href="/categories/slashes/" title="slashpages">/slashes</a>": [{{- range $i, $link := .Site.Params.slashPages }}{{ if $i }}, {{ end }}&quot;<a href="{{ $link.url }}" title="{{ $link.label }}">{{ $link.title }}</a>&quot;{{ end }}]}
<p class="footer_links">{"<a href="/slashes/" title="slashpages">/slashes</a>": [{{- range $i, $link := .Site.Params.slashPages }}{{ if $i }}, {{ end }}&quot;<a href="{{ $link.url }}" title="{{ $link.label }}">{{ $link.title }}</a>&quot;{{ end }}]}
<br>&lt;<a target="_blank" href="https://github.com/jbowdre/runtimeterror">view source</a>&gt;</p>
<!-- Back to Top button via https://github.com/vfeskov/vanilla-back-to-top -->