feat(article): custom license per article
This commit is contained in:
parent
0745285e71
commit
90bdc34eb8
@ -4,6 +4,7 @@ description = "Hugo, the world's fastest framework for building websites"
|
|||||||
date = "2019-02-28"
|
date = "2019-02-28"
|
||||||
aliases = ["about-us", "about-hugo", "contact"]
|
aliases = ["about-us", "about-hugo", "contact"]
|
||||||
author = "Hugo Authors"
|
author = "Hugo Authors"
|
||||||
|
license = "CC BY-NC-ND"
|
||||||
+++
|
+++
|
||||||
|
|
||||||
Written in Go, Hugo is an open source static site generator available under the [Apache Licence 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows.
|
Written in Go, Hugo is an open source static site generator available under the [Apache Licence 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows.
|
||||||
|
@ -7,10 +7,10 @@
|
|||||||
</section>
|
</section>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if .Site.Params.article.license.enabled }}
|
{{ if and (.Site.Params.article.license.enabled) (not (eq .Params.license false)) }}
|
||||||
<section class="article-copyright">
|
<section class="article-copyright">
|
||||||
{{ (resources.Get "icons/copyright.svg").Content | safeHTML }}
|
{{ (resources.Get "icons/copyright.svg").Content | safeHTML }}
|
||||||
<span>{{ .Site.Params.article.license.default }}</span>
|
<span>{{ default .Site.Params.article.license.default .Params.license }}</span>
|
||||||
</section>
|
</section>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</footer>
|
</footer>
|
Loading…
Reference in New Issue
Block a user