hugo-bearcub/layouts/_default/single.html

41 lines
1 KiB
HTML
Raw Normal View History

2020-08-31 15:40:11 +02:00
{{ define "main" }}
2023-02-01 15:06:05 -03:00
{{ if not .Params.menu }}
2020-08-31 15:40:11 +02:00
<h1>{{ .Title }}</h1>
{{ if not .Params.hideDate }}
2023-10-17 23:34:17 -03:00
<p class="byline">
<time datetime='{{ .Date.Format "2006-01-02" }}' pubdate>
{{ .Date.Format (default "2006-01-02" .Site.Params.dateFormat) }}
</time>
{{ with .Params.author }}· {{.}}{{ end }}
2020-08-31 15:40:11 +02:00
</p>
2023-02-01 15:06:05 -03:00
{{ end }}
{{ end }}
2020-08-31 15:40:11 +02:00
<content>
{{ .Content }}
</content>
<p>
{{ range (.GetTerms "tags") }}
2024-03-05 15:24:13 -03:00
<a class="blog-tags" href="{{ .RelPermalink }}">#{{ lower .LinkTitle }}</a>
2020-08-31 15:40:11 +02:00
{{ end }}
</p>
2026-03-19 23:31:30 -04:00
{{ if .Site.Params.upvotes }}
<div class="upvote">
<button id="upvote-btn" aria-label="Upvote">
<span id="upvote-chevron">&#8963;</span>
<span id="upvote-count"></span>
</button>
</div>
2026-03-20 00:01:45 -04:00
<script>window.UPVOTE_API = "{{ .Site.Params.upvoteApi }}";</script>
2026-03-19 23:31:30 -04:00
<script src="/upvote.js"></script>
{{ end }}
{{ if not .Params.hideReply }}
2024-01-08 14:11:08 -03:00
{{ with .Site.Params.author.email }}
<p>
<a href='mailto:{{ . }}?subject={{ i18n "email-subject" }}"{{ default $.Site.Title $.Page.Title }}"'>
{{ i18n "email-reply" }} ↪
</a>
</p>
{{ end }}
2020-08-31 15:40:11 +02:00
{{ end }}
{{ end }}