Initial commit
This commit is contained in:
24
themes/default/layouts/_default/home.html
Normal file
24
themes/default/layouts/_default/home.html
Normal file
@@ -0,0 +1,24 @@
|
||||
{{- define "main" }}
|
||||
<main>
|
||||
<section id="hero">
|
||||
{{ $logo := resources.GetMatch "logo-large.png" -}}
|
||||
{{- with $logo.Resize "x256" -}}
|
||||
<img src="{{ .RelPermalink }}" alt="Logo" class="site-logo" />
|
||||
{{- end }}
|
||||
|
||||
<div>
|
||||
{{ .Content -}}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="articles-list">
|
||||
{{- $pages := site.RegularPages -}}
|
||||
{{- $paginator := .Paginate $pages.ByDate.Reverse 12 -}}
|
||||
{{- $context := . -}}
|
||||
{{- $context.Scratch.Set "paginationPosition" "up" -}}
|
||||
{{- $context.Scratch.Set "paginator" $paginator -}}
|
||||
{{ partial "articles-list.html" (dict "Pages" $paginator.Pages "Context" $context) -}}
|
||||
{{ partial "pagination.html" $context -}}
|
||||
</section>
|
||||
</main>
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user