mirror of
https://github.com/hyzendust/hyzendust.github.io.git
synced 2026-04-15 21:28:32 +02:00
Update: Menu, Category, Blog layout change
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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
1
layouts/taxonomy.html
Normal 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 }}
|
||||
Reference in New Issue
Block a user