diff --git a/docs/hugo.yaml b/docs/hugo.yaml index 4061c37b2f08..0ec98f032782 100644 --- a/docs/hugo.yaml +++ b/docs/hugo.yaml @@ -98,9 +98,25 @@ params: footer: enable: true - displayCopyright: true + displayCopyright: false displayPoweredBy: true width: normal + links: + - title: Bluesky + url: "https://bsky.app/profile/golangci-lint.run" + icon: bluesky + - title: Mastodon + url: "https://fosstodon.org/@golangcilint" + icon: mastodon + - title: Twitter + url: "https://twitter.com/golangci" + icon: twitter + - title: Slack + url: "https://gophers.slack.com/archives/CS0TBRKPC" + icon: slack + - title: GitHub + url: "https://github.com/golangci/golangci-lint" + icon: github # Display the last modification date displayUpdatedDate: true diff --git a/docs/layouts/_partials/footer.html b/docs/layouts/_partials/footer.html new file mode 100644 index 000000000000..3a81599a467a --- /dev/null +++ b/docs/layouts/_partials/footer.html @@ -0,0 +1,67 @@ +{{- /* Modified version of https://github.com/imfing/hextra/blob/v0.9.7/layouts/partials/footer.html */ -}} +{{- $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 -}} + {{- if strings.Contains . "Hextra" -}} + {{- partial "utils/icon.html" (dict "name" "hextra" "attributes" `height=1em class="hx-inline-block ltr:hx-ml-1 rtl:hx-mr-1 hx-align-[-2.5px]"`) -}} + {{- end -}} + + +{{- end -}}