diff --git a/docs/docs/site/i18n/en.yaml b/docs/docs/site/i18n/en.yaml new file mode 100644 index 00000000..96c970b7 --- /dev/null +++ b/docs/docs/site/i18n/en.yaml @@ -0,0 +1,7 @@ +lastUpdated: "Last updated on" +light: "Light" +noResultsFound: "No results found." +onThisPage: "On this page" +poweredBy: "Powered by [Modo🧯](https://github.com/mlange-42/modo), [Hugo](https://gohugo.io) and [Hextra](https://imfing.github.io/hextra/)" +readMore: "Read more →" +searchPlaceholder: "Search..." diff --git a/docs/docs/site/layouts/partials/footer.html b/docs/docs/site/layouts/partials/footer.html new file mode 100644 index 00000000..957f8ed1 --- /dev/null +++ b/docs/docs/site/layouts/partials/footer.html @@ -0,0 +1,50 @@ +{{- $enableFooterSwitches := .Scratch.Get "enableFooterSwitches" | default false -}} +{{- $displayThemeToggle := site.Params.theme.displayToggle | default true -}} +{{- $footerSwitchesVisible := and $enableFooterSwitches (or hugo.IsMultilingual $displayThemeToggle) -}} +{{- $copyrightSectionVisible := or (.Site.Params.footer.displayPoweredBy | default true) .Site.Params.footer.displayCopyright -}} + +{{- $copyright := (T "copyright") | default "© 2024 Hextra." -}} +{{- $poweredBy := (T "poweredBy") | default "Powered by Hextra" -}} + +{{- $footerWidth := "hx-max-w-screen-xl" -}} +{{- with .Site.Params.footer.width -}} + {{ if eq . "wide" -}} + {{ $footerWidth = "hx-max-w-[90rem]" -}} + {{ else if eq . "full" -}} + {{ $footerWidth = "max-w-full" -}} + {{ end -}} +{{- end -}} + + + + +{{- define "theme-credit" -}} + + {{- . | markdownify -}} + +{{- end -}}