mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-11-09 17:42:19 +00:00
add /slashes archive page
This commit is contained in:
parent
7dd1259a14
commit
d29f86f282
8 changed files with 49 additions and 11 deletions
|
@ -6,11 +6,13 @@ description: "Maybe I should keep a log of all my site-related tinkering?"
|
||||||
featured: false
|
featured: false
|
||||||
toc: false
|
toc: false
|
||||||
timeless: true
|
timeless: true
|
||||||
|
categories: /slashes
|
||||||
---
|
---
|
||||||
*High-level list of config/layout changes to the site:*
|
*High-level list of config/layout changes to the site:*
|
||||||
|
|
||||||
**2024-05-29:**
|
**2024-05-29:**
|
||||||
- Display post descriptions (if set) on archive pages; otherwise fall back to summaries
|
- Display post descriptions (if set) on archive pages; otherwise fall back to summaries
|
||||||
|
- Add /slashes archive page
|
||||||
|
|
||||||
**2024-05-27:**
|
**2024-05-27:**
|
||||||
- Replace "powered by" links with slashpages
|
- Replace "powered by" links with slashpages
|
||||||
|
|
|
@ -6,8 +6,9 @@ description: "There's a lot that goes into this site. Let me tell you how it wor
|
||||||
featured: false
|
featured: false
|
||||||
toc: true
|
toc: true
|
||||||
timeless: true
|
timeless: true
|
||||||
|
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`.*
|
*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`.*
|
||||||
|
|
||||||
### This site...
|
### This site...
|
||||||
- is built with [Hugo](https://gohugo.io/) using the [risotto](https://github.com/joeroe/risotto) theme with many, many tweaks and customizations.
|
- is built with [Hugo](https://gohugo.io/) using the [risotto](https://github.com/joeroe/risotto) theme with many, many tweaks and customizations.
|
||||||
|
|
|
@ -4,10 +4,11 @@ date: "2024-05-26T21:30:51Z"
|
||||||
lastmod: "2024-05-28"
|
lastmod: "2024-05-28"
|
||||||
aliases:
|
aliases:
|
||||||
- playground
|
- playground
|
||||||
description: "The systems I use for fun."
|
description: "The systems I use for fun and enrichment."
|
||||||
featured: false
|
featured: false
|
||||||
toc: true
|
toc: true
|
||||||
timeless: true
|
timeless: true
|
||||||
|
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.*
|
*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.*
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,7 @@ description: "Referral links for products and services I use and heartily recomm
|
||||||
featured: false
|
featured: false
|
||||||
toc: true
|
toc: true
|
||||||
timeless: true
|
timeless: true
|
||||||
|
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.*
|
*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.*
|
||||||
|
|
||||||
|
|
|
@ -2,9 +2,10 @@
|
||||||
title: "/uses"
|
title: "/uses"
|
||||||
date: "2024-05-29"
|
date: "2024-05-29"
|
||||||
# lastmod: {{ .Date | time.Format "2006-01-02" }}
|
# lastmod: {{ .Date | time.Format "2006-01-02" }}
|
||||||
description: "The hardware, software, and services which keep me going."
|
description: "The hardware, software, services, and gear which I use (almost) daily."
|
||||||
toc: true
|
toc: true
|
||||||
timeless: true
|
timeless: true
|
||||||
|
categories: /slashes
|
||||||
---
|
---
|
||||||
*Here's some of the stuff I use and how I use it.*
|
*Here's some of the stuff I use and how I use it.*
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<h1>{{ site.Params.indexTitle | markdownify }}</h1>
|
<h1>{{ site.Params.indexTitle | markdownify }}</h1>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<h1>{{ .Title | markdownify }}{{ if eq .Kind "term" }} <a target="_blank" href="{{ .Permalink }}feed.xml" aria-label="Category RSS"><i class="fa-solid fa-square-rss"></i></a> </h1>
|
<h1>{{ .Title | markdownify }}{{ if eq .Kind "term" }} <a target="_blank" href="{{ .Permalink }}feed.xml" aria-label="Category RSS"><i class="fa-solid fa-square-rss"></i></a> </h1>
|
||||||
{{ with .Description }}<i>{{ . }}</i><hr>{{ else }}<br>{{ end }}
|
{{ 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 }}
|
||||||
{{ end }}{{ end }}
|
{{ end }}{{ end }}
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</header>
|
</header>
|
||||||
|
@ -42,6 +42,25 @@
|
||||||
</article>
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- else }}
|
||||||
|
{{- if eq .Title "/Slashes" }}
|
||||||
|
{{- $sortedSlashes := sort $pages "Title" }}
|
||||||
|
{{- range $sortedSlashes }}
|
||||||
|
{{- $postDate := .Date.Format "2006-01-02" }}
|
||||||
|
{{- $updateDate := .Lastmod.Format "2006-01-02" }}
|
||||||
|
<article class="post">
|
||||||
|
<header class="post__header">
|
||||||
|
<h1><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1>
|
||||||
|
<p class="post__meta">
|
||||||
|
<span class="date">["{{- $postDate }}"{{- if ne $postDate $updateDate }}, "{{ $updateDate }}"{{ end }}]</span>
|
||||||
|
</p>
|
||||||
|
</header>
|
||||||
|
<section class="post__summary">
|
||||||
|
{{ .Description }}
|
||||||
|
</section>
|
||||||
|
<hr>
|
||||||
|
</article>
|
||||||
|
{{- end }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{- range (.Paginate $pages).Pages }}
|
{{- range (.Paginate $pages).Pages }}
|
||||||
{{- $postDate := .Date.Format "2006-01-02" }}
|
{{- $postDate := .Date.Format "2006-01-02" }}
|
||||||
|
@ -61,3 +80,4 @@
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- template "_internal/pagination.html" . }}
|
{{- template "_internal/pagination.html" . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
|
@ -10,6 +10,17 @@
|
||||||
{{ if isset .Params "categories" }}
|
{{ if isset .Params "categories" }}
|
||||||
{{$related := where .Site.RegularPages ".Params.categories" "eq" .Params.categories }}
|
{{$related := where .Site.RegularPages ".Params.categories" "eq" .Params.categories }}
|
||||||
{{- $relatedLimit := default 8 .Site.Params.numberOfRelatedPosts }}
|
{{- $relatedLimit := default 8 .Site.Params.numberOfRelatedPosts }}
|
||||||
|
{{ if eq .Params.categories "/slashes" }}
|
||||||
|
<h3>More {{ .Params.categories }}</h3>
|
||||||
|
{{ $sortedPosts := sort $related "Title" }}
|
||||||
|
<ul>
|
||||||
|
{{- range $sortedPosts }}
|
||||||
|
<li>
|
||||||
|
<a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title | markdownify }}</a>
|
||||||
|
</li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
{{ else }}
|
||||||
<h3>More {{ .Params.categories }}</h3>
|
<h3>More {{ .Params.categories }}</h3>
|
||||||
<ul>
|
<ul>
|
||||||
{{- range first $relatedLimit $related }}
|
{{- range first $relatedLimit $related }}
|
||||||
|
@ -23,6 +34,7 @@
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
{{ end }}
|
||||||
<hr>
|
<hr>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<p class="copyright">{{ .Site.Copyright | markdownify }}</p>
|
<p class="copyright">{{ .Site.Copyright | markdownify }}</p>
|
||||||
<p class="footer_links">{"<a href="https://slashpages.net/" title="what's a slashpage?" target="_blank">slashpages</a>": [{{- range $i, $link := .Site.Params.slashPages }}{{ if $i }}, {{ end }}"<a href="{{ $link.url }}" title="{{ $link.label }}">{{ $link.title }}</a>"{{ end }}]}
|
<p class="footer_links">{"<a href="/categories/slashes/" title="slashpages">slashpages</a>": [{{- range $i, $link := .Site.Params.slashPages }}{{ if $i }}, {{ end }}"<a href="{{ $link.url }}" title="{{ $link.label }}">{{ $link.title }}</a>"{{ end }}]}
|
||||||
<br><<a target="_blank" href="https://github.com/jbowdre/runtimeterror">view source</a>></p>
|
<br><<a target="_blank" href="https://github.com/jbowdre/runtimeterror">view source</a>></p>
|
||||||
|
|
||||||
<!-- Back to Top button via https://github.com/vfeskov/vanilla-back-to-top -->
|
<!-- Back to Top button via https://github.com/vfeskov/vanilla-back-to-top -->
|
||||||
|
|
Loading…
Reference in a new issue