mirror of
https://github.com/ivabus/www
synced 2024-11-22 01:55:07 +03:00
Layouts for cats/tags
This commit is contained in:
parent
4b11aeb40b
commit
c82358641f
4 changed files with 47 additions and 0 deletions
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: Categories
|
||||
---
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: Tags
|
||||
---
|
20
src/layouts/_default/taxonomyTerm.html
Normal file
20
src/layouts/_default/taxonomyTerm.html
Normal 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>
|
21
src/layouts/taxonomy/taxonomy.html
Normal file
21
src/layouts/taxonomy/taxonomy.html
Normal 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>
|
Loading…
Reference in a new issue