diff options
| -rw-r--r-- | layouts/_partials/components/breadcrumbs.html | 35 | ||||
| -rw-r--r-- | layouts/categories/term.html | 7 | ||||
| -rw-r--r-- | layouts/term/term.html | 7 | ||||
| -rw-r--r-- | layouts/uncategorized.html | 5 |
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> |
