mirror of
https://github.com/fruworg/themu.git
synced 2024-11-16 15:07:17 +03:00
34 lines
952 B
HTML
34 lines
952 B
HTML
{{ define "main" }}
|
|
<main>
|
|
<article>
|
|
<div class="title">
|
|
<h1 class="title">{{ .Title }}</h1>
|
|
<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" }} {{ if .Draft }}</time> <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 }}
|