feature: added separate list and terms templates, for posts under the taxonomy and different taxonomy terms respectively

This commit is contained in:
2026-02-01 17:56:40 -05:00
parent 797f6be25f
commit 85c87f0c1c
2 changed files with 46 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
{{ define "main" }}
<div id="{{ lower .Title }}" class="page tag">
<h1>{{ .Title }}</h1>
{{ with .Summary }}
<p>{{ . }}</p>
{{ end }}
{{ with .Params.image }}
{{ $path := print ".." .Params.image }}
<img src="{{ $path }}" alt="{{ lower .Title }}_image">
{{ end }}
<!-- <img src="images/{{ lower .LinkTitle }}" alt=""> -->
</div>
{{ with .Content }}
<div id="content" class="page">
{{ . }}
</div>
{{ end }}
<div id="posts" class="directory">
{{ range .Paginator.Pages }}
<a href="{{ .RelPermalink }}">
<article class="post">
<h2>{{ .LinkTitle }}</h2>
<p>{{ .Summary }}</p>
</article>
</a>
{{ end }}{{ template "_internal/pagination.html" . }}
</div>
{{ end }}

View File

@@ -0,0 +1,18 @@
{{ define "expo" }}
<div id="{{ lower .Title }}" class="expo site">
<h1 id="title" class="site {{ lower .Title }}">{{ .Title }}</h1>
<p id="summary" class="site {{ lower .Title }}">{{ .Content }}</p>
</div>
{{ end }}
{{ define "main" }}
<div id="{{ lower .Title }}" class="directory">
<dl>
{{ range .Data.Pages }}
<dt class="tag title"><a href="{{ .Permalink }}">{{ .Title }}</a></dt>
{{ with .Summary }}
<dd class="tag content">{{ . }}</dd>
{{ end }}
{{ end }}
</dl>
</div>
{{ end }}