From 5bab819fabc683774e7fe6e3afaff8348e9b8d2e Mon Sep 17 00:00:00 2001 From: Julio Pescador Date: Thu, 25 Feb 2016 22:16:55 -0800 Subject: Creating logic for view more post on sidebar Create new Site Params variable called viewMorePostLink that will set the link in the sidebar for view more posts. If not set, the default value of /post will be used. --- layouts/partials/sidebar.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 608ee8c..0124502 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -49,7 +49,13 @@ {{ if ge (len (where .Site.Pages "Type" "post")) ($.Scratch.Get "postLimit") }}
  • {{ end }} -- cgit v1.2.3