1
0
This commit is contained in:
syui 2024-05-18 02:18:28 +09:00
parent ae948d0da0
commit 3cec19c749
Signed by: syui
GPG Key ID: 5417CFEBAD92DF56

View File

@ -4,7 +4,22 @@
<article>
<div class="content">
{{ if ne .Lastmod .Date }}<div class="post-time-date">{{ .Lastmod.Format "2006-01-02" }}</div>{{ end }}
<div class="post-time-date">
{{ if ne .Lastmod .Date }}
<p>{{ .Lastmod.Format "2006-01-02" }}</p>
{{ end }}
{{ $taxo := "tags" }}
{{ with .Param $taxo }}
<p><i class="fa-regular fa-folder"></i> {{ if gt (len .) 1 }}{{ end }}
{{ range $index, $director := . }}
{{- if gt $index 0 }}, {{ end -}}
{{ with $.Site.GetPage (printf "/%s/%s" $taxo $director) -}}
<a href="{{ .Permalink }}">{{ $director }}</a>
{{ end }}
{{ end }}
{{ end }}
</div>
<h1>{{ .Title }}</h1>
{{ .Content }}
</div>