feat: add post content link color

This commit is contained in:
Erzbir
2026-07-15 03:46:31 +08:00
parent a625bc9b0b
commit a87cc72124
6 changed files with 9 additions and 3 deletions
+1
View File
@@ -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` | 弱化强调色 |
+4
View File
@@ -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;
}
+1
View File
@@ -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));
+1 -1
View File
@@ -9,7 +9,7 @@
<h1 class="post-title" th:text="${singlePage.spec.title}">Post Title</h1>
</header>
<div class="post-content">
<div th:utext="${singlePage.content.content}">Post Content</div>
<div th:utext="${singlePage.content.content}" class="post-content-body">Post Content</div>
</div>
</article>
<th:block
+1 -1
View File
@@ -69,7 +69,7 @@
<section class="portfolio-detail-section" th:if="${hasRenderedContent == true}">
<h2 th:text="#{page.portfolio.content}">Content</h2>
<div class="portfolio-detail-content" th:utext="${projectContentHtml}"></div>
<div class="portfolio-detail-content post-content-body" th:utext="${projectContentHtml}"></div>
</section>
<div class="portfolio-detail-nav">
+1 -1
View File
@@ -16,7 +16,7 @@
</div>
</header>
<section class="post-content">
<div th:utext="${post.content.content}" id="content">Post Content</div>
<div th:utext="${post.content.content}" id="content" class="post-content-body">Post Content</div>
</section>
</article>
<nav id="toc" th:if="${theme.config.post_page.show_toc}" class="toc"