diff options
author | Rowan James <rowanj@phere.net> | 2016-10-10 03:18:04 +0300 |
---|---|---|
committer | Rowan James <rowanj@phere.net> | 2016-10-10 03:18:04 +0300 |
commit | 73d5d506c121ad99d3f80896de7a687e4885ebb5 (patch) | |
tree | fda6e69ddc1540e55199448f082472c5efb9c581 /layouts/partials | |
parent | 18470ab2a34db21508a11b858692226ad05274dc (diff) |
Sort features and carousel by data "weight"
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/carousel.html | 2 | ||||
-rw-r--r-- | layouts/partials/features.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/carousel.html b/layouts/partials/carousel.html index 4c701e5..e614773 100644 --- a/layouts/partials/carousel.html +++ b/layouts/partials/carousel.html @@ -6,7 +6,7 @@ <div class="dark-mask"></div> <div class="container"> <div class="homepage owl-carousel"> - {{ range .Site.Data.carousel }} + {{ range sort .Site.Data.carousel "weight" }} <div class="item"> <div class="row"> <div class="col-sm-5 right"> diff --git a/layouts/partials/features.html b/layouts/partials/features.html index 254c4e9..40b6545 100644 --- a/layouts/partials/features.html +++ b/layouts/partials/features.html @@ -5,7 +5,7 @@ <div class="container"> <div class="col-md-12"> <div class="row"> - {{ range .Site.Data.features }} + {{ range sort .Site.Data.features "weight" }} <div class="col-md-4"> <div class="box-simple"> <div class="icon"> |