From eba83a9dd883e0d30f24deb76aba97d7ab801ee4 Mon Sep 17 00:00:00 2001 From: poneding Date: Thu, 13 Jun 2024 17:01:18 +0800 Subject: [PATCH] customize menu --- content/Makefile | 2 +- content/_index.md | 2 +- content/menu/index.md | 18 ++++++++++++++---- hugo.yaml | 9 ++++++--- 4 files changed, 22 insertions(+), 9 deletions(-) diff --git a/content/Makefile b/content/Makefile index bc950246..67b4b702 100644 --- a/content/Makefile +++ b/content/Makefile @@ -24,4 +24,4 @@ check_mdi: mdi_gen: check_mdi @git pull @echo "Generating markdown indices..." - @mdi gen -f _index.md --sub-index-file _index.md -t "🍁 秋河落叶" -r --override --nav -v --no-header-link --home-title "🏠 首页" + @mdi gen -f _index.md --sub-index-file _index.md -t "秋河落叶" -r --override --nav -v --no-header-link --home-title "🏠 首页" diff --git a/content/_index.md b/content/_index.md index 436128d2..5a449e2f 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,4 +1,4 @@ -# 🍁 秋河落叶 +# 秋河落叶 ## 数据结构与算法 diff --git a/content/menu/index.md b/content/menu/index.md index c831f569..9b6783f9 100644 --- a/content/menu/index.md +++ b/content/menu/index.md @@ -2,16 +2,26 @@ headless: true --- -- [**🏠 首页**](/) +🦉 集中起来的意志可以击穿顽石。 --- -- **📌 置顶** +- [**🏠 首页**](/) + +- **📌 置顶文章** + - [Git 常用](/git/common-usage.md) + - [安装 Kubernetes (Docker)](/kubernetes/kubeadm-install-k8s-docker.md) + +- **📌 置顶分类** - [Golang 编程](/go) - [Kubernetes](/kubernetes) - [Rust 编程](/rust) - [Git](/git) - + --- - +- **🗃️ 开源项目** + - [registry-proxy](https://github.com/ketches/registry-proxy) + - [mdi](https://github.com/poneding/mdi) + +--- diff --git a/hugo.yaml b/hugo.yaml index 15b81793..bdab6f38 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -1,7 +1,7 @@ # hugo server --minify --themesDir ../.. --baseURL=http://0.0.0.0:1313/theme/hugo-book/ baseURL: https://blog.poneding.com/ -title: 🍁 秋河落叶 +title: 秋河落叶 theme: hugo-book pluralizeListTitles: false defaultContentLanguage: cn @@ -23,9 +23,12 @@ markup: menu: after: - - name: "🔗 GitHub" + - name: "🐙 GitHub" url: "https://github.com/poneding" weight: 10 + - name: "📬 邮箱" + url: "mailto:poneding@gmail.com" + weight: 20 params: # (Optional, default light) Sets color theme: light, dark or auto. @@ -43,7 +46,7 @@ params: # (Optional, default none) Set the path to a logo for the book. # If the logo is /static/logo.png then the path would be logo.png - # BookLogo: logo.png + BookLogo: logo.png # (Optional, default none) Set leaf bundle to render as side menu # When not specified file structure and weights will be used