diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 1503025..1f55f04 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,112 +1,116 @@ -{{ $author:= site.Data.author }} -{{ if (index site.Data site.Language.Lang).author }} - {{ $author = (index site.Data site.Language.Lang).author }} -{{ end }} +{{ $footerEnabled := site.Params.footer.enable | default true }} -{{ $sections:= site.Data.sections }} -{{ if (index site.Data site.Language.Lang).sections }} - {{ $sections = (index site.Data site.Language.Lang).sections }} -{{ end }} - -{{ $copyrightNotice := "© 2020 Copyright."}} -{{ if (index site.Data site.Language.Lang).site }} - {{ $siteConfig := (index site.Data site.Language.Lang).site }} - {{ if $siteConfig.copyright }} - {{ $copyrightNotice = $siteConfig.copyright }} +{{ if $footerEnabled }} + {{ $author:= site.Data.author }} + {{ if (index site.Data site.Language.Lang).author }} + {{ $author = (index site.Data site.Language.Lang).author }} {{ end }} -{{ end }} -{{/* footer logos */}} -{{ $themeLogo := "/images/theme-logo.png" }} -{{ $hugoLogo := "/images/hugo-logo.svg" }} + {{ $sections:= site.Data.sections }} + {{ if (index site.Data site.Language.Lang).sections }} + {{ $sections = (index site.Data site.Language.Lang).sections }} + {{ end }} -{{/* resize the logos. don't resize svg because it is not supported */}} -{{ $themeLogo:= resources.Get $themeLogo}} -{{ if and $themeLogo (ne $themeLogo.MediaType.SubType "svg") }} - {{ $themeLogo = $themeLogo.Resize "32x" }} -{{ end }} -{{ $themeLogo = $themeLogo.RelPermalink}} + {{ $copyrightNotice := "© 2020 Copyright."}} + {{ if (index site.Data site.Language.Lang).site }} + {{ $siteConfig := (index site.Data site.Language.Lang).site }} + {{ if $siteConfig.copyright }} + {{ $copyrightNotice = $siteConfig.copyright }} + {{ end }} + {{ end }} -{{ $hugoLogo:= resources.Get $hugoLogo}} -{{ if and $hugoLogo (ne $hugoLogo.MediaType.SubType "svg")}} - {{ $hugoLogo = $hugoLogo.Resize "32x" }} -{{ end }} -{{ $hugoLogo = $hugoLogo.RelPermalink}} + {{/* footer logos */}} + {{ $themeLogo := "/images/theme-logo.png" }} + {{ $hugoLogo := "/images/hugo-logo.svg" }} - +
+
+
+ +
{{ $copyrightNotice | markdownify }}
+ +
+
+ +{{end}}