add breadcrumb's

This commit is contained in:
Alexander Popov 2022-09-03 00:12:19 +03:00
parent 91d80f9ff0
commit c4c3a58dbc
Signed by: iiiypuk
GPG Key ID: D8C9B59A9F04A70C
2 changed files with 16 additions and 1 deletions

View File

@ -1,6 +1,15 @@
{{ 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 active" aria-current="page">Посты</li>
</ol>
</nav>
</section>
<section class="bg-white border rounded shadow-sm p-3 mb-3">
<div class="list-group w-auto">
{{ range .Pages.ByPublishDate.Reverse }}

View File

@ -2,7 +2,13 @@
<div class="container">
<main>
<section class="bg-white border rounded shadow-sm p-3 mb-3 text-center">
<h3 class="m-0">Теги</h3>
<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">Теги</li>
</ol>
</nav>
</section>
<section class="bg-white border rounded shadow-sm p-3 mb-3">