diff options
author | somrat-gyver <somrat.gyver@gmail.com> | 2020-07-04 06:41:23 +0300 |
---|---|---|
committer | somrat-gyver <somrat.gyver@gmail.com> | 2020-07-04 06:41:23 +0300 |
commit | 1fba78b0da3dbadd24419fe3d451fd246c6241fc (patch) | |
tree | 061c839278234dcffcf0a96c24d11a6e030bfda0 | |
parent | 1f0f42be4d1920183ce761bfdbf96c351334e132 (diff) |
modified post
-rw-r--r-- | exampleSite/config.toml | 2 | ||||
-rw-r--r-- | exampleSite/content/post/Homestyle-Chicken-Pot-Pie.md (renamed from exampleSite/content/blog/Homestyle-Chicken-Pot-Pie.md) | 0 | ||||
-rw-r--r-- | exampleSite/content/post/Red-Pepper-Miso-Wings-2.md (renamed from exampleSite/content/blog/Red-Pepper-Miso-Wings-2.md) | 0 | ||||
-rw-r--r-- | exampleSite/content/post/Red-Pepper-Miso-Wings.md (renamed from exampleSite/content/blog/Red-Pepper-Miso-Wings.md) | 0 | ||||
-rw-r--r-- | exampleSite/content/post/my-first-post.md (renamed from exampleSite/content/blog/my-first-post.md) | 0 | ||||
-rw-r--r-- | exampleSite/content/post/restaurant.md (renamed from exampleSite/content/blog/restaurant.md) | 0 | ||||
-rw-r--r-- | layouts/partials/blog.html | 2 |
7 files changed, 3 insertions, 1 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 9cc0cc0..1f1ec7a 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -79,6 +79,8 @@ author = "Themefisher" description = "This is meta description" # google analitycs ID google_analitycs_id = "Your ID" +# mainSections +main_sections = ["post"] # copyright copyright = "Copyright 2020 - All Rights Reserved. Design and Developed By Themefisher.com" diff --git a/exampleSite/content/blog/Homestyle-Chicken-Pot-Pie.md b/exampleSite/content/post/Homestyle-Chicken-Pot-Pie.md index a3a5bce..a3a5bce 100644 --- a/exampleSite/content/blog/Homestyle-Chicken-Pot-Pie.md +++ b/exampleSite/content/post/Homestyle-Chicken-Pot-Pie.md diff --git a/exampleSite/content/blog/Red-Pepper-Miso-Wings-2.md b/exampleSite/content/post/Red-Pepper-Miso-Wings-2.md index cab400a..cab400a 100644 --- a/exampleSite/content/blog/Red-Pepper-Miso-Wings-2.md +++ b/exampleSite/content/post/Red-Pepper-Miso-Wings-2.md diff --git a/exampleSite/content/blog/Red-Pepper-Miso-Wings.md b/exampleSite/content/post/Red-Pepper-Miso-Wings.md index a01a1d9..a01a1d9 100644 --- a/exampleSite/content/blog/Red-Pepper-Miso-Wings.md +++ b/exampleSite/content/post/Red-Pepper-Miso-Wings.md diff --git a/exampleSite/content/blog/my-first-post.md b/exampleSite/content/post/my-first-post.md index fc90e6b..fc90e6b 100644 --- a/exampleSite/content/blog/my-first-post.md +++ b/exampleSite/content/post/my-first-post.md diff --git a/exampleSite/content/blog/restaurant.md b/exampleSite/content/post/restaurant.md index 2827144..2827144 100644 --- a/exampleSite/content/blog/restaurant.md +++ b/exampleSite/content/post/restaurant.md diff --git a/layouts/partials/blog.html b/layouts/partials/blog.html index cceaae7..28f2d46 100644 --- a/layouts/partials/blog.html +++ b/layouts/partials/blog.html @@ -7,7 +7,7 @@ <div class="block"> <h1 class="heading">{{ site.Data.homepage.blog.title | markdownify }}</h1> {{ $paginator := .Paginate site.RegularPages }} - {{ range first 4 (where site.RegularPages "Section" "blog") }} + {{ range first 4 (where site.RegularPages "Type" "in" site.Params.main_sections) }} <div class="col-lg-6"> <article class="post wow fadeInLeft" data-wow-duration="300ms" data-wow-delay="300ms"> <div class="post-img"> |