some changes to themes

This commit is contained in:
fzorb 2025-01-16 11:26:30 +02:00
parent 26c526e433
commit 8237b6aa19
51 changed files with 852 additions and 12 deletions

View file

@ -0,0 +1,7 @@
!{{ .Title }}
{{ .RawContent }}
{{ range .Pages.ByPublishDate.Reverse }}
0{{ .Title }} {{ with .OutputFormats.Get "gopher" -}}{{ .RelPermalink }} {{ $.Site.Params.hostname}} 70 {{ end }}
{{ end }}

View file

@ -0,0 +1,21 @@
{{ partial "header.html" . }}
{{if not .IsHome }}
<h1>{{ .Title | markdownify }}</h1>
{{ end }}
{{ .Content }}
{{ $pages := .Pages }}
{{ if .IsHome }}{{ $pages = .Site.RegularPages }}{{ end }}
{{ range $index, $page := (where $pages "Section" "!=" "") }}
<div class="post">
<h3><a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a></h3>
<span class="date">Written on {{ .Date.Format "2006/01/02" }}</span>
<p>{{ .Summary }}</p>
</div>
{{ if not (eq $index (sub (len $pages) 1)) }}
<hr>
{{ end }}
{{ end }}
{{ partial "footer.html" . }}

View file

@ -0,0 +1,8 @@
# {{ .Title }}
{{ .Date.Format (.Site.Params.dateform | default "N/A") }}
{{ if .Params.tags }}
Posted in: {{ range .Params.tags }}{{ . }} {{ end }}
{{ end }}
{{ .RawContent }}

View file

@ -0,0 +1,12 @@
{{ partial "header.html" . }}
<div class="article-meta">
<h1><span class="title">{{ .Title | markdownify }}</span></h1>
{{ with .Params.author }}<h2 class="author">{{ . }}</h2>{{ end }}
{{ if (gt .Params.date 0) }}<h2 class="date">{{ .Date.Format "2006/01/02" }}</h2>{{ end }}
</div>
<main>
{{ .Content }}
</main>
{{ partial "footer.html" . }}

View file

@ -0,0 +1,13 @@
{{ partial "header.html" . }}
<h1>{{ .Title }}</h1>
<ul class="terms">
{{ range .Data.Terms }}
<li>
<a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a> ({{ .Count }})
</li>
{{ end }}
</ul>
{{ partial "footer.html" . }}