50 lines
1.7 KiB
HTML
50 lines
1.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en" class="overflow-x-hidden">
|
|
{{ partial "head" (dict "title" .Title) }}
|
|
<body id="blog" class="flex flex-col">
|
|
{{ partial "header" }}
|
|
<div id="submenu" class="flex bg-blue-100 h-14">
|
|
<div class="flex flex-10 mx-auto relative lg:min-w-940 max-w-6xl">
|
|
<ul class="list-none pt-4">
|
|
<li class="inline mr-6">
|
|
<a href="/blog/">Noveria Blog</a>
|
|
</li>
|
|
{{range $name, $taxonomy := .Site.Taxonomies.tags}}
|
|
{{ with $.Site.GetPage (printf "/tags/%s" $name) }}
|
|
<li class="inline mr-6">
|
|
<a href="{{ .RelPermalink }}">{{$name | title}}</a>
|
|
</li>
|
|
{{ end }}
|
|
{{ end }}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<main class="flex flex-10 flex-col py-0 mx-auto relative lg:min-w-940 max-w-6xl">
|
|
{{ block "blog-main" . }}{{ end }}
|
|
</main>
|
|
{{ partial "footer" }}
|
|
</body>
|
|
</html>
|
|
|
|
|
|
<!-- {{ define "main" }}
|
|
<div class="grid grid-cols-1 md:grid-cols-3 gap-8 mb-14">
|
|
<section class="md:col-span-2">
|
|
<h2 class="text-3xl font-bold mb-10">{{ .Title | humanize }}</h2>
|
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-y-10 gap-x-4">
|
|
{{ range ( .Paginator 6 ).Pages }}
|
|
{{- partial "content/card.html" . -}}
|
|
{{ end }}
|
|
</div>
|
|
<div class="flex items-center mt-10">
|
|
{{- if .Paginator.HasPrev -}}
|
|
<a class="border rounded-full px-6 py-2 hover:bg-zinc-200 mr-auto" href="{{ .Paginator.Prev.URL }}">← Previous</a>
|
|
{{- end -}}
|
|
{{- if .Paginator.HasNext -}}
|
|
<a class="border rounded-full px-6 py-2 hover:bg-zinc-200" href="{{ .Paginator.Next.URL }}">Next →</a>
|
|
{{- end -}}
|
|
</div>
|
|
</section>
|
|
</div>
|
|
|
|
{{ end }} -->
|