Add feature for 3rd party license URLs

This commit is contained in:
Valentin Sundermann
2017-06-10 13:25:07 +02:00
parent 103b92f658
commit 1e8b3beeed

View File

@@ -3,7 +3,11 @@
<div class="copyright"> <div class="copyright">
{{ if .Site.Params.copyright }} {{ if .Site.Params.copyright }}
<a href="{{ .Site.BaseURL }}license">{{ .Site.Params.copyright}}</a> {{ if .Site.Params.copyrightUrl }}
<a href="{{ .Site.Params.copyrightUrl }}">{{ .Site.Params.copyright }}</a>
{{ else }}
<a href="{{ .Site.BaseURL }}license">{{ .Site.Params.copyright }}</a>
{{ end }}
{{ end }} {{ end }}
</div> </div>