jlelse
/
Indieroad
Archived
1
Fork 0
This repository has been archived on 2020-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
Indieroad/layouts/_default/single.html

36 lines
1.1 KiB
HTML
Raw Normal View History

2019-09-03 15:50:00 +00:00
{{ define "main" }}
2019-09-05 15:01:57 +00:00
<main class="main h-entry">
<article>
2019-09-03 15:50:00 +00:00
<header class="main-header">
2019-11-19 08:22:33 +00:00
{{ with .Title }}
<h1 class="p-name post-title">{{ . }}</h1>
{{ end }}
2019-12-25 13:35:57 +00:00
{{ if not .Params.nometa }}
{{ partial "post_meta" . }}
{{ partial "post_actions" . }}
2019-12-25 13:35:57 +00:00
{{ end }}
2019-09-03 15:50:00 +00:00
</header>
{{ partial "oldcontentwarning" . }}
<div class="e-content content">
2019-09-03 15:50:00 +00:00
{{ with .Params.audio }}
<p><audio controls preload="metadata" style="width: 100%;"><source src="{{ . }}"/></audio></p>
{{ end }}
{{ .Content }}
{{ with .Params.externalUrl }}
2020-05-02 06:03:49 +00:00
<p><a class="u-bookmark-of" href="{{ . }}" target="_blank" rel="noopener">{{ . }}</a></p>
{{ end }}
2019-09-03 15:50:00 +00:00
</div>
2020-02-22 07:57:27 +00:00
{{ partial "post_tags" . }}
2019-09-03 15:50:00 +00:00
</article>
{{ if (.Param "authorbox") }}{{ partialCached "authorbox" . }}{{ end }}
2019-09-03 15:50:00 +00:00
</main>
{{ if (and (.Param "promo") .CurrentSection.Parent) }}{{ partialCached "promo" . }}{{ end }}
2020-03-21 10:27:28 +00:00
{{ range $i, $image := .Params.images }}
<a href="#_" class="lightbox" id="{{ $image | md5 }}-lightbox">
<img src="{{ $image | safeURL }}">
</a>
{{ end }}
2019-09-03 15:50:00 +00:00
{{ partial "webmentionform" . }}
2019-12-12 08:09:31 +00:00
{{ partial "mentions.html" . }}
2019-09-03 15:50:00 +00:00
{{ partial "post_nav.html" . }}
{{ end }}