Skip to content

Commit

Permalink
customize menu
Browse files Browse the repository at this point in the history
  • Loading branch information
poneding committed Jun 13, 2024
1 parent 5faa4f1 commit eba83a9
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 9 deletions.
2 changes: 1 addition & 1 deletion content/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 "🏠 首页"
2 changes: 1 addition & 1 deletion content/_index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 🍁 秋河落叶
# 秋河落叶

## 数据结构与算法

Expand Down
18 changes: 14 additions & 4 deletions content/menu/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

---
9 changes: 6 additions & 3 deletions hugo.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -23,9 +23,12 @@ markup:

menu:
after:
- name: "🔗 GitHub"
- name: "🐙 GitHub"
url: "https://github.com/poneding"
weight: 10
- name: "📬 邮箱"
url: "mailto:[email protected]"
weight: 20

params:
# (Optional, default light) Sets color theme: light, dark or auto.
Expand All @@ -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
Expand Down

0 comments on commit eba83a9

Please sign in to comment.