Browse Source

license

main
Hendrik Langer 5 years ago
parent
commit
31c9ed53ab
  1. 1
      config.toml
  2. 4
      layouts/partials/footer.html

1
config.toml

@ -21,6 +21,7 @@ preserveTaxonomyNames = true
# The url to use as link in the copyright name in the footer. Leave empty to use none.
copyrighturl = "/about/"
license = "WTFPL"
licenseurl = "https://dev.xd0.de/hendrik/h3ndrik.de/raw/branch/master/LICENSE"
# Show the "built on Hugo" disclaimer

4
layouts/partials/footer.html

@ -2,12 +2,12 @@
<hr class="soften">
<p>
&copy;
{{ with .Site.Params.licenseurl }}<a href="{{ . }}">{{ end }}
{{ if eq .Params.License .Site.Params.License }}{{ with .Site.Params.licenseurl }}<a href="{{ . }}">{{ end }}{{ end }}
{{ .Params.License }}
{{ with .Site.Params.licenseurl }}</a>{{ end }}
{{ with .Site.Params.copyrighturl }}<a href="{{ . }}">{{ end }}
{{ .Site.Params.copyrightname }}
{{ with .Site.Params.copyrighturl }}</a>{{ end }}
{{ if eq .Params.License .Site.Params.License }}{{ with .Site.Params.copyrighturl }}</a>{{ end }}{{ end }}
<span id="thisyear">2020</span>
{{ if isset .Site.Params "showhugo" }}
| {{ i18n "builton" }} <a href="//gohugo.io" target="_blank">Hugo</a>

Loading…
Cancel
Save