diff --git a/README.md b/README.md index 9140ecd..74a5e5c 100644 --- a/README.md +++ b/README.md @@ -202,6 +202,7 @@ html[theme-color-scheme='matrix'] { | `--color-theme-header` | 页头文字和边框 | | `--color-theme-code-text` | 行内代码和代码块文字 | | `--color-theme-link` | 链接 | +| `--color-theme-post-link` | 文章和页面正文链接 | | `--color-theme-muted` | 次要文字 | | `--color-theme-foreground-muted` | 弱化前景色 | | `--color-theme-accent-muted` | 弱化强调色 | diff --git a/src/styles/post.scss b/src/styles/post.scss index 5f9758a..b905723 100644 --- a/src/styles/post.scss +++ b/src/styles/post.scss @@ -131,6 +131,10 @@ margin-top: calc(var(--size-theme-font) * 1.5625); } +.post-content-body a { + color: var(--color-theme-post-link); +} + .post-cover { margin: calc(var(--size-theme-font) * 1.5625) 0; } diff --git a/src/styles/scheme.scss b/src/styles/scheme.scss index 5768ff6..b1f222d 100644 --- a/src/styles/scheme.scss +++ b/src/styles/scheme.scss @@ -11,6 +11,7 @@ --color-theme-code-text: var(--color-theme-foreground); --color-theme-link: var(--color-theme-accent); + --color-theme-post-link: var(--color-theme-link); --color-theme-muted: var(--color-theme-meta); --color-theme-foreground-muted: color-mix(in srgb, var(--color-theme-foreground) 85%, var(--color-theme-background)); --color-theme-accent-muted: color-mix(in srgb, var(--color-theme-accent) 60%, var(--color-theme-background)); diff --git a/templates/page.html b/templates/page.html index 2138bf4..9938b9e 100644 --- a/templates/page.html +++ b/templates/page.html @@ -9,7 +9,7 @@

Post Title

-
Post Content
+
Post Content

Content

-
+
diff --git a/templates/post.html b/templates/post.html index 04a8e1b..4bb4902 100644 --- a/templates/post.html +++ b/templates/post.html @@ -16,7 +16,7 @@
-
Post Content
+
Post Content