diff options
author | goransv <gsv@appernetic.io> | 2019-02-13 22:32:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-13 22:32:36 +0300 |
commit | cd4d4aa67fa1283fe7b00d46e6c1d4aadd08e600 (patch) | |
tree | d55804b80fd98d33201c75382920f56f88073c1f | |
parent | 8191bf70a8182541ea605d3f681216e96d5b2ea2 (diff) | |
parent | 460413e494c80bb9dad4cf86795b44754081fcb4 (diff) |
Merge pull request #47 from MatthewMcD/post-sort-order-issue-44
Fixed Post Sort Order Issue 44
-rw-r--r-- | exampleSite/content/post/work1.md | 2 | ||||
-rw-r--r-- | exampleSite/content/post/work10.md | 2 | ||||
-rw-r--r-- | exampleSite/content/post/work11.md | 2 | ||||
-rw-r--r-- | exampleSite/content/post/work3.md | 2 | ||||
-rw-r--r-- | exampleSite/content/post/work4.md | 2 | ||||
-rw-r--r-- | exampleSite/content/post/work5.md | 2 | ||||
-rw-r--r-- | exampleSite/content/post/work7.md | 2 | ||||
-rw-r--r-- | exampleSite/content/post/work8.md | 2 | ||||
-rw-r--r-- | exampleSite/content/post/work9.md | 2 | ||||
-rw-r--r-- | layouts/partials/category.html | 2 | ||||
-rw-r--r-- | layouts/partials/portfolio.html | 2 | ||||
-rw-r--r-- | layouts/partials/tag.html | 2 |
12 files changed, 12 insertions, 12 deletions
diff --git a/exampleSite/content/post/work1.md b/exampleSite/content/post/work1.md index 96b695f..2b2e8c4 100644 --- a/exampleSite/content/post/work1.md +++ b/exampleSite/content/post/work1.md @@ -2,7 +2,7 @@ showonlyimage = true draft = false image = "img/portfolio/a4-paper.jpg" -date = "2016-11-05T18:25:22+05:30" +date = "2017-02-14T18:25:22+05:30" title = "Name of the work 1" writer = "Lukas Herman" categories = [ "design"] diff --git a/exampleSite/content/post/work10.md b/exampleSite/content/post/work10.md index 2687c8e..71cf29a 100644 --- a/exampleSite/content/post/work10.md +++ b/exampleSite/content/post/work10.md @@ -2,7 +2,7 @@ draft = false image = "img/portfolio/trifold.jpg" showonlyimage = true -date = "2016-11-05T20:22:08+05:30" +date = "2018-07-04T20:22:08+05:30" title = "Item with image" writer = "Göran Svensson" weight = 10 diff --git a/exampleSite/content/post/work11.md b/exampleSite/content/post/work11.md index 02bfb41..ae6c604 100644 --- a/exampleSite/content/post/work11.md +++ b/exampleSite/content/post/work11.md @@ -2,7 +2,7 @@ draft = false image = "img/portfolio/paper-presentation.jpg" showonlyimage = true -date = "2016-11-05T20:23:59+05:30" +date = "2018-09-30T20:23:59+05:30" title = "Item with image" writer = "Göran Svensson" weight = 11 diff --git a/exampleSite/content/post/work3.md b/exampleSite/content/post/work3.md index f8a2e27..a7fcd8e 100644 --- a/exampleSite/content/post/work3.md +++ b/exampleSite/content/post/work3.md @@ -1,7 +1,7 @@ +++ image = "img/portfolio/bridge1.jpg" showonlyimage = false -date = "2016-11-05T19:44:32+05:30" +date = "2017-05-05T19:44:32+05:30" title = "Another Awesome Post" writer = "Göran Svensson" categories = [ "travel" ] diff --git a/exampleSite/content/post/work4.md b/exampleSite/content/post/work4.md index 0982df5..4b67948 100644 --- a/exampleSite/content/post/work4.md +++ b/exampleSite/content/post/work4.md @@ -2,7 +2,7 @@ draft = false image = "" showonlyimage = false -date = "2016-11-05T19:50:47+05:30" +date = "2017-11-21T19:50:47+05:30" title = "A post without an Image" writer = "Göran Svensson" categories = [ "code" ] diff --git a/exampleSite/content/post/work5.md b/exampleSite/content/post/work5.md index 49b5e7b..3035312 100644 --- a/exampleSite/content/post/work5.md +++ b/exampleSite/content/post/work5.md @@ -2,7 +2,7 @@ image = "img/portfolio/railroad-forest1.jpg" showonlyimage = true draft = false -date = "2016-11-05T19:53:42+05:30" +date = "2017-12-25T19:53:42+05:30" title = "A Totally Response Theme" writer = "Lukas Herman" categories = [ "photography" ] diff --git a/exampleSite/content/post/work7.md b/exampleSite/content/post/work7.md index e76bcab..d60d364 100644 --- a/exampleSite/content/post/work7.md +++ b/exampleSite/content/post/work7.md @@ -1,7 +1,7 @@ +++ image = "img/portfolio/bike1.jpg" showonlyimage = false -date = "2016-11-05T19:57:40+05:30" +date = "2018-01-01T19:57:40+05:30" title = "Post with a Gallery" writer = "Göran Svensson" draft = false diff --git a/exampleSite/content/post/work8.md b/exampleSite/content/post/work8.md index d364df0..fcd957c 100644 --- a/exampleSite/content/post/work8.md +++ b/exampleSite/content/post/work8.md @@ -2,7 +2,7 @@ showonlyimage = false draft = false image = "img/portfolio/camera1.jpg" -date = "2016-11-05T19:59:22+05:30" +date = "2018-02-14T19:59:22+05:30" title = "A Post with lot of comments" writer = "Göran Svensson" weight = 8 diff --git a/exampleSite/content/post/work9.md b/exampleSite/content/post/work9.md index 646101a..492d351 100644 --- a/exampleSite/content/post/work9.md +++ b/exampleSite/content/post/work9.md @@ -2,7 +2,7 @@ draft = false image = "img/portfolio/birds.jpg" showonlyimage = false -date = "2016-11-05T20:02:19+05:30" +date = "2018-05-06T20:02:19+05:30" title = "Blogging is Fun and Worthwhile" writer = "Göran Svensson" weight = 9 diff --git a/layouts/partials/category.html b/layouts/partials/category.html index be41c27..8862ef6 100644 --- a/layouts/partials/category.html +++ b/layouts/partials/category.html @@ -12,7 +12,7 @@ <h1 class="screen-reader-text">Posts</h1> <div id="loop-container" class="loop-container"> - {{ range $index, $element := (where .Data.Pages "Section" "post") }} + {{ range $index, $element := (where .Data.Pages "Section" "post").ByDate.Reverse }} {{ $scratch := newScratch }} {{ if .Site.Params.writers }} diff --git a/layouts/partials/portfolio.html b/layouts/partials/portfolio.html index 5617e7e..a3e3c35 100644 --- a/layouts/partials/portfolio.html +++ b/layouts/partials/portfolio.html @@ -1,7 +1,7 @@ <h1 class="screen-reader-text">Posts</h1> <div id="loop-container" class="loop-container"> - {{ $paginator := .Paginate (where (where .Site.Pages "Type" "post") "IsPage" true) }} + {{ $paginator := .Paginate (where (where .Site.Pages "Type" "post").ByDate.Reverse "IsPage" true) }} {{ range $index, $element := .Paginator.Pages }} {{ $scratch := newScratch }} {{ if .Site.Params.writers }} diff --git a/layouts/partials/tag.html b/layouts/partials/tag.html index 6fb8138..524ab2e 100644 --- a/layouts/partials/tag.html +++ b/layouts/partials/tag.html @@ -12,7 +12,7 @@ <h1 class="screen-reader-text">Posts</h1> <div id="loop-container" class="loop-container"> - {{ range $index, $element := (where .Data.Pages "Section" "post") }} + {{ range $index, $element := (where .Data.Pages "Section" "post").ByDate.Reverse }} {{ if and (isset .Params "image") .Params.image }} {{ if eq (mod $index 2) 0 }} <div class="post type-post status-publish format-standard has-post-thumbnail hentry category-design tag-memories tag-normal-post tag-standard-2 excerpt zoom full-without-featured odd excerpt"> |