content updates, various fixes

This commit is contained in:
khannurien
2026-04-26 12:57:40 +00:00
parent 8484abea47
commit 1a9f822b56
164 changed files with 82726 additions and 163 deletions

View File

@@ -0,0 +1,67 @@
{{- define "main" }}
{{- if .Title }}
<header class="page-header">
{{- partial "breadcrumbs.html" . }}
<h1>{{ .Title }}</h1>
{{- if .Description }}
<div class="post-description">{{ .Description | markdownify }}</div>
{{- end }}
</header>
{{- end }}
{{- if .Content }}
<div class="md-content">
{{- if not (.Param "disableAnchoredHeadings") }}
{{- partial "anchored_headings.html" .Content -}}
{{- else }}{{ .Content }}{{ end }}
</div>
{{- end }}
{{- $pages := .RegularPages }}
{{- $paginator := .Paginate $pages }}
{{- range $index, $page := $paginator.Pages }}
<article class="post-entry">
<header class="entry-header">
<h2 class="entry-hint-parent">{{ $page.Title }}</h2>
</header>
{{- if (ne ($page.Param "hideSummary") true) }}
<div class="entry-content">
<p>{{ $page.Summary | plainify | htmlUnescape }}{{ if $page.Truncated }}...{{ end }}</p>
</div>
{{- end }}
{{- if not ($page.Param "hideMeta") }}
<footer class="entry-footer">
{{- partial "post_meta.html" $page -}}
</footer>
{{- end }}
<a class="entry-link" aria-label="post link to {{ $page.Title | plainify }}" href="{{ $page.Permalink }}"></a>
</article>
{{- end }}
{{- if gt $paginator.TotalPages 1 }}
<footer class="page-footer">
<nav class="pagination">
{{- if $paginator.HasPrev }}
<a class="prev" href="{{ $paginator.Prev.URL | absURL }}">
«&nbsp;{{ i18n "prev_page" }}&nbsp;
{{- if (.Param "ShowPageNums") }}
{{- sub $paginator.PageNumber 1 }}/{{ $paginator.TotalPages }}
{{- end }}
</a>
{{- end }}
{{- if $paginator.HasNext }}
<a class="next" href="{{ $paginator.Next.URL | absURL }}">
{{- i18n "next_page" }}&nbsp;
{{- if (.Param "ShowPageNums") }}
{{- add 1 $paginator.PageNumber }}/{{ $paginator.TotalPages }}
{{- end }}&nbsp;»
</a>
{{- end }}
</nav>
</footer>
{{- end }}
{{- end }}{{- /* end main */ -}}