diff options
author | Hidenori MATSUKI <MATSUKI.Hidenori@gmail.com> | 2018-10-04 21:40:00 +0300 |
---|---|---|
committer | Hidenori MATSUKI <MATSUKI.Hidenori@gmail.com> | 2018-10-04 21:40:00 +0300 |
commit | 1c6ce5c9514e5535e0690e6572046cba665346f0 (patch) | |
tree | f0414f4787c7dfac4f3309ab48d7ce233920f2ce | |
parent | a4ac062f46d3c2042176be33f531156f46d1ab95 (diff) |
Hide profiles on index page.
-rw-r--r-- | layouts/_default/list.html | 4 |
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> |