From af3de3609d5cfbebf25e194c26ffeccda7f372a2 Mon Sep 17 00:00:00 2001 From: elkan1788 Date: Thu, 30 Jan 2025 15:35:21 +0800 Subject: [PATCH] :bug: Fixed the children menus links. --- .../content/post/11-mermaid-charts/index.md | 1 - exampleSite/hugo.yaml | 52 +++++++++++++------ layouts/partials/header/menus.html | 6 +-- 3 files changed, 39 insertions(+), 20 deletions(-) diff --git a/exampleSite/content/post/11-mermaid-charts/index.md b/exampleSite/content/post/11-mermaid-charts/index.md index b5a19fe..9bc0c64 100644 --- a/exampleSite/content/post/11-mermaid-charts/index.md +++ b/exampleSite/content/post/11-mermaid-charts/index.md @@ -1,6 +1,5 @@ --- title: "Mermaid支持流程图" -description: "mermaid-flow-chart" keywords: "mermaid,flow,chart" date: 2022-09-18T20:58:13+08:00 diff --git a/exampleSite/hugo.yaml b/exampleSite/hugo.yaml index 04146f4..8cfc7ba 100644 --- a/exampleSite/hugo.yaml +++ b/exampleSite/hugo.yaml @@ -40,17 +40,17 @@ languages: main: - identifier: home name: Home - pageref: / + pageRef: / pre: home weight: 1 - identifier: about name: About - pageref: /about.html + pageRef: /about.html pre: user weight: 2 - identifier: flinks name: Friend's Links - pageref: /flinks.html + pageRef: /flinks.html pre: thumbs-up weight: 3 - identifier: example @@ -59,28 +59,28 @@ languages: weight: 4 - identifier: flow-charts name: Flow Charts - pageref: /post/mermaid-charts.html + pageRef: /demo/mermaid-charts.html weight: 1 parent: example - identifier: math name: Math Formula - pageref: /post/math-formula.html + pageRef: /demo/math-formula.html weight: 2 parent: example parent: example - identifier: syntax name: Syntax Highlighting - pageref: /post/syntax-highlighting.html + pageRef: /demo/syntax-highlighting.html weight: 3 parent: example - identifier: archives name: Archives - pageref: /archives + pageRef: /archives pre: archive weight: 5 - identifier: commonweal name: Commonweal404 - url: /404.html + pageRef: /404.html pre: heartbeat weight: 6 params: @@ -201,29 +201,49 @@ menus: main: - identifier: home name: 首页 - pageref: / + pageRef: / pre: home weight: 1 - identifier: about name: 关于 - pageref: /about.html + pageRef: /about.html pre: user weight: 2 - identifier: flinks - name: 站点示例 - pageref: /flinks.html + name: 友情链接 + pageRef: /flinks.html pre: thumbs-up weight: 3 + - identifier: example + name: 语法示例 + pre: angles-down + weight: 4 + - identifier: flow-charts + name: 流程图 + pageRef: /demo/mermaid-charts.html + weight: 1 + parent: example + - identifier: math + name: 数学公式 + pageRef: /demo/math-formula.html + weight: 2 + parent: example + parent: example + - identifier: syntax + name: 语法高亮 + pageRef: /demo/syntax-highlighting.html + weight: 3 + parent: example - identifier: archives name: 归档 - pageref: /archives + pageRef: /archives pre: archive - weight: 4 + weight: 5 - identifier: commonweal name: 公益 404 - url: /404.html + pageRef: /404.html pre: heartbeat - weight: 5 + weight: 6 #----------------------------------------- # Hugo NexT 主题参数配置 diff --git a/layouts/partials/header/menus.html b/layouts/partials/header/menus.html index 9dd2eaf..2716fab 100644 --- a/layouts/partials/header/menus.html +++ b/layouts/partials/header/menus.html @@ -3,7 +3,7 @@