diff options
| author | Eltrac <hi@guhub.cn> | 2025-07-14 19:40:18 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-07-14 19:40:18 +0800 |
| commit | a2fd24fb31dc6bc8498711df68a0c0f04d3f9901 (patch) | |
| tree | bd26e8b89d13f20f7250b5fa6748ed2a5638fe33 /layouts/_partials/components | |
| parent | 0de7fc18d86901d1a3ab715128f77cefce2e2d21 (diff) | |
remove: breadcrumbs
Former-commit-id: 2698f41d495ca24dc8697d8c64fe066d332d9a4e
Diffstat (limited to 'layouts/_partials/components')
| -rw-r--r-- | layouts/_partials/components/breadcrumbs.html | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/layouts/_partials/components/breadcrumbs.html b/layouts/_partials/components/breadcrumbs.html deleted file mode 100644 index 99a49708..00000000 --- a/layouts/_partials/components/breadcrumbs.html +++ /dev/null @@ -1,35 +0,0 @@ -<nav aria-label="breadcrumb"> - <ol class="breadcrumb"> - {{ $currentPage := . }} {{ with $currentPage.Ancestors }} {{ range - .Reverse }} - <li class="breadcrumb-item"> - <a href="{{ .RelPermalink }}">{{ .Title }}</a> - </li> - {{ end }} {{ end }} {{ if or (ne $currentPage.Type "posts") (eq - $currentPage.Kind "section") }} - <li class="breadcrumb-item active" aria-current="page"> - {{ $currentPage.Title }} - </li> - {{ end }} - </ol> -</nav> - -<style> - ol.breadcrumb { - list-style-type: none; - display: flex; - padding-inline-start: 0; - font-family: var(--mono-font-family); - - li { - &:not(:last-child) a { - &:hover { text-decoration: none; } - &::after { - content: "/"; - color: var(--secondary-text-color); - margin: 0 0.5rem; - } - } - } - } -</style> |
