mirror of
https://github.com/hyzendust/hyzendust.github.io.git
synced 2026-02-15 00:01:11 +01:00
Fix: remove submodule
This commit is contained in:
20
themes/hugo-theme-yue/layouts/home.html
Normal file
20
themes/hugo-theme-yue/layouts/home.html
Normal file
@@ -0,0 +1,20 @@
|
||||
{{ define "main" }}
|
||||
{{ $pages := where site.RegularPages "Section" "ne" "" }} {{- /* exclude non-section pages, e.g. /content/about.md */ -}}
|
||||
{{ $homePagerSize := or site.Params.homePagerSize 10 }}
|
||||
{{ $paginator := .Paginate $pages $homePagerSize }}
|
||||
{{ .Content }}
|
||||
{{ 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 }}</p>
|
||||
{{- end }}
|
||||
{{ end }}
|
||||
<nav class="paginator">
|
||||
{{- partial "pagination.html" . }} {{/* embedded template */}}
|
||||
</nav>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user