summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-07-14 19:40:18 +0800
committerEltrac <hi@guhub.cn>2025-07-14 19:40:18 +0800
commita2fd24fb31dc6bc8498711df68a0c0f04d3f9901 (patch)
treebd26e8b89d13f20f7250b5fa6748ed2a5638fe33
parent0de7fc18d86901d1a3ab715128f77cefce2e2d21 (diff)
remove: breadcrumbs
Former-commit-id: 2698f41d495ca24dc8697d8c64fe066d332d9a4e
-rw-r--r--layouts/_partials/components/breadcrumbs.html35
-rw-r--r--layouts/categories/term.html7
-rw-r--r--layouts/term/term.html7
-rw-r--r--layouts/uncategorized.html5
4 files changed, 9 insertions, 45 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>
diff --git a/layouts/categories/term.html b/layouts/categories/term.html
index 6b647739..d383b6b0 100644
--- a/layouts/categories/term.html
+++ b/layouts/categories/term.html
@@ -1,12 +1,11 @@
{{ define "main" }}
<article class="posts termlist-page">
- {{ partial "components/post-page-header.html" . }}
- {{ partial "components/breadcrumbs.html" . }}
-
+ {{ partial "header.html" . }}
+ {{ partial "components/postnav.html" . }}
+ <h1 class="term-title">{{ .Title }}</h1>
{{ with .Params.description }}
<div class="taxonomy-description markdown-body">
{{ . | markdownify }}
- <hr />
</div>
{{ end }}
diff --git a/layouts/term/term.html b/layouts/term/term.html
index 2c9a4d59..692e175e 100644
--- a/layouts/term/term.html
+++ b/layouts/term/term.html
@@ -1,10 +1,9 @@
{{ define "main" }}
<article class="posts termlist-page">
- {{ partial "components/post-page-header.html" . }}
- {{ partial "components/breadcrumbs.html" . }}
-
+ {{ partial "header.html" . }}
+ {{ partial "components/postnav.html" . }}
+ <h1 class="term-title">#{{ .Title }}</h1>
<div class="term-list">
-
<!-- Posts under this Term -->
<ul class="term-list-posts">
{{ range where .Pages "Section" "not in" (slice "cards" "library") }}
diff --git a/layouts/uncategorized.html b/layouts/uncategorized.html
index d29fa2e8..b86e9b76 100644
--- a/layouts/uncategorized.html
+++ b/layouts/uncategorized.html
@@ -1,7 +1,8 @@
{{ define "main" }}
<article class="posts termlist-page">
- {{ partial "components/post-page-header.html" . }}
- {{ partial "components/breadcrumbs.html" . }}
+ {{ partial "header.html" . }}
+ {{ partial "components/postnav.html" . }}
+ <h1 class="term-title">{{ .Title }}</h1>
<div class="post-content markdown-body">
<p>{{ .Content }}</p>
</div>