Show title along with the logo when setting showTitleWithLogo = true in config

This commit is contained in:
Alexander Candy-Levey 2022-04-29 19:58:59 +10:00
parent 58d10c23ed
commit f2f2fb34c9

View file

@ -8,6 +8,9 @@
{{ $strippedSlash := ($.Site.Params.logoimage | replaceRE "^(/)+(.*)" "$2") }}
{{ $logoImage := (printf "%s%s" $.Site.BaseURL $strippedSlash) }}
<img src="{{$logoImage}}" alt="Logo Image" class="element--center">
{{with $.Site.Params.showTitleWithLogo}}
{{ $.Site.Title }}
{{end}}
{{ else }}
{{ .Site.Title }}
{{ end }}