From 4d639dfeeba2da36e1feb4859b21156d29b32455 Mon Sep 17 00:00:00 2001 From: Curtis Timson Date: Thu, 1 Mar 2018 08:57:59 +0000 Subject: Remove blog pagination configuration --- exampleSite/config-prod.toml | 1 - exampleSite/config.toml | 1 - exampleSite/content/blog/00-old-post.1.md | 12 ++++++++++++ exampleSite/content/blog/00-old-post.2.md | 12 ++++++++++++ exampleSite/content/blog/00-old-post.3.md | 12 ++++++++++++ exampleSite/content/blog/00-old-post.4.md | 12 ++++++++++++ exampleSite/content/blog/00-old-post.5.md | 12 ++++++++++++ layouts/_default/list.html | 2 +- package.json | 2 +- 9 files changed, 62 insertions(+), 4 deletions(-) create mode 100644 exampleSite/content/blog/00-old-post.1.md create mode 100644 exampleSite/content/blog/00-old-post.2.md create mode 100644 exampleSite/content/blog/00-old-post.3.md create mode 100644 exampleSite/content/blog/00-old-post.4.md create mode 100644 exampleSite/content/blog/00-old-post.5.md diff --git a/exampleSite/config-prod.toml b/exampleSite/config-prod.toml index ed2587a..26fd9d3 100644 --- a/exampleSite/config-prod.toml +++ b/exampleSite/config-prod.toml @@ -11,7 +11,6 @@ theme = "../.." [params.blog] title = "The Blog" viewalltext = "View All" - postsperpage = "6" foldername = "blog" [params.settings] diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 7e7dc5b..f943bd4 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -11,7 +11,6 @@ theme = "../.." [params.blog] title = "The Blog" viewalltext = "View All" - postsperpage = "6" foldername = "blog" [params.settings] diff --git a/exampleSite/content/blog/00-old-post.1.md b/exampleSite/content/blog/00-old-post.1.md new file mode 100644 index 0000000..23ece99 --- /dev/null +++ b/exampleSite/content/blog/00-old-post.1.md @@ -0,0 +1,12 @@ ++++ +description = "Old post to show pagination" +date = "2012-02-06T00:00:00" +thumbnail = "images/pic08.jpg" +image = "images/pic01.jpg" +title = "Old post" +slug = "old-post" +author = "John Smith" +draft = false +disqusid = "7" ++++ +Old post to show pagination \ No newline at end of file diff --git a/exampleSite/content/blog/00-old-post.2.md b/exampleSite/content/blog/00-old-post.2.md new file mode 100644 index 0000000..23ece99 --- /dev/null +++ b/exampleSite/content/blog/00-old-post.2.md @@ -0,0 +1,12 @@ ++++ +description = "Old post to show pagination" +date = "2012-02-06T00:00:00" +thumbnail = "images/pic08.jpg" +image = "images/pic01.jpg" +title = "Old post" +slug = "old-post" +author = "John Smith" +draft = false +disqusid = "7" ++++ +Old post to show pagination \ No newline at end of file diff --git a/exampleSite/content/blog/00-old-post.3.md b/exampleSite/content/blog/00-old-post.3.md new file mode 100644 index 0000000..23ece99 --- /dev/null +++ b/exampleSite/content/blog/00-old-post.3.md @@ -0,0 +1,12 @@ ++++ +description = "Old post to show pagination" +date = "2012-02-06T00:00:00" +thumbnail = "images/pic08.jpg" +image = "images/pic01.jpg" +title = "Old post" +slug = "old-post" +author = "John Smith" +draft = false +disqusid = "7" ++++ +Old post to show pagination \ No newline at end of file diff --git a/exampleSite/content/blog/00-old-post.4.md b/exampleSite/content/blog/00-old-post.4.md new file mode 100644 index 0000000..23ece99 --- /dev/null +++ b/exampleSite/content/blog/00-old-post.4.md @@ -0,0 +1,12 @@ ++++ +description = "Old post to show pagination" +date = "2012-02-06T00:00:00" +thumbnail = "images/pic08.jpg" +image = "images/pic01.jpg" +title = "Old post" +slug = "old-post" +author = "John Smith" +draft = false +disqusid = "7" ++++ +Old post to show pagination \ No newline at end of file diff --git a/exampleSite/content/blog/00-old-post.5.md b/exampleSite/content/blog/00-old-post.5.md new file mode 100644 index 0000000..23ece99 --- /dev/null +++ b/exampleSite/content/blog/00-old-post.5.md @@ -0,0 +1,12 @@ ++++ +description = "Old post to show pagination" +date = "2012-02-06T00:00:00" +thumbnail = "images/pic08.jpg" +image = "images/pic01.jpg" +title = "Old post" +slug = "old-post" +author = "John Smith" +draft = false +disqusid = "7" ++++ +Old post to show pagination \ No newline at end of file diff --git a/layouts/_default/list.html b/layouts/_default/list.html index cd2b313..8aa1e24 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -15,7 +15,7 @@
- {{ $paginator := .Paginate (where .Data.Pages "Type" .Site.Params.Blog.foldername) .Site.Params.Blog.postsperpage }} + {{ $paginator := .Paginate (where .Data.Pages "Type" .Site.Params.Blog.foldername) }} {{ partial "blog.html" (dict "title" .Site.Params.Blog.title "paginator" $paginator) }}