Match the top label to the article breadcrumb

This commit is contained in:
2026-11-15 20:12:35 +08:00
parent 7fda08046a
commit 2decef4ab3
6 changed files with 14 additions and 10 deletions
+1 -2
View File
@@ -7,10 +7,9 @@
>
<main
id="content"
class="hx:w-full hx:min-w-0 hextra-max-content-width hx:px-6 hx:pt-4 hx:md:px-12"
class="hx:w-full hx:min-w-0 hextra-max-content-width hx:px-6 hx:pt-0 hx:md:px-12"
>
{{ partial "breadcrumb.html" (dict "page" . "enable" false) }}
<br class="hx:mt-1.5 hx:text-sm" />
{{ if .Title }}
<h1
class="hx:text-center hx:mt-2 hx:text-4xl hx:font-bold hx:tracking-tight hx:text-slate-900 hx:dark:text-slate-100"
+1 -2
View File
@@ -10,7 +10,6 @@
class="hx:w-full hx:min-w-0 hextra-max-content-width hx:px-6 hx:pt-0 hx:md:px-12"
>
{{ partial "breadcrumb.html" (dict "page" . "enable" false) }}
<br class="hx:mt-1.5 hx:text-sm" />
<div class="content">{{ .Content }}</div>
{{- $pages := partial "utils/sort-pages" (dict "page" . "by"
@@ -19,7 +18,7 @@
site.Params.blog.list.pagerSize | default 10 }} {{- $total := len
$pages }}
<div id="post-list">
<div id="post-list" class="blog-index">
{{- range $i, $p := $pages }}
{{- /* 整块卡片即一个链接:框内任意位置点击都进入文章;
标签放在卡片外面,保证标签本身仍是可点链接 */}}
+5
View File
@@ -0,0 +1,5 @@
{{- /*
页面顶部的小标签(如 Fukun.Net/blog)。
直接用文章页 breadcrumb 那套 utility,字号、颜色、上边距保持一致。
*/ -}}
<div class="page-crumb hx:mt-1.5 hx:text-sm hx:text-gray-500 hx:dark:text-gray-400">{{ .Inner }}</div>