diff options
| author | Verdant <i@glowisle.me> | 2026-03-22 20:54:46 +0800 |
|---|---|---|
| committer | Verdant <i@glowisle.me> | 2026-03-22 20:54:46 +0800 |
| commit | 03757128df8774136f68acddcd346ffa3ee275fe (patch) | |
| tree | 0461e73fcefe742ee3aa463c09b5295f82abfb54 /layouts/partials | |
| parent | 5b1ddd7cc2ad7f334b1d29b7374c818614e654bd (diff) | |
| download | blog-03757128df8774136f68acddcd346ffa3ee275fe.tar.gz blog-03757128df8774136f68acddcd346ffa3ee275fe.zip | |
refactor: refactor index
- add introduction
- modify recent posts pieces
- modify background color
Diffstat (limited to 'layouts/partials')
| -rw-r--r-- | layouts/partials/nav.html | 5 | ||||
| -rw-r--r-- | layouts/partials/style.html | 20 |
2 files changed, 8 insertions, 17 deletions
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index 96bf26b..c9ace2f 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -1,6 +1,7 @@ +<a href="{{ "" | relURL }}">首页</a> {{ range .Site.Menus.main }} -<a href="{{ .URL }}">{{ .Name }}</a> +<a href="{{ .URL }}">{{ .Name}}</a> {{ end }} {{ with .Site.GetPage "/blog" }} -<a href="{{ "posts/" | relURL }}">Blog</a> +<a href="{{ "blog/" | relURL }}">Blog</a> {{ end }} diff --git a/layouts/partials/style.html b/layouts/partials/style.html index ec4dae2..0c11755 100644 --- a/layouts/partials/style.html +++ b/layouts/partials/style.html @@ -4,10 +4,10 @@ --font-secondary: monospace; --font-size-primary: 1rem; --font-size-secondary: .85rem; - --body-bg-color: #ffffff; + --body-bg-color: #fbfbf6; --bold-text-color: #222; --body-text-color: #444; - --link-color: #0066cc; + --link-color: #0355a6; --link-visited-color: #551a8b; --table-border-color: #f2f2f2; --table-th-bg-color: #f2f2f2; @@ -68,7 +68,7 @@ h1, h2 { margin-top: 1.5em; } -.post-meta-item a, .rss-icon a, .post-title a, header a, a.title h1, p { +.post-meta-item a, .rss-icon a, .post-title a, a.title h1, p { color: var(--body-text-color) } @@ -140,7 +140,6 @@ time { header { margin-top: 30px; -margin-bottom: 2rem; } .title { @@ -161,18 +160,10 @@ a.title h1 { font-weight: 400; } -nav { - text-align: left; - margin-bottom: 20px; -} -nav a { - margin-right: 8px; - text-decoration: none !important; -} -nav a:hover { - text-decoration: underline 0.5px !important; +nav a { + margin-right: 8px; } footer { @@ -811,7 +802,6 @@ nav { header { margin-top: 30px; - margin-bottom: 2rem; display: block; } |
