diff options
author | Garvin <Garvin@local> | 2019-08-18 02:16:06 +0300 |
---|---|---|
committer | Garvin <Garvin@local> | 2019-08-18 02:16:06 +0300 |
commit | e834d00b96bb3af62da0120aef71c262dd9ec3ce (patch) | |
tree | 3e220235ef6cdec24b1a0461313a3150e84e0fed | |
parent | 5c37dbea7a8a89dd8bb03852695e6dbd4fbe6c40 (diff) |
Made changes per https://github.com/garvincasimir/hugo-h5bp-simple/commit/f6b0f3a540c3b74e480d0299239d1199088ced09#commitcomment-34728813HEADmaster
-rwxr-xr-x | layouts/index.html | 4 | ||||
-rw-r--r-- | layouts/partials/aside.html | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/layouts/index.html b/layouts/index.html index 533a284..94d9ebd 100755 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,6 +1,6 @@ {{ partial "header.html" . }} - {{ partial "aside.html" . }} - {{ range first 10 .Site.mainSections }} + {{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} + {{ range $pages }} <article> <header> <h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1> diff --git a/layouts/partials/aside.html b/layouts/partials/aside.html index 09f4bf3..e154025 100644 --- a/layouts/partials/aside.html +++ b/layouts/partials/aside.html @@ -1,7 +1,8 @@ <aside> <h3>Recent</h3> <ul> - {{ range first 10 .Site.Pages }} + {{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} + {{ range first 10 $pages }} <li> <a href="{{ .Permalink }}">{{ .Title }}</a> </li> |