All checks were successful
Blog Deployment / Check-Rebuild (push) Successful in 8s
Blog Deployment / Build (push) Has been skipped
Blog Deployment / Deploy-Staging (push) Successful in 9s
Blog Deployment / Test-Staging (push) Successful in 3s
Blog Deployment / Merge (push) Has been skipped
Blog Deployment / Deploy-Production (push) Has been skipped
Blog Deployment / Test-Production (push) Has been skipped
Blog Deployment / Clean (push) Has been skipped
Blog Deployment / Notify (push) Has been skipped
30 lines
933 B
HTML
30 lines
933 B
HTML
{{ define "main" }}
|
|
<header class="homepage-header">
|
|
{{ with .Title }}
|
|
<h1 class="homepage-title">{{ . }}</h1>
|
|
{{ end }}
|
|
{{ with .Content }}
|
|
<div class="homepage-description">
|
|
{{ . }}
|
|
</div>
|
|
{{ end }}
|
|
</header>
|
|
|
|
{{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
|
|
{{ $notHidden := where .Site.RegularPages "Params.hidden" "!=" true }}
|
|
{{ $filtered := ($pages | intersect $notHidden) }}
|
|
{{ $pag := .Paginate ($filtered) }}
|
|
|
|
<section class="article-list">
|
|
{{ range $index, $element := $pag.Pages }}
|
|
{{ partial "article-list/default" . }}
|
|
{{ end }}
|
|
</section>
|
|
|
|
{{- partial "pagination.html" . -}}
|
|
{{- partial "footer/footer" . -}}
|
|
{{ end }}
|
|
|
|
{{ define "right-sidebar" }}
|
|
{{ partial "sidebar/right.html" (dict "Context" . "Scope" "homepage") }}
|
|
{{ end }} |