Merge branch 'main' into drafts

This commit is contained in:
John Bowdre 2024-06-01 21:12:06 -05:00
commit dc8dadd79f
3 changed files with 10 additions and 4 deletions

View file

@ -7,7 +7,6 @@ languageCode = "en"
DefaultContentLanguage = "en" DefaultContentLanguage = "en"
enableInlineShortcodes = true enableInlineShortcodes = true
enableRobotsTXT = true enableRobotsTXT = true
capitalizeListTitles = false
# define gemini media type # define gemini media type
[mediaTypes] [mediaTypes]

3
content/tags/_index.md Normal file
View file

@ -0,0 +1,3 @@
---
title: Tags
---

View file

@ -10,7 +10,7 @@
<h1>{{ .Title | markdownify }}</h1> <h1>{{ .Title | markdownify }}</h1>
<i>My collection of <a target="_blank" title="what's a slashpage?" href="https://slashpages.net">slash pages</a>.</i><hr> <i>My collection of <a target="_blank" title="what's a slashpage?" href="https://slashpages.net">slash pages</a>.</i><hr>
{{ else }} {{ 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> <h1>{{ .Title | markdownify }}{{ if eq .Kind "term" }}&nbsp;<a target="_blank" href="{{ .Permalink }}feed.xml" aria-label="{{ .Title }} RSS" title="{{ .Title }} RSS"><i class="fa-solid fa-square-rss"></i></a>&nbsp;</h1>
{{ with .Description }}<i>{{ . }}</i><hr>{{ else }}<br>{{ end }} {{ with .Description }}<i>{{ . }}</i><hr>{{ else }}<br>{{ end }}
{{ end }} {{ end }}
{{ end }}{{ end }} {{ end }}{{ end }}
@ -19,6 +19,7 @@
{{- if eq .Kind "taxonomy" }} {{- if eq .Kind "taxonomy" }}
{{- if eq .Title "Tags" }} {{- if eq .Title "Tags" }}
{{/* list of all tags */}}
<div class="tagsArchive"> <div class="tagsArchive">
{{- range $key, $value := .Site.Taxonomies }} {{- range $key, $value := .Site.Taxonomies }}
{{- $slicedTags := ($value.ByCount) }} {{- $slicedTags := ($value.ByCount) }}
@ -30,6 +31,7 @@
{{- end }} {{- end }}
</div> </div>
{{- else }} {{- else }}
{{/* list of all categories */}}
{{- range .Pages.ByDate.Reverse }} {{- range .Pages.ByDate.Reverse }}
{{- $postDate := .Date.Format "2006-01-02" }} {{- $postDate := .Date.Format "2006-01-02" }}
{{- $updateDate := .Lastmod.Format "2006-01-02" }} {{- $updateDate := .Lastmod.Format "2006-01-02" }}
@ -37,7 +39,7 @@
<header class="post__header"> <header class="post__header">
<h1><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1> <h1><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1>
<p class="post__meta"> <p class="post__meta">
<span class="date">["{{- $postDate }}"{{- if ne $postDate $updateDate }}, "{{ $updateDate }}"{{ end }}]</span> <span class="date">["{{ with $updateDate }}{{ . }}{{ else }}{{ .Date }}{{ end }}"]</span>
</p> </p>
</header> </header>
<section class="post__summary"> <section class="post__summary">
@ -49,6 +51,7 @@
{{- end }} {{- end }}
{{- else }} {{- else }}
{{- if eq .Title "/slashes" }} {{- if eq .Title "/slashes" }}
{{/* slash page archive */}}
{{- $sortedSlashes := sort $pages "Title" }} {{- $sortedSlashes := sort $pages "Title" }}
{{- range $sortedSlashes }} {{- range $sortedSlashes }}
{{- $postDate := .Date.Format "2006-01-02" }} {{- $postDate := .Date.Format "2006-01-02" }}
@ -57,7 +60,7 @@
<header class="post__header"> <header class="post__header">
<h1><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1> <h1><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1>
<p class="post__meta"> <p class="post__meta">
<span class="date">["{{- $postDate }}"{{- if ne $postDate $updateDate }}, "{{ $updateDate }}"{{ end }}]</span> <span class="date">["{{ with $updateDate }}{{ . }}{{ else }}{{ $postDate }}{{ end }}"]</span>
</p> </p>
</header> </header>
<section class="post__summary"> <section class="post__summary">
@ -67,6 +70,7 @@
</article> </article>
{{- end }} {{- end }}
{{- else }} {{- else }}
{{/* regular posts archive */}}
{{- range (.Paginate $pages).Pages }} {{- range (.Paginate $pages).Pages }}
{{- $postDate := .Date.Format "2006-01-02" }} {{- $postDate := .Date.Format "2006-01-02" }}
{{- $updateDate := .Lastmod.Format "2006-01-02" }} {{- $updateDate := .Lastmod.Format "2006-01-02" }}