mirror of
https://github.com/ivabus/www
synced 2024-11-21 20:05:06 +03:00
Changed up category taxonomy
This commit is contained in:
parent
f0ac077731
commit
4d507e06ab
4 changed files with 9 additions and 41 deletions
|
@ -18,3 +18,4 @@ title = 'Equitable Open-Source for Web3'
|
|||
|
||||
[taxonomies]
|
||||
category = "categories"
|
||||
tags = "tags"
|
||||
|
|
8
src/layouts/_default/taxonomy/categories.html
Normal file
8
src/layouts/_default/taxonomy/categories.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
<h1>{{ .Page.Title }}</h1>
|
||||
<ul>
|
||||
{{ range .Data.Pages }}
|
||||
<li>
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
|
@ -1,20 +0,0 @@
|
|||
<!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>
|
|
@ -1,21 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
{{ partial "head.html" . }}
|
||||
<body>
|
||||
{{ partial "navbar.html" . }}
|
||||
<main>
|
||||
<div class="container one-box">
|
||||
<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