cupper-hugo-theme/themes/infusion/layouts/patterns/single.html

26 lines
786 B
HTML
Raw Normal View History

2017-06-20 10:53:54 +02:00
{{ define "main" }}
<main id="main">
<h1>{{ .Title }}</h1>
{{ if isset .Params "tags" }}
<div class="tags">
<strong aria-hidden="true">Tags: </strong>
<ul aria-label="tags">
{{ range .Params.tags }}
2017-07-04 12:17:09 +02:00
{{ if ne . "example tag"}}
{{ if ne . "another tag"}}
<li>
<svg class="tag-icon" aria-hidden="true" height="50" width="50" viewBox="0 0 177.16535 177.16535">
<use xlink:href="#tag"></use>
</svg>
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
</li>
{{ end }}
{{ end }}
2017-06-20 10:53:54 +02:00
{{ end }}
</ul>
</div>
{{ end }}
{{ .Content }}
</main>
{{ end }}