Blog/themes/papercut/layouts/_default/single.html

40 lines
1.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{{ define "main" }}
<div class="container">
<main>
<section class="bg-white border rounded shadow-sm p-3 mb-3 text-center">
<nav aria-label="breadcrumb">
<ol class="breadcrumb m-0">
<li class="breadcrumb-item"><a href="/">Главная</a></li>
<li class="breadcrumb-item"><a href="/posts/">Посты</a></li>
<li class="breadcrumb-item active" aria-current="page">{{ .Title }}</li>
</ol>
</nav>
</section>
<section class="bg-white border rounded shadow-sm p-3 mb-3 text-center">
<h3 class="m-0 p-0">{{ .Title }}</h3>
<div class="mt-2 text-secondary">
<i class="d-block">Опубликовано: {{ time.Format "2 January 2006 г." .PublishDate }}</i>
{{ if lt .PublishDate.Unix .Lastmod.Unix }}
<i class="d-block">Обновлено: {{ time.Format "2 January 2006 г." .Lastmod }}</i>
{{ end }}
</div>
<div class="border-top mt-3 p-3 pb-0">
{{ with .Params.tags }}
{{ range . }}
{{ $href := print (absURL "tags/") (urlize .) }}
<a class="btn btn-sm btn-outline" href="{{ $href }}">🏷️ {{ . }}</a>
{{ end }}
{{ end }}
</div>
</section>
<section class="bg-white border rounded shadow-sm p-3 mb-3">
{{ .Content }}
</section>
</main>
</div>
{{ end }}