Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mazgi/hugo-theme-techlog-simple.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHidenori MATSUKI <MATSUKI.Hidenori@gmail.com>2018-10-04 21:40:00 +0300
committerHidenori MATSUKI <MATSUKI.Hidenori@gmail.com>2018-10-04 21:40:00 +0300
commit1c6ce5c9514e5535e0690e6572046cba665346f0 (patch)
treef0414f4787c7dfac4f3309ab48d7ce233920f2ce
parenta4ac062f46d3c2042176be33f531156f46d1ab95 (diff)
Hide profiles on index page.
-rw-r--r--layouts/_default/list.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index e7b1e23..7cae130 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -5,7 +5,7 @@
<div class="row">
<h2>{{ .Name }}'s articles</h2>
</div>
- {{ with ( .Site.GetPage "page" ( printf "profiles/%s" ( lower .Name ) ) ) }}
+ {{ with ( .Site.GetPage "page" ( printf "profiles/%s" ( replace .Name " " "-" | lower ) ) ) }}
<div class="row">
{{ .Content }}
</div>
@@ -13,7 +13,7 @@
{{ end }}
{{ end }}
- {{ $paginator := .Paginate ( .Data.Pages ) }}
+ {{ $paginator := .Paginate ( where .Data.Pages "Section" "ne" "profiles" ) }}
{{ range $idx, $page := $paginator.Pages }}
{{ if $page.Section }}
<article>