cupper-hugo-theme/themes/infusion/layouts/patterns/single.html
2017-07-14 17:26:35 +01:00

29 lines
839 B
HTML

{{ 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 }}
{{ if ne . "example tag"}}
{{ if ne . "another tag"}}
<li>
<svg class="tag-icon" aria-hidden="true" viewBox="0 0 177.16535 177.16535">
<use xlink:href="#tag"></use>
</svg>
<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
</li>
{{ end }}
{{ end }}
{{ end }}
</ul>
</div>
{{ end }}
{{ if ne .Params.TOC false }}
{{ partial "toc" . }}
{{ end }}
{{ .Content }}
</main>
{{ end }}