Site update

This commit is contained in:
CronyAkatsuki 2023-10-06 20:10:52 +02:00
parent 33b85e2436
commit 6f9ac9c5b8
24 changed files with 748 additions and 18 deletions

View file

@ -7,8 +7,7 @@
<section class="list">
{{ range .Pages.ByPublishDate.Reverse }}
<a href="{{ .RelPermalink }}">
{{ .Date.Format .Site.Params.dateFormat }} || {{ .Title }} <span class="comment"></span>
</a><br>
{{ .Date.Format .Site.Params.dateFormat }} || {{ .Title }}</a><br />
{{ end }}
</section>
{{ end }}

View file

@ -4,8 +4,10 @@
{{ if isset .Params "date" }}
<div id="date">
<p>{{ .Date.Format .Site.Params.dateFormat }}</p>
<div id="blog-meta">
<p id="date">{{ .Date.Format .Site.Params.dateFormat }}</p>
{{ partial "tags.html" . }}
<hr>
</div>
{{ end }} {{ .Content }} {{ end }}

View file

@ -0,0 +1,9 @@
{{ $taxonomy := "tags" }} {{ with .Param $taxonomy }}
<p>
{{ range $index, $tag := . }} {{ with $.Site.GetPage (printf "/%s/%s"
$taxonomy $tag) -}}
<span>|</span>
<a href="{{ .Permalink }}">{{ $tag | urlize }}</a>
{{- end -}} {{- end -}}
</p>
{{ end }}

View file

@ -0,0 +1,13 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ .Content}}
<section class="list">
{{ range .Pages.ByPublishDate.Reverse }}
<a href="{{ .RelPermalink }}">
{{ .Title }}</a><br />
{{ end }}
</section>
{{ end }}

11
layouts/taxonomy/tag.html Normal file
View file

@ -0,0 +1,11 @@
{{ define "main" }}
<h1>Tag: {{ .Title }}</h1>
<section class="list">
{{ range .Pages.ByPublishDate.Reverse }}
<a href="{{ .RelPermalink }}">
{{ .Date.Format .Site.Params.dateFormat }} || {{ .Title }}</a><br />
{{ end }}
</section>
{{ end }}