fix(footer): Guard post-info-license

Show license information if it is mentioned in the markdown.

Signed-off-by: Khusika Dhamar Gusti <mail@khusika.com>
This commit is contained in:
Khusika Dhamar Gusti 2020-07-22 22:47:44 +07:00
parent f787a4e5ad
commit 8eb46b216d

View file

@ -17,13 +17,13 @@
{{- end -}}
</span>
</div>
{{- with $params.license | string -}}
<div class="post-info-license">
{{- with $params.license | string -}}
<span>
{{- . | safeHTML -}}
</span>
{{- end -}}
<span>
{{- . | safeHTML -}}
</span>
</div>
{{- end -}}
</div>
<div class="post-info-line">
<div class="post-info-md">