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

40 lines
1.3 KiB
HTML
Raw Normal View History

2022-08-28 23:54:19 +03:00
{{ 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>
2022-10-01 16:00:12 +03:00
<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>
2022-08-28 23:54:19 +03:00
<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>
2022-12-24 02:36:37 +03:00
<section class="content bg-white border rounded shadow-sm p-3 mb-3">
2022-08-28 23:54:19 +03:00
{{ .Content }}
</section>
</main>
</div>
{{ end }}