cupper-hugo-theme/layouts/post/single.html

35 lines
1.0 KiB
HTML
Raw Normal View History

2017-11-02 16:39:45 +01:00
{{ define "main" }}
<main id="main">
<h1>
<svg class="bookmark-icon" aria-hidden="true" viewBox="0 0 40 50" focusable="false">
<use xlink:href="#bookmark"></use>
</svg>
{{ .Title }}
</h1>
<div class="date">
2019-02-14 18:31:24 +01:00
{{ $dateFormat := $.Site.Params.dateFormat | default "Jan 2, 2006" }}
<strong aria-hidden="true">Publish date: </strong>{{ .PublishDate.Format $dateFormat }}
</div>
2019-02-14 18:34:55 +01:00
{{ with .Params.tags }}
2017-11-02 16:39:45 +01:00
<div class="tags">
<strong aria-hidden="true">Tags: </strong>
<ul aria-label="tags">
2019-02-14 18:34:55 +01:00
{{ range . }}
2017-11-02 16:39:45 +01:00
<li>
<svg class="tag-icon" aria-hidden="true" viewBox="0 0 177.16535 177.16535" focusable="false">
<use xlink:href="#tag"></use>
</svg>
2019-02-14 18:34:55 +01:00
<a href="{{ "tags/" | absLangURL }}{{ . | urlize }}">{{ . }}</a>
2017-11-02 16:39:45 +01:00
</li>
{{ end }}
</ul>
</div>
{{ end }}
2019-02-14 18:37:42 +01:00
{{ if ne .Params.toc false }}
2017-11-02 16:39:45 +01:00
{{ partial "toc" . }}
{{ end }}
{{ .Content }}
</main>
{{ end }}