From fec458c8715852f70f558c250231c53b1b0a1b60 Mon Sep 17 00:00:00 2001 From: saadnpq Date: Sat, 11 Apr 2020 15:52:56 +0200 Subject: [PATCH] support default example site --- layouts/index.html | 3 ++- layouts/partials/aside.html | 15 +++++++++++++-- static/css/style.css | 2 +- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index a936a8d..5ae9ae4 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -2,7 +2,8 @@ {{if ne .Site.Params.displayRecent false}}
recent
- {{range first (default 4 .Site.Params.recentMax) (where .Site.RegularPages "Section" "ne" "posts")}} + {{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }} + {{range first (default 4 .Site.Params.recentMax) (where $pages "Section" "ne" "posts")}}
{{ .Title }} {{$page := .}} diff --git a/layouts/partials/aside.html b/layouts/partials/aside.html index 07e3561..8df3e9a 100644 --- a/layouts/partials/aside.html +++ b/layouts/partials/aside.html @@ -1,6 +1,8 @@