From 0c74886598dd3ee1b10fa722b7a7202c6a45bf3d Mon Sep 17 00:00:00 2001 From: Erin McKean Date: Wed, 9 Mar 2022 16:38:53 -0800 Subject: [PATCH] adding Powered by Netlify link in footer and config options --- layouts/partials/footer.html | 11 ++++++++++- userguide/config.toml | 8 ++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 9aa34cb8ae..9cabe6c84d 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -15,10 +15,19 @@ {{ template "footer-links-block" . }} {{ end }} {{ end }} + {{ with .Site.Params.netlify_oss.badge_color }} + Deploys by Netlify + {{end}}
{{ with .Site.Params.copyright }}© {{ now.Year}} {{ .}} {{ T "footer_all_rights_reserved" }}{{ end }} - {{ with .Site.Params.privacy_policy }}{{ T "footer_privacy_policy" }}{{ end }} + {{ with .Site.Params.privacy_policy }}{{ T "footer_privacy_policy" }}{{end}} + {{ if .Site.Params.netlify_oss.link_only }} +
+ This site is powered by Netlify + {{ end }} + + {{ if not .Site.Params.ui.footer_about_disable }} {{ with .Site.GetPage "about" }}

{{ .Title }}

{{ end }} {{ end }} diff --git a/userguide/config.toml b/userguide/config.toml index 79d94f53bb..d7a6ef8725 100644 --- a/userguide/config.toml +++ b/userguide/config.toml @@ -90,6 +90,7 @@ weight = 1 copyright = "The Docsy Authors" privacy_policy = "https://policies.google.com/privacy" + # Menu title if your navbar has a versions selector to access old versions of your site. # This menu appears only if you have at least one [params.versions] set. version_menu = "Releases" @@ -208,6 +209,13 @@ enable = false enable = true theme = "default" +# this will add the "This site is powered by Netlify" link in the footer required for the Netlify OSS program (only use one of these two parameters) +[params.netlify_oss] +## use link_only for a plain-text link, centered + link_only = true +## use badge_color to select a badge from https://www.netlify.com/press/#badges, on lower right +# badge_color = "https://www.netlify.com/img/global/badges/netlify-color-bg.svg" + [params.plantuml] enable = true theme = "default"