mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-12-27 05:02:18 +00:00
Merge branch 'main' into drafts
This commit is contained in:
commit
dc8dadd79f
3 changed files with 10 additions and 4 deletions
|
@ -7,7 +7,6 @@ languageCode = "en"
|
|||
DefaultContentLanguage = "en"
|
||||
enableInlineShortcodes = true
|
||||
enableRobotsTXT = true
|
||||
capitalizeListTitles = false
|
||||
|
||||
# define gemini media type
|
||||
[mediaTypes]
|
||||
|
|
3
content/tags/_index.md
Normal file
3
content/tags/_index.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: Tags
|
||||
---
|
|
@ -10,7 +10,7 @@
|
|||
<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>
|
||||
{{ 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="{{ .Title }} RSS" title="{{ .Title }} RSS"><i class="fa-solid fa-square-rss"></i></a> </h1>
|
||||
{{ with .Description }}<i>{{ . }}</i><hr>{{ else }}<br>{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}{{ end }}
|
||||
|
@ -19,6 +19,7 @@
|
|||
|
||||
{{- if eq .Kind "taxonomy" }}
|
||||
{{- if eq .Title "Tags" }}
|
||||
{{/* list of all tags */}}
|
||||
<div class="tagsArchive">
|
||||
{{- range $key, $value := .Site.Taxonomies }}
|
||||
{{- $slicedTags := ($value.ByCount) }}
|
||||
|
@ -30,6 +31,7 @@
|
|||
{{- end }}
|
||||
</div>
|
||||
{{- else }}
|
||||
{{/* list of all categories */}}
|
||||
{{- range .Pages.ByDate.Reverse }}
|
||||
{{- $postDate := .Date.Format "2006-01-02" }}
|
||||
{{- $updateDate := .Lastmod.Format "2006-01-02" }}
|
||||
|
@ -37,7 +39,7 @@
|
|||
<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>
|
||||
<span class="date">["{{ with $updateDate }}{{ . }}{{ else }}{{ .Date }}{{ end }}"]</span>
|
||||
</p>
|
||||
</header>
|
||||
<section class="post__summary">
|
||||
|
@ -49,6 +51,7 @@
|
|||
{{- end }}
|
||||
{{- else }}
|
||||
{{- if eq .Title "/slashes" }}
|
||||
{{/* slash page archive */}}
|
||||
{{- $sortedSlashes := sort $pages "Title" }}
|
||||
{{- range $sortedSlashes }}
|
||||
{{- $postDate := .Date.Format "2006-01-02" }}
|
||||
|
@ -57,7 +60,7 @@
|
|||
<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>
|
||||
<span class="date">["{{ with $updateDate }}{{ . }}{{ else }}{{ $postDate }}{{ end }}"]</span>
|
||||
</p>
|
||||
</header>
|
||||
<section class="post__summary">
|
||||
|
@ -67,6 +70,7 @@
|
|||
</article>
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
{{/* regular posts archive */}}
|
||||
{{- range (.Paginate $pages).Pages }}
|
||||
{{- $postDate := .Date.Format "2006-01-02" }}
|
||||
{{- $updateDate := .Lastmod.Format "2006-01-02" }}
|
||||
|
|
Loading…
Reference in a new issue