add tags and categories

This commit is contained in:
geekifan
2025-04-23 09:21:54 +08:00
parent 4648863457
commit 370180de16
11 changed files with 270 additions and 26 deletions

View File

@ -0,0 +1,19 @@
{{ define "main" }}
<div id="page-category">
<h1 class="ps-lg-2">
<i class="far fa-folder-open fa-fw text-muted"></i>
{{ .Title }}
<span class="lead text-muted ps-2">{{ len .Pages }}</span>
</h1>
<ul class="content ps-0">
{{ range .Pages }}
<li class="d-flex justify-content-between px-md-3">
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
<span class="dash flex-grow-1"></span>
<span class="text-muted small text-nowrap">{{ .Date | time.Format ":date_medium" }}</span>
</li>
{{ end }}
</ul>
</div>
{{ end }}