feat(config.toml): change config structure for article license
This commit is contained in:
parent
52a9ec9825
commit
0745285e71
@ -16,7 +16,9 @@ title = "Example Site"
|
||||
avatar = "img/avatar.png"
|
||||
subtitle = "Lorem ipsum dolor sit amet, consectetur adipiscing elit."
|
||||
[params.article]
|
||||
defaultLicense = "Licenced under CC BY-NC-SA 4.0"
|
||||
[params.article.license]
|
||||
enabled = true
|
||||
default = "Licenced under CC BY-NC-SA 4.0"
|
||||
[params.widgets]
|
||||
enabled = ['archive', 'tag-cloud']
|
||||
[params.widgets.archive]
|
||||
|
@ -7,10 +7,10 @@
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Site.Params.article.defaultLicense }}
|
||||
{{ if .Site.Params.article.license.enabled }}
|
||||
<section class="article-copyright">
|
||||
{{ (resources.Get "icons/copyright.svg").Content | safeHTML }}
|
||||
<span>{{ .Site.Params.article.defaultLicense }}</span>
|
||||
<span>{{ .Site.Params.article.license.default }}</span>
|
||||
</section>
|
||||
{{ end }}
|
||||
</footer>
|
Loading…
Reference in New Issue
Block a user