Skip to content

Commit

Permalink
✨ Feat: add Posts link on header-nav, which is just the archives page…
Browse files Browse the repository at this point in the history
… to list all posts.
  • Loading branch information
bambooom committed Feb 1, 2024
1 parent 52666f8 commit cf16a21
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 7 deletions.
4 changes: 2 additions & 2 deletions content/archive.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Archive"
title: "Posts"
layout: "archives"
url: "/archives/"
url: "/posts/"
summary: archives
---
2 changes: 1 addition & 1 deletion content/posts/2009-09-23-rpbf.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
draft: false
title: 哦耶~~~人品啊~~~
title: 哦耶人品啊~
date: 2009-09-23
comments: true
isCJKLanguage: true
Expand Down
15 changes: 12 additions & 3 deletions hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -54,9 +59,9 @@ params:
safari_pinned_tab: "<link / abs url>"

label:
text: "Home"
icon: /apple-touch-icon.png
iconHeight: 35
text: "Bamboo🎋"
# icon: /apple-touch-icon.png
# iconHeight: 35

# profile-mode
profileMode:
Expand Down Expand Up @@ -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/
Expand Down
6 changes: 5 additions & 1 deletion themes/PaperMod/assets/css/common/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
}

.logo a {
font-size: 24px;
font-size: 18px;
font-weight: 700;
}

Expand All @@ -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;
Expand Down
5 changes: 5 additions & 0 deletions themes/PaperMod/assets/css/common/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,8 @@ div.highlight:hover .copy-code,
pre:hover .copy-code {
display: block;
}

strong {
font-weight: 400;
color: rgb(236 72 153);
}
2 changes: 2 additions & 0 deletions themes/PaperMod/assets/css/core/theme-vars.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
--border: rgb(221, 221, 221);
--border-2: rgb(186, 186, 186);
--footer-text: #a3a3a3;
--nav-text: #444;
}

.dark {
Expand All @@ -31,6 +32,7 @@
--border: rgb(51, 51, 51);
--border-2: rgb(163, 163, 163);
--footer-text: #78716c;
--nav-text: #a4a4a4;
}

.list {
Expand Down

0 comments on commit cf16a21

Please sign in to comment.