From f2f2fb34c934c520a3331b2e68cf8d21c76c7a14 Mon Sep 17 00:00:00 2001 From: Alexander Candy-Levey Date: Fri, 29 Apr 2022 19:58:59 +1000 Subject: [PATCH] Show title along with the logo when setting showTitleWithLogo = true in config --- layouts/partials/sidebar.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index e256384..ee8a065 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -8,6 +8,9 @@ {{ $strippedSlash := ($.Site.Params.logoimage | replaceRE "^(/)+(.*)" "$2") }} {{ $logoImage := (printf "%s%s" $.Site.BaseURL $strippedSlash) }} Logo Image + {{with $.Site.Params.showTitleWithLogo}} + {{ $.Site.Title }} + {{end}} {{ else }} {{ .Site.Title }} {{ end }}