jlelse
/
Indieroad
Archived
1
Fork 0
This repository has been archived on 2020-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
Indieroad/layouts/index.html

16 lines
489 B
HTML
Raw Normal View History

2019-09-03 15:50:00 +00:00
{{ define "main" }}
2020-04-15 18:41:03 +00:00
<main class="main list h-feed">
2019-09-03 15:50:00 +00:00
{{- with .Content }}
<div class="main-content">
{{ . }}
</div>
{{- end }}
2019-12-31 08:09:33 +00:00
{{- $postSections := ($.Param "postSections" | default (slice "posts")) }}
{{- $paginator := .Paginate ( where .Site.RegularPages "Type" "in" $postSections ) }}
2019-09-03 15:50:00 +00:00
{{- range $paginator.Pages }}
{{- .Render "summary" }}
{{- end }}
{{ if (.Param "authorbox") }}{{ partialCached "authorbox" . }}{{ end }}
2019-09-03 15:50:00 +00:00
</main>
{{ partial "pagination.html" . }}
{{ end }}