From cf16a212237eb35ad3f5fdc7eefa31ab127130f5 Mon Sep 17 00:00:00 2001 From: bamboo Date: Fri, 2 Feb 2024 01:08:43 +0800 Subject: [PATCH] :sparkles: Feat: add Posts link on header-nav, which is just the archives page to list all posts. --- content/archive.md | 4 ++-- content/posts/2009-09-23-rpbf.md | 2 +- hugo.yaml | 15 ++++++++++++--- themes/PaperMod/assets/css/common/header.css | 6 +++++- themes/PaperMod/assets/css/common/main.css | 5 +++++ themes/PaperMod/assets/css/core/theme-vars.css | 2 ++ 6 files changed, 27 insertions(+), 7 deletions(-) diff --git a/content/archive.md b/content/archive.md index 5628e34..c7034cc 100644 --- a/content/archive.md +++ b/content/archive.md @@ -1,6 +1,6 @@ --- -title: "Archive" +title: "Posts" layout: "archives" -url: "/archives/" +url: "/posts/" summary: archives --- diff --git a/content/posts/2009-09-23-rpbf.md b/content/posts/2009-09-23-rpbf.md index 3c13c64..95dd556 100644 --- a/content/posts/2009-09-23-rpbf.md +++ b/content/posts/2009-09-23-rpbf.md @@ -1,6 +1,6 @@ --- draft: false -title: 哦耶~~~人品啊~~~ +title: 哦耶人品啊~ date: 2009-09-23 comments: true isCJKLanguage: true diff --git a/hugo.yaml b/hugo.yaml index 03bc323..5f9f316 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -16,6 +16,11 @@ minify: disableXML: true minifyOutput: true +outputFormats: + RSS: + mediatype: "application/rss" + baseName: "feed" # make rss page url to be https://zhuzi.dev/feed.xml + params: env: production # to enable google analytics, opengraph, twitter-cards and schema. title: "Blah Blah Booooom" @@ -54,9 +59,9 @@ params: safari_pinned_tab: "" label: - text: "Home" - icon: /apple-touch-icon.png - iconHeight: 35 + text: "Bamboo🎋" + # icon: /apple-touch-icon.png + # iconHeight: 35 # profile-mode profileMode: @@ -125,6 +130,10 @@ params: keys: ["title", "permalink", "summary", "content"] menu: main: + - identifier: posts + name: Posts + url: /posts/ + weight: 5 - identifier: categories name: categories url: /categories/ diff --git a/themes/PaperMod/assets/css/common/header.css b/themes/PaperMod/assets/css/common/header.css index 64894da..42f8add 100644 --- a/themes/PaperMod/assets/css/common/header.css +++ b/themes/PaperMod/assets/css/common/header.css @@ -23,7 +23,7 @@ } .logo a { - font-size: 24px; + font-size: 18px; font-weight: 700; } @@ -36,6 +36,10 @@ margin-inline-end: 8px; } +.logo a, .logo button, #menu a { + color: var(--nav-text); +} + button#theme-toggle { font-size: 26px; margin: auto 4px; diff --git a/themes/PaperMod/assets/css/common/main.css b/themes/PaperMod/assets/css/common/main.css index 24e61d1..69fd062 100644 --- a/themes/PaperMod/assets/css/common/main.css +++ b/themes/PaperMod/assets/css/common/main.css @@ -81,3 +81,8 @@ div.highlight:hover .copy-code, pre:hover .copy-code { display: block; } + +strong { + font-weight: 400; + color: rgb(236 72 153); +} diff --git a/themes/PaperMod/assets/css/core/theme-vars.css b/themes/PaperMod/assets/css/core/theme-vars.css index 5a737fc..83dc5a2 100644 --- a/themes/PaperMod/assets/css/core/theme-vars.css +++ b/themes/PaperMod/assets/css/core/theme-vars.css @@ -17,6 +17,7 @@ --border: rgb(221, 221, 221); --border-2: rgb(186, 186, 186); --footer-text: #a3a3a3; + --nav-text: #444; } .dark { @@ -31,6 +32,7 @@ --border: rgb(51, 51, 51); --border-2: rgb(163, 163, 163); --footer-text: #78716c; + --nav-text: #a4a4a4; } .list {