Update: contact page added, about page removed

This commit is contained in:
hyzen
2026-02-28 22:48:43 +05:30
parent ed28ebb86d
commit 2d284e5394
57 changed files with 153 additions and 856 deletions

21
layouts/section.html Normal file
View File

@@ -0,0 +1,21 @@
{{ define "main" }}
{{ $pages := .Pages }}
{{ $sectionPagerSize := or site.Params.sectionPagerSize 10 }}
{{ $paginator := .Paginate $pages $sectionPagerSize }}
{{ .Content }}
<h1>All Posts</h1>
{{ range $paginator.Pages }}
<h2 class="home-post-title"><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ partial "main/dates.html" . }}
{{ with .Summary }}
{{- /*
Create deterministic summary output for styling.
See https://github.com/gohugoio/hugo/issues/8910
*/ -}}
<p class="summary">{{ . | plainify | htmlUnescape | chomp | truncate 150 }}</p>
{{- end }}
{{ end }}
<nav class="paginator">
{{- partial "pagination.html" . }} {{/* embedded template */}}
</nav>
{{ end }}