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

github.com/curttimson/hugo-theme-massively.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCurtis Timson <curt@live.co.uk>2018-02-25 12:25:34 +0300
committerCurtis Timson <curt@live.co.uk>2018-02-25 12:25:34 +0300
commit0520d2da6c480a9a4ad575015eaaa8f8a7ffa382 (patch)
tree3a9661e643d65d02069ffff5a8b436cf73c00ef1
parentb961981c79fa57b41272c497c51fd915a7ef02b6 (diff)
:wrench: :sparkles: Configure post page size
-rw-r--r--exampleSite/config.toml1
-rw-r--r--layouts/index.html2
2 files changed, 2 insertions, 1 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 29419d6..f300843 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -5,6 +5,7 @@ theme = "../.."
[params.posts]
foldername = "post"
+ pagesize = "6"
[params.settings]
googleanalytics = "UA-113904582-3"
diff --git a/layouts/index.html b/layouts/index.html
index 0503eed..c5dab20 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,7 +1,7 @@
{{ partial "htmlhead" . }}
<body class="is-loading">
- {{ $posts := .Paginate (where .Data.Pages "Type" .Site.Params.Posts.foldername) 6 }}
+ {{ $posts := .Paginate (where .Data.Pages "Type" .Site.Params.Posts.foldername) .Site.Params.Posts.pagesize }}
<!-- Wrapper -->
<div id="wrapper" class="fade-in">