themu/layouts/_default/single.html
root 24c5dcf9e7 Committer: root <root@fruw.org>
On branch master
Your branch is up to date with 'origin/master'.

Changes to be committed:
	modified:   layouts/404.html
	modified:   layouts/_default/single.html
	modified:   layouts/partials/footer.html
	modified:   layouts/partials/head.html
	modified:   layouts/partials/header.html
2023-07-27 22:56:04 +05:00

34 lines
781 B
HTML

{{ define "main" }}
<main>
<article>
<div class="title">
<h1 class="title">{{ .Title }}</h1>
<div class="meta">Опубликовано {{ dateFormat "Jan 2, 2006" .Date }}{{ if .Draft }} <span class="draft-label">DRAFT</span> {{ end }}</div>
</div>
{{ if isset .Params "tldr" }}
<div class="tldr">
<strong>tl;dr:</strong>
{{ .Params.tldr }}
</div>{{ end }}
<section class="body">
{{ .Content }}
</section>
<div class="post-tags">
{{ if ne .Type "page" }}
{{ if gt .Params.tags 0 }}
<nav class="nav tags">
<ul class="tags">
{{ range .Params.tags }}
<li><a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a></li>
{{ end }}
</ul>
</nav>
{{ end }}
{{ end }}
</div>
</article>
</main>
{{ end }}