35 lines
1.1 KiB
HTML
35 lines
1.1 KiB
HTML
|
{{ 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>
|
|||
|
|
|||
|
<i class="d-block mt-2 text-secondary">Опубликовано: {{ time.Format "2 January 2006 г." .PublishDate }}</i>
|
|||
|
|
|||
|
<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 }}
|