don't capitalize /slashes

This commit is contained in:
John Bowdre 2024-05-29 15:56:46 -05:00
parent d29f86f282
commit e603cbe707
2 changed files with 3 additions and 2 deletions

View file

@ -7,6 +7,7 @@ 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]

View file

@ -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" }}&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="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 }} {{ 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>
@ -43,7 +43,7 @@
{{ end }} {{ end }}
{{- end }} {{- end }}
{{- else }} {{- else }}
{{- if eq .Title "/Slashes" }} {{- if eq .Title "/slashes" }}
{{- $sortedSlashes := sort $pages "Title" }} {{- $sortedSlashes := sort $pages "Title" }}
{{- range $sortedSlashes }} {{- range $sortedSlashes }}
{{- $postDate := .Date.Format "2006-01-02" }} {{- $postDate := .Date.Format "2006-01-02" }}