hugo-stanley/layouts/partials/article-license.html

12 lines
390 B
HTML
Raw Permalink Normal View History

2020-03-03 18:56:59 +01:00
{{- $license := "" -}}
{{- if and (isset .Params "license") (ne .Params.license "") -}}
{{- $license = .Params.license -}}
{{- else if and (isset site.Params "license") (ne site.Params.license "") -}}
{{- $license = site.Params.license -}}
{{- end -}}
{{- if ne $license "" -}}
<section class="article license">
LICENSE :&nbsp;{{- $license | safeHTML -}}
</section>
{{- end -}}