Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/puresyntax71/hugo-theme-chunky-poster.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/layouts/index.html b/layouts/index.html
new file mode 100644
index 0000000..06fff70
--- /dev/null
+++ b/layouts/index.html
@@ -0,0 +1,16 @@
+{{ define "main" }}
+<main class="container my-4">
+ <div class="row">
+ <div class="col-md-8">
+ {{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
+ {{ range $paginator.Pages }}
+ {{ .Render "summary" }}
+ {{ end }}
+ {{ partial "pagination.html" . }}
+ </div>
+ <div class="col-md-4">
+ {{ partial "sidebar.html" . }}
+ </div>
+ </div>
+</main>
+{{ end }}