Replace isset with with

This commit is contained in:
Zachary Betz 2019-02-14 11:34:55 -06:00
parent fe5dd70c06
commit dd93ff9031
1 changed files with 3 additions and 3 deletions

View File

@ -10,16 +10,16 @@
{{ $dateFormat := $.Site.Params.dateFormat | default "Jan 2, 2006" }}
<strong aria-hidden="true">Publish date: </strong>{{ .PublishDate.Format $dateFormat }}
</div>
{{ if isset .Params "tags" }}
{{ with .Params.tags }}
<div class="tags">
<strong aria-hidden="true">Tags: </strong>
<ul aria-label="tags">
{{ range .Params.tags }}
{{ range . }}
<li>
<svg class="tag-icon" aria-hidden="true" viewBox="0 0 177.16535 177.16535" focusable="false">
<use xlink:href="#tag"></use>
</svg>
<a href="{{ "/tags/" | absLangURL }}{{ . | urlize }}">{{ . }}</a>
<a href="{{ "tags/" | absLangURL }}{{ . | urlize }}">{{ . }}</a>
</li>
{{ end }}
</ul>