diff --git a/assets/css/custom.css b/assets/css/custom.css index 518c449..7f02863 100644 --- a/assets/css/custom.css +++ b/assets/css/custom.css @@ -80,6 +80,11 @@ kbd { text-indent: 0; } +/* /blog/ 列表:标签与第一篇之间留一点距离(原先是
撑开的) */ +.blog-index { + margin-top: 1.25rem; +} + /* 正文小标题:比主题默认小一号,h2 30px→24px,h3 24px→20px,保持层级差 */ .content h2 { font-size: 1.5rem; diff --git a/content/about.md b/content/about.md index 8fc7da4..fba18f3 100644 --- a/content/about.md +++ b/content/about.md @@ -3,9 +3,7 @@ draft: false poet: | 驾驶教练机拉杆起飞的那一刻/宇治城的小溪边被斜阳刺痛双眼的那一刻/在广汕国道上骑自行车听到路旁大爷大喊加油的那一刻/我清楚的感受到我是我自己 --- -{{< hextra-hero-subtitle >}} - Fukun.Net/about -{{< /hextra-hero-subtitle >}} +{{< crumb >}}Fukun.Net/about{{< /crumb >}} 我是傅堃。 diff --git a/content/blog/_index.md b/content/blog/_index.md index a020a33..1a9fb62 100644 --- a/content/blog/_index.md +++ b/content/blog/_index.md @@ -1,6 +1,4 @@ --- linkTitle: FuKun.Net/Blog --- -{{< hextra-hero-subtitle >}} - Fukun.Net/blog -{{< /hextra-hero-subtitle >}} +{{< crumb >}}Fukun.Net/blog{{< /crumb >}} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 60271eb..ef328ed 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -7,10 +7,9 @@ >
{{ partial "breadcrumb.html" (dict "page" . "enable" false) }} -
{{ if .Title }}

{{ partial "breadcrumb.html" (dict "page" . "enable" false) }} -
{{ .Content }}
{{- $pages := partial "utils/sort-pages" (dict "page" . "by" @@ -19,7 +18,7 @@ site.Params.blog.list.pagerSize | default 10 }} {{- $total := len $pages }} -
+
{{- range $i, $p := $pages }} {{- /* 整块卡片即一个链接:框内任意位置点击都进入文章; 标签放在卡片外面,保证标签本身仍是可点链接 */}} diff --git a/layouts/shortcodes/crumb.html b/layouts/shortcodes/crumb.html new file mode 100644 index 0000000..5890d11 --- /dev/null +++ b/layouts/shortcodes/crumb.html @@ -0,0 +1,5 @@ +{{- /* + 页面顶部的小标签(如 Fukun.Net/blog)。 + 直接用文章页 breadcrumb 那套 utility,字号、颜色、上边距保持一致。 +*/ -}} +
{{ .Inner }}