mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2025-06-10 18:54:08 +00:00
Merge 77ca5c4416
into 2acd86a6c2
This commit is contained in:
commit
f8b249176e
@ -186,6 +186,13 @@ disableKinds = ['taxonomy', 'taxonomyTerm']
|
||||
# /!\ This is an experimental feature, might be removed or changed at any time
|
||||
# (Optional, experimental, default false) Enables service worker that caches visited pages and resources for offline use.
|
||||
BookServiceWorker = true
|
||||
|
||||
# (Optional) Specifies a License that applies to the content of the page
|
||||
# BookContentLicenseText = 'CC-BY-SA-4.0'
|
||||
|
||||
# (Optional) Specifies a Link for the License that applies to the content of the page
|
||||
# Requires 'BookContentLicenseText' param.
|
||||
# BookContentLicenseLink = 'https://creativecommons.org/licenses/by-sa/4.0/'
|
||||
```
|
||||
|
||||
### Multi-Language Support
|
||||
|
@ -117,3 +117,10 @@ enableGitInfo = true
|
||||
# /!\ This is an experimental feature, might be removed or changed at any time
|
||||
# (Optional, experimental, default false) Enables a drop-down menu for translations only if a translation is present.
|
||||
BookTranslatedOnly = false
|
||||
|
||||
# (Optional) Specifies a License that applies to the content of the page
|
||||
# BookContentLicenseText = 'CC-BY-SA-4.0'
|
||||
|
||||
# (Optional) Specifies a Link for the License that applies to the content of the page
|
||||
# Requires 'BookContentLicenseText' param.
|
||||
# BookContentLicenseLink = 'https://creativecommons.org/licenses/by-sa/4.0/'
|
||||
|
@ -113,3 +113,10 @@ params:
|
||||
# /!\ This is an experimental feature, might be removed or changed at any time
|
||||
# (Optional, experimental, default false) Enables a drop-down menu for translations only if a translation is present.
|
||||
BookTranslatedOnly: false
|
||||
|
||||
# (Optional) Specifies a License that applies to the content of the page
|
||||
# BookContentLicenseText: CC-BY-SA-4.0
|
||||
|
||||
# (Optional) Specifies a Link for the License that applies to the content of the page
|
||||
# Requires 'BookContentLicenseText' param.
|
||||
# BookContentLicenseLink: https://creativecommons.org/licenses/by-sa/4.0/
|
||||
|
@ -19,6 +19,19 @@
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ if and .File .Site.Params.BookContentLicenseText }}
|
||||
<div class="flex align-center">
|
||||
<span class="book-icon" alt="" />📖 </span>
|
||||
{{ if and .File .Site.Params.BookContentLicenseLink }}
|
||||
<a href="{{ .Site.Params.BookContentLicenseLink }}" title='License' target="_blank" rel="noopener">
|
||||
<span>{{ .Site.Params.BookContentLicenseText }}</span>
|
||||
</a>
|
||||
{{ else }}
|
||||
<span>{{ .Site.Params.BookContentLicenseText }}</span>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
|
||||
{{ $script := resources.Get "clipboard.js" | resources.Minify }}
|
||||
|
Loading…
Reference in New Issue
Block a user