Layouts for cats/tags

This commit is contained in:
tsmitty11 2023-05-18 13:05:33 +02:00
parent 4b11aeb40b
commit c82358641f
4 changed files with 47 additions and 0 deletions

View file

@ -0,0 +1,3 @@
---
title: Categories
---

View file

@ -0,0 +1,3 @@
---
title: Tags
---

View file

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
{{ partial "head.html" . }}
<body>
{{ partial "navbar.html" . }}
<main>
<div class="container">
<h1>{{ .Title }}</h1>
{{ range .Pages }}
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
<!-- Add any additional fields or content from the post you want to display -->
{{ end }}
</div>
</main>
<footer>
{{ partial "footer-content.html" . }}
{{ partial "footer.html" . }}
</footer>
</body>
</html>

View file

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
{{ partial "head.html" . }}
<body>
{{ partial "navbar.html" . }}
<main>
<div class="container">
<h1>{{ .Title }}</h1>
<ul>
{{ range .Data.Terms.Alphabetical }}
<li><a href="{{ .Page.Permalink }}">{{ .Page.Title }}</a> ({{ .Count }})</li>
{{ end }}
</ul>
</div>
</main>
<footer>
{{ partial "footer-content.html" . }}
{{ partial "footer.html" . }}
</footer>
</body>
</html>