mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-11-14 03:52:19 +00:00
63 lines
No EOL
1.9 KiB
HTML
63 lines
No EOL
1.9 KiB
HTML
{{ if .Params.description }}<p>{{ .Params.description }}</p><hr>{{ end }}
|
|
{{ if and (gt .WordCount 400 ) (gt (len .TableOfContents) 180) }}
|
|
<p>
|
|
<h3>On this page</h3>
|
|
{{ .TableOfContents }}
|
|
<hr>
|
|
</p>
|
|
{{ end }}
|
|
|
|
{{ if isset .Params "categories" }}
|
|
{{$related := where .Site.RegularPages ".Params.categories" "eq" .Params.categories }}
|
|
{{- $relatedLimit := default 8 .Site.Params.numberOfRelatedPosts }}
|
|
{{ if eq .Params.categories "slashes" }}
|
|
<h3>More /slashes</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>
|
|
<ul>
|
|
{{- range first $relatedLimit $related }}
|
|
<li>
|
|
<a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title | markdownify }}</a>
|
|
</li>
|
|
{{ end }}
|
|
{{ if gt (len $related) $relatedLimit }}
|
|
<li>
|
|
<a href="/categories/{{ lower .Params.categories }}/"><i>See all {{ .Params.categories }}</i></a>
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
{{ end }}
|
|
<hr>
|
|
{{ end }}
|
|
|
|
{{- $posts := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
|
|
{{- $featured := default 8 .Site.Params.numberOfFeaturedPosts }}
|
|
{{- $featuredPosts := first $featured (where $posts "Params.featured" true)}}
|
|
{{- with $featuredPosts }}
|
|
<h3>Featured Posts</h3>
|
|
<ul>
|
|
{{- range . }}
|
|
<li>
|
|
<a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title | markdownify }}</a>
|
|
</li>
|
|
{{- end }}
|
|
</ul>
|
|
{{- end }}
|
|
<hr>
|
|
<h3>status.lol</h3>
|
|
<script src="https://status.lol/jbowdre.js?time&link&fluent&pretty"></script>
|
|
<hr>
|
|
<script src="https://shoutouts.lol/embed/kz-49_TpBK2YexqL6Gyf.js" defer></script>
|
|
{{- if eq .Site.Params.analytics true }}
|
|
<hr>
|
|
<h3>webring</h3>
|
|
<a href="" target="_blank" class="tinylytics_webring" title="Tinylytics Webring">️🕸<img class="tinylytics_webring_avatar" src="" style="display: none"/>💍</a>
|
|
{{- end }} |