Compare commits

..

2 commits

Author SHA1 Message Date
9c18281781 fix related header on sidebar 2024-05-30 16:29:22 -05:00
526985d293 don't link a feed for /slashes 2024-05-30 14:04:29 -05:00
2 changed files with 3 additions and 3 deletions

View file

@ -7,7 +7,7 @@
<h1>{{ site.Params.indexTitle | markdownify }}</h1> <h1>{{ site.Params.indexTitle | markdownify }}</h1>
{{ else }} {{ else }}
{{ if eq .Title "slashes" }} {{ 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> <h1>/slashes</h1>
<i>My collection of <a target="_blank" title="what's a slashpage?" href="https://slashpages.net">slashpages</a>.</i><hr> <i>My collection of <a target="_blank" title="what's a slashpage?" href="https://slashpages.net">slashpages</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="Category RSS"><i class="fa-solid fa-square-rss"></i></a>&nbsp;</h1>

View file

@ -11,7 +11,7 @@
{{$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" }} {{ if eq .Params.categories "slashes" }}
<h3>More {{ .Params.categories }}</h3> <h3>More /slashes</h3>
{{ $sortedPosts := sort $related "Title" }} {{ $sortedPosts := sort $related "Title" }}
<ul> <ul>
{{- range $sortedPosts }} {{- range $sortedPosts }}
@ -21,7 +21,7 @@
{{ end }} {{ end }}
</ul> </ul>
{{ else }} {{ else }}
<h3>More /slashes</h3> <h3>More {{ .Params.categories }}</h3>
<ul> <ul>
{{- range first $relatedLimit $related }} {{- range first $relatedLimit $related }}
<li> <li>