mirror of
https://github.com/hyzendust/hyzendust.github.io.git
synced 2026-04-16 05:38:33 +02:00
Fix: date in services
This commit is contained in:
@@ -1,15 +1,30 @@
|
||||
{{ define "main" }}
|
||||
|
||||
{{ $sectionPagerSize := or site.Params.sectionPagerSize 10 }}
|
||||
{{ $paginator := .Paginate .Pages.ByDate.Reverse $sectionPagerSize }}
|
||||
|
||||
<nav class="uninotes-breadcrumbs breadcrumbs">
|
||||
<a href="/blog/">Blog</a>
|
||||
› <a href="/categories/">Categories</a>
|
||||
› <span>{{ .Title }}</span>
|
||||
{{ if gt $paginator.TotalPages 1 }}
|
||||
› <span>Page {{ $paginator.PageNumber }} of {{ $paginator.TotalPages }}</span>
|
||||
{{ end }}
|
||||
</nav>
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
<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>
|
||||
<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>
|
||||
|
||||
<section class="posts-list">
|
||||
{{ range .Pages.ByDate.Reverse }}
|
||||
{{ range $paginator.Pages }}
|
||||
{{ partial "main/dates.html" . }}
|
||||
<h2 class="term-post-title">
|
||||
<a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
|
||||
@@ -17,4 +32,8 @@
|
||||
{{ end }}
|
||||
</section>
|
||||
|
||||
<nav class="paginator">
|
||||
{{- partial "pagination.html" . }}
|
||||
</nav>
|
||||
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user