themu/layouts/_default/single.html

36 lines
1015 B
HTML
Raw Normal View History

2020-04-22 13:14:28 +03:00
{{ define "main" }}
2020-04-08 21:44:29 +03:00
<main>
2020-04-22 13:14:28 +03:00
<article>
2020-04-08 21:44:29 +03:00
<div class="title">
<h1 class="title">{{ .Title }}</h1>
2023-07-30 22:45:15 +03:00
<div class="meta">Опубликовано <time datetime="{{ .Date.Format "01-02-2006 15:04:05"}}">{{ .Site.Data.Strings.publishedon}} {{.Date.Day}} {{ index $.Site.Data.months.months .Date.Month }} {{.Date.Year}}, {{ .Date.Format "15:04" }} UTC+6 {{ if .Draft }}</time> <span class="draft-label">DRAFT</span> {{ end }}</div>
2020-04-08 21:44:29 +03:00
</div>
2020-04-22 13:14:28 +03:00
{{ if isset .Params "tldr" }}
<div class="tldr">
<strong>tl;dr:</strong>
{{ .Params.tldr }}
</div>{{ end }}
2020-04-08 21:44:29 +03:00
<section class="body">
{{ .Content }}
</section>
2023-08-01 19:08:08 +03:00
<script src="{{ .Site.BaseURL }}js/copy.js"></script>
2020-04-08 21:44:29 +03:00
<div class="post-tags">
{{ if ne .Type "page" }}
2020-04-22 13:14:28 +03:00
{{ 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 }}
2020-04-08 21:44:29 +03:00
{{ end }}
</div>
2020-04-22 13:14:28 +03:00
</article>
</main>
{{ end }}