refactor: shorten post body class

This commit is contained in:
Erzbir
2026-07-15 04:01:25 +08:00
parent e7074dea62
commit 64dac8c0a5
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -131,7 +131,7 @@
margin-top: calc(var(--size-theme-font) * 1.5625); margin-top: calc(var(--size-theme-font) * 1.5625);
} }
.post-content-body a { .post-body a {
color: var(--color-theme-post-link); color: var(--color-theme-post-link);
text-decoration: var(--text-decoration-theme-post-link); text-decoration: var(--text-decoration-theme-post-link);
} }
+1 -1
View File
@@ -9,7 +9,7 @@
<h1 class="post-title" th:text="${singlePage.spec.title}">Post Title</h1> <h1 class="post-title" th:text="${singlePage.spec.title}">Post Title</h1>
</header> </header>
<div class="post-content"> <div class="post-content">
<div th:utext="${singlePage.content.content}" class="post-content-body">Post Content</div> <div th:utext="${singlePage.content.content}" class="post-body">Post Content</div>
</div> </div>
</article> </article>
<th:block <th:block
+1 -1
View File
@@ -69,7 +69,7 @@
<section class="portfolio-detail-section" th:if="${hasRenderedContent == true}"> <section class="portfolio-detail-section" th:if="${hasRenderedContent == true}">
<h2 th:text="#{page.portfolio.content}">Content</h2> <h2 th:text="#{page.portfolio.content}">Content</h2>
<div class="portfolio-detail-content post-content-body" th:utext="${projectContentHtml}"></div> <div class="portfolio-detail-content post-body" th:utext="${projectContentHtml}"></div>
</section> </section>
<div class="portfolio-detail-nav"> <div class="portfolio-detail-nav">
+1 -1
View File
@@ -16,7 +16,7 @@
</div> </div>
</header> </header>
<section class="post-content"> <section class="post-content">
<div th:utext="${post.content.content}" id="content" class="post-content-body">Post Content</div> <div th:utext="${post.content.content}" id="content" class="post-body">Post Content</div>
</section> </section>
</article> </article>
<nav id="toc" th:if="${theme.config.post_page.show_toc}" class="toc" <nav id="toc" th:if="${theme.config.post_page.show_toc}" class="toc"