From cb25c1c04a6a3758cdfaf26d39d3ad797d4bb95d Mon Sep 17 00:00:00 2001 From: Dmitry Verkhoturov Date: Sat, 24 Mar 2018 23:39:24 +0300 Subject: set default if no value is set for variables which require that --- layouts/_default/single.html | 16 ++++++++-------- layouts/partials/author.html | 2 ++ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 3863806..82ab1e7 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,11 +1,11 @@ {{ partial "header.html" . }} -{{ $baseurl := .Site.BaseURL }} +{{ $baseurl := default "/" .Site.BaseURL }} + +
-
-