feat: add new option geekdocContentLicense (#346)
parent
95c38f6193
commit
7df6057ca0
|
@ -116,6 +116,12 @@ enableRobotsTXT = true
|
||||||
# 'date', 'publishdate', 'expirydate' or 'lastmod'. Every option can be used with a reverse modifier as well
|
# 'date', 'publishdate', 'expirydate' or 'lastmod'. Every option can be used with a reverse modifier as well
|
||||||
# e.g. 'title_reverse'.
|
# e.g. 'title_reverse'.
|
||||||
geekdocFileTreeSortBy = "title"
|
geekdocFileTreeSortBy = "title"
|
||||||
|
|
||||||
|
# (Optional, default none) Adds a "Content licensed under <license>" line to the footer.
|
||||||
|
# Could be used if you want to define a default license for your content.
|
||||||
|
[params.geekdocContentLicense]
|
||||||
|
name = "CC BY-SA 4.0"
|
||||||
|
link = "https://creativecommons.org/licenses/by-sa/4.0/"
|
||||||
```
|
```
|
||||||
|
|
||||||
{{< /tab >}}
|
{{< /tab >}}
|
||||||
|
@ -229,6 +235,12 @@ params:
|
||||||
# 'date', 'publishdate', 'expirydate' or 'lastmod'. Every option can be used with a reverse modifier as well
|
# 'date', 'publishdate', 'expirydate' or 'lastmod'. Every option can be used with a reverse modifier as well
|
||||||
# e.g. 'title_reverse'.
|
# e.g. 'title_reverse'.
|
||||||
geekdocFileTreeSortBy: "title"
|
geekdocFileTreeSortBy: "title"
|
||||||
|
|
||||||
|
# (Optional, default none) Adds a "Content licensed under <license>" line to the footer.
|
||||||
|
# Could be used if you want to define a default license for your content.
|
||||||
|
geekdocContentLicense:
|
||||||
|
name: CC BY-SA 4.0
|
||||||
|
link: https://creativecommons.org/licenses/by-sa/4.0/
|
||||||
```
|
```
|
||||||
|
|
||||||
{{< /tab >}}
|
{{< /tab >}}
|
||||||
|
|
|
@ -39,5 +39,7 @@ footer_build_with: >
|
||||||
<svg class="icon gdoc_heart"><use xlink:href="#gdoc_heart"></use></svg>
|
<svg class="icon gdoc_heart"><use xlink:href="#gdoc_heart"></use></svg>
|
||||||
footer_legal_notice: Impressum
|
footer_legal_notice: Impressum
|
||||||
footer_privacy_policy: Datenschutzerklärung
|
footer_privacy_policy: Datenschutzerklärung
|
||||||
|
footer_content_license_prefix: >
|
||||||
|
Inhalt lizensiert unter
|
||||||
|
|
||||||
language_switch_no_tranlation_prefix: "Seite nicht übersetzt:"
|
language_switch_no_tranlation_prefix: "Seite nicht übersetzt:"
|
||||||
|
|
|
@ -39,5 +39,7 @@ footer_build_with: >
|
||||||
<svg class="icon gdoc_heart"><use xlink:href="#gdoc_heart"></use></svg>
|
<svg class="icon gdoc_heart"><use xlink:href="#gdoc_heart"></use></svg>
|
||||||
footer_legal_notice: Legal Notice
|
footer_legal_notice: Legal Notice
|
||||||
footer_privacy_policy: Privacy Policy
|
footer_privacy_policy: Privacy Policy
|
||||||
|
footer_content_license_prefix: >
|
||||||
|
Content licensed under
|
||||||
|
|
||||||
language_switch_no_tranlation_prefix: "Page not translated:"
|
language_switch_no_tranlation_prefix: "Page not translated:"
|
||||||
|
|
|
@ -11,6 +11,9 @@
|
||||||
{{- with partial "utils/featured" . }}
|
{{- with partial "utils/featured" . }}
|
||||||
"thumbnailUrl": {{ . }},
|
"thumbnailUrl": {{ . }},
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with .Site.Params.GeekdocContentLicense }}
|
||||||
|
"license": "{{ .name }}",
|
||||||
|
{{- end }}
|
||||||
"inLanguage": {{ .Lang }}
|
"inLanguage": {{ .Lang }}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -33,6 +36,9 @@
|
||||||
"thumbnailUrl": {{ . }},
|
"thumbnailUrl": {{ . }},
|
||||||
{{- end }}
|
{{- end }}
|
||||||
"wordCount" : "{{ .WordCount }}",
|
"wordCount" : "{{ .WordCount }}",
|
||||||
|
{{- with .Site.Params.GeekdocContentLicense }}
|
||||||
|
"license": "{{ .name }}",
|
||||||
|
{{- end }}
|
||||||
"inLanguage": {{ .Lang }},
|
"inLanguage": {{ .Lang }},
|
||||||
"isFamilyFriendly": "true",
|
"isFamilyFriendly": "true",
|
||||||
"mainEntityOfPage": {
|
"mainEntityOfPage": {
|
||||||
|
|
|
@ -1,22 +1,32 @@
|
||||||
<footer class="gdoc-footer">
|
<footer class="gdoc-footer">
|
||||||
<div class="container flex">
|
<nav class="container flex">
|
||||||
<div class="flex flex-wrap">
|
<div>
|
||||||
<span class="gdoc-footer__item gdoc-footer__item--row">
|
<section class="flex flex-wrap align-center">
|
||||||
{{ i18n "footer_build_with" | safeHTML }}
|
|
||||||
</span>
|
|
||||||
{{ with .Site.Params.GeekdocLegalNotice }}
|
|
||||||
<span class="gdoc-footer__item gdoc-footer__item--row">
|
<span class="gdoc-footer__item gdoc-footer__item--row">
|
||||||
<a href="{{ . | relURL }}" class="gdoc-footer__link">
|
{{ i18n "footer_build_with" | safeHTML }}
|
||||||
{{ i18n "footer_legal_notice" }}
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
{{ end }}
|
|
||||||
{{ with .Site.Params.GeekdocPrivacyPolicy }}
|
|
||||||
<span class="gdoc-footer__item gdoc-footer__item--row">
|
|
||||||
<a href="{{ . | relURL }}" class="gdoc-footer__link">
|
|
||||||
{{ i18n "footer_privacy_policy" }}
|
|
||||||
</a>
|
|
||||||
</span>
|
</span>
|
||||||
|
{{ with .Site.Params.GeekdocLegalNotice }}
|
||||||
|
<span class="gdoc-footer__item gdoc-footer__item--row">
|
||||||
|
<a href="{{ . | relURL }}" class="gdoc-footer__link">
|
||||||
|
{{ i18n "footer_legal_notice" }}
|
||||||
|
</a>
|
||||||
|
</span>
|
||||||
|
{{ end }}
|
||||||
|
{{ with .Site.Params.GeekdocPrivacyPolicy }}
|
||||||
|
<span class="gdoc-footer__item gdoc-footer__item--row">
|
||||||
|
<a href="{{ . | relURL }}" class="gdoc-footer__link">
|
||||||
|
{{ i18n "footer_privacy_policy" }}
|
||||||
|
</a>
|
||||||
|
</span>
|
||||||
|
{{ end }}
|
||||||
|
</section>
|
||||||
|
{{ with .Site.Params.GeekdocContentLicense }}
|
||||||
|
<section class="flex flex-wrap align-center">
|
||||||
|
<span class="gdoc-footer__item">
|
||||||
|
{{ i18n "footer_content_license_prefix" }}
|
||||||
|
<a href="{{ .link }}" class="gdoc-footer__link no-wrap">{{ .name }}</a>
|
||||||
|
</span>
|
||||||
|
</section>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ if (default true .Site.Params.GeekdocBackToTop) }}
|
{{ if (default true .Site.Params.GeekdocBackToTop) }}
|
||||||
|
@ -31,5 +41,5 @@
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</nav>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
Loading…
Reference in New Issue