summaryrefslogtreecommitdiff
path: root/layouts/index.html
diff options
context:
space:
mode:
authorvimux <vimux@protonmail.com>2019-07-30 17:32:26 -0400
committervimux <vimux@protonmail.com>2019-07-31 08:49:20 -0400
commitc8bf719e3d4a4c6ed1e70c5091f72e542ffc7a3d (patch)
treed81f0d69cedfc20638d42e88b19b08f23d8632da /layouts/index.html
parentc71d33abd2c051c19c6298f150277c9dbdbe2bcd (diff)
Define the Base Template and fix Hugo warnings
* Define the Base Template (baseof.html) * Use relative URL link to style.css file * Move summary.html from partials to _default layouts * Fix Hugo warnings (needs Hugo 0.20 or newer) * Fix Paginator rule on main page. Fix #8 * Latest posts: show pages from mainSections only * Bump Hugo 0.19 -> 0.20 * Formatting
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 56c41f3..ab01f67 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,10 +1,10 @@
-{{ partial "header.html" . }}
+{{ define "main" }}
<main>
- {{ $paginator := .Paginate (where .Site.Pages "Type" "post") }}
+ {{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
{{ range $paginator.Pages }}
- {{ partial "summary.html" . }}
+ {{ .Render "summary" }}
{{ end }}
{{ partial "pagination.html" . }}
</main>
{{ partial "sidebar.html" . }}
-{{ partial "footer.html" . }}
+{{ end }}