update README.md
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
## 预览
|
## 预览
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## 已适配插件
|
## 已适配插件
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 2.0 MiB |
@@ -4,7 +4,7 @@
|
|||||||
<section
|
<section
|
||||||
class="wi-section"
|
class="wi-section"
|
||||||
th:if="${theme.config?.home?.home_featured_enabled != false}"
|
th:if="${theme.config?.home?.home_featured_enabled != false}"
|
||||||
th:with="featuredPosts = ${postFinder.list({page: 1, size: theme.config?.home?.home_featured_count ?: 3})}"
|
th:with="featuredPosts = ${postFinder.list({page: 1, size: theme.config?.home?.home_featured_count ?: 3, sort: {'spec.pinned,desc', 'spec.publishTime,desc'}})}"
|
||||||
>
|
>
|
||||||
<div class="wi-container">
|
<div class="wi-container">
|
||||||
<div class="wi-section__header">
|
<div class="wi-section__header">
|
||||||
@@ -24,10 +24,16 @@
|
|||||||
<img th:src="${post.spec.cover}" th:alt="${post.spec.title}" class="wi-featured__image" />
|
<img th:src="${post.spec.cover}" th:alt="${post.spec.title}" class="wi-featured__image" />
|
||||||
</div>
|
</div>
|
||||||
<div class="wi-featured__body">
|
<div class="wi-featured__body">
|
||||||
|
<div class="wi-featured__top-row">
|
||||||
<time
|
<time
|
||||||
class="wi-featured__date"
|
class="wi-featured__date"
|
||||||
th:text="${#dates.format(post.spec.publishTime, 'yyyy-MM-dd')}"
|
th:text="${#dates.format(post.spec.publishTime, 'yyyy-MM-dd')}"
|
||||||
></time>
|
></time>
|
||||||
|
<span
|
||||||
|
class="wi-featured__pinned"
|
||||||
|
th:if="${post.spec.pinned}"
|
||||||
|
>置顶</span>
|
||||||
|
</div>
|
||||||
<h3
|
<h3
|
||||||
class="wi-featured__title"
|
class="wi-featured__title"
|
||||||
th:text="${post.spec.title}"
|
th:text="${post.spec.title}"
|
||||||
@@ -131,6 +137,22 @@
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.wi-featured__top-row {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: var(--space-sm);
|
||||||
|
}
|
||||||
|
|
||||||
|
.wi-featured__pinned {
|
||||||
|
font-size: var(--text-xs);
|
||||||
|
font-weight: 600;
|
||||||
|
color: var(--accent);
|
||||||
|
background: var(--accent-bg);
|
||||||
|
padding: 2px 8px;
|
||||||
|
border-radius: 9999px;
|
||||||
|
letter-spacing: var(--tracking-wide);
|
||||||
|
}
|
||||||
|
|
||||||
.wi-featured__date {
|
.wi-featured__date {
|
||||||
font-size: var(--text-xs);
|
font-size: var(--text-xs);
|
||||||
color: var(--ink-3);
|
color: var(--ink-3);
|
||||||
|
|||||||
+12
-2
@@ -755,8 +755,8 @@ import LightGallery from "../components/LightGallery.astro";
|
|||||||
.wi-toc-fab {
|
.wi-toc-fab {
|
||||||
display: none;
|
display: none;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 1.5rem;
|
bottom: 32px;
|
||||||
right: 1.5rem;
|
right: 24px;
|
||||||
width: 44px;
|
width: 44px;
|
||||||
height: 44px;
|
height: 44px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
@@ -779,6 +779,16 @@ import LightGallery from "../components/LightGallery.astro";
|
|||||||
@media (max-width: 1279px) {
|
@media (max-width: 1279px) {
|
||||||
.wi-toc-fab {
|
.wi-toc-fab {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
|
bottom: 152px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 640px) {
|
||||||
|
.wi-toc-fab {
|
||||||
|
right: 16px;
|
||||||
|
bottom: 152px;
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user