Update: Menu, Category, Blog layout change

This commit is contained in:
hyzen
2026-03-02 21:18:34 +05:30
parent f120687720
commit 994937363a
18 changed files with 21 additions and 24 deletions

View File

@@ -2,7 +2,9 @@
{{ .Content }}
<h1>{{ .Title }}</h1>
<h1><a href="/blog/" style="text-decoration: none; color: var(--accent-color);">All Posts</a> | <a href="/categories/" style="text-decoration: none; color: var(--accent-color);">Categories</a></h1>
<h2>{{ .Title }}</h2>
<div style="margin-bottom: 2rem;"></div>

View File

@@ -3,7 +3,7 @@
{{ $sectionPagerSize := or site.Params.sectionPagerSize 10 }}
{{ $paginator := .Paginate $pages $sectionPagerSize }}
{{ .Content }}
<h1>All Posts</h1>
<h1>All Posts | <a href="/categories/" style="text-decoration: none; color: var(--accent-color);">Categories</a></h1>
{{ range $paginator.Pages }}
<h2 class="home-post-title"><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ partial "main/dates.html" . }}

1
layouts/taxonomy.html Normal file
View File

@@ -0,0 +1 @@
{{ define "main" }} <h1><a href="/blog/" style="text-decoration: none; color: var(--accent-color);">All Posts</a> | Categories</h1> <section class="term-list"> {{ range .Data.Terms.Alphabetical }} <h2 class="term-list__item"> <a class="term-list__link" href="{{ .Page.RelPermalink }}"> {{ .Page.Title }} ({{ .Count }}) </a> </h2> {{ end }} </section> {{ end }}