diff options
author | Curtis Timson <curt@live.co.uk> | 2018-03-01 11:57:59 +0300 |
---|---|---|
committer | Curtis Timson <curt@live.co.uk> | 2018-03-01 11:57:59 +0300 |
commit | 4d639dfeeba2da36e1feb4859b21156d29b32455 (patch) | |
tree | 9a910138aaeebdfd2700ce04e34d30f251ed3f04 | |
parent | 4a789ed8d362e177c1707baa904774e9d720e082 (diff) |
Remove blog pagination configuration
-rw-r--r-- | exampleSite/config-prod.toml | 1 | ||||
-rw-r--r-- | exampleSite/config.toml | 1 | ||||
-rw-r--r-- | exampleSite/content/blog/00-old-post.1.md | 12 | ||||
-rw-r--r-- | exampleSite/content/blog/00-old-post.2.md | 12 | ||||
-rw-r--r-- | exampleSite/content/blog/00-old-post.3.md | 12 | ||||
-rw-r--r-- | exampleSite/content/blog/00-old-post.4.md | 12 | ||||
-rw-r--r-- | exampleSite/content/blog/00-old-post.5.md | 12 | ||||
-rw-r--r-- | layouts/_default/list.html | 2 | ||||
-rw-r--r-- | package.json | 2 |
9 files changed, 62 insertions, 4 deletions
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 @@ <div id="main-wrapper"> <div class="container"> - {{ $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) }} <footer> diff --git a/package.json b/package.json index 9ce0d75..ca6e886 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hugo-theme-dopetrope", - "version": "4.1.0", + "version": "4.2.0", "description": "Hugo Theme Dopetrope", "main": "index.js", "scripts": { |