Show title along with the logo when setting showTitleWithLogo = true in config
This commit is contained in:
parent
58d10c23ed
commit
f2f2fb34c9
1 changed files with 3 additions and 0 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue