Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding Powered by Netlify link in footer and config options #925

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,19 @@
{{ template "footer-links-block" . }}
{{ end }}
{{ end }}
{{ with .Site.Params.netlify_oss.badge_color }}<a href="https://www.netlify.com">
<img src="{{ . }}" alt="Deploys by Netlify" />
</a> {{end}}
</div>
<div class="col-12 col-sm-4 text-center py-2 order-sm-2">
{{ with .Site.Params.copyright }}<small class="text-white">&copy; {{ now.Year}} {{ .}} {{ T "footer_all_rights_reserved" }}</small>{{ end }}
{{ with .Site.Params.privacy_policy }}<small class="ml-1"><a href="{{ . }}" target="_blank" rel="noopener">{{ T "footer_privacy_policy" }}</a></small>{{ end }}
{{ with .Site.Params.privacy_policy }}<small class="ml-1"><a href="{{ . }}" target="_blank" rel="noopener">{{ T "footer_privacy_policy" }}</a></small>{{end}}
{{ if .Site.Params.netlify_oss.link_only }}
<br><small class="ml-1"><a href="https://www.netlify.com">
This site is powered by Netlify
</a></small>{{ end }}


{{ if not .Site.Params.ui.footer_about_disable }}
{{ with .Site.GetPage "about" }}<p class="mt-2"><a href="{{ .RelPermalink }}">{{ .Title }}</a></p>{{ end }}
{{ end }}
Expand Down
8 changes: 8 additions & 0 deletions userguide/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down