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

32 lines
965 B
HTML
Raw Normal View History

2017-06-20 10:53:54 +02:00
{{ define "main" }}
<main id="main">
2017-07-28 14:31:46 +02:00
<h1>
<svg class="bookmark-icon" aria-hidden="true" viewBox="0 0 40 50"><use xlink:href="#bookmark"></use></svg>
{{ .Title }}
</h1>
2017-06-20 10:53:54 +02:00
{{ 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>
2017-07-13 20:05:53 +02:00
<svg class="tag-icon" aria-hidden="true" viewBox="0 0 177.16535 177.16535">
2017-07-04 12:17:09 +02:00
<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 }}
2017-07-14 18:26:35 +02:00
{{ if ne .Params.TOC false }}
{{ partial "toc" . }}
{{ end }}
2017-06-20 10:53:54 +02:00
{{ .Content }}
</main>
{{ end }}