diff --git a/layouts/partials/header/basic.html b/layouts/partials/header/basic.html index b6edb690..fc7c5488 100644 --- a/layouts/partials/header/basic.html +++ b/layouts/partials/header/basic.html @@ -2,7 +2,7 @@ {{/* Site logo/title */}} - {{ partial "header/logo.html" . }} + {{ partial "logo.html" . }} {{ partial "translations.html" . }} {{/* Main menu */}} diff --git a/layouts/partials/header/hamburger.html b/layouts/partials/header/hamburger.html index 081de54e..6d460ed8 100644 --- a/layouts/partials/header/hamburger.html +++ b/layouts/partials/header/hamburger.html @@ -2,7 +2,7 @@ {{/* Site logo/title */}} - {{ partial "header/logo.html" . }} + {{ partial "logo.html" . }} {{ partial "translations.html" . }} {{/* Hamburger menu */}} diff --git a/layouts/partials/header/logo.html b/layouts/partials/header/logo.html deleted file mode 100644 index a0a8b7f8..00000000 --- a/layouts/partials/header/logo.html +++ /dev/null @@ -1,21 +0,0 @@ -{{ if .Site.Params.Logo -}} -{{ $logo := resources.Get .Site.Params.Logo }} -{{ if $logo }} - - - -{{ end }} -{{ else }} -{{ .Site.Title | markdownify | emojify }} -{{- end }} diff --git a/layouts/partials/logo.html b/layouts/partials/logo.html new file mode 100644 index 00000000..9e610fca --- /dev/null +++ b/layouts/partials/logo.html @@ -0,0 +1,21 @@ +{{ if .Site.Params.Logo -}} + {{ $logo := resources.Get .Site.Params.Logo }} + {{ if $logo }} + + + + {{ end }} +{{ else }} + {{ .Site.Title | markdownify | emojify }} +{{- end }}