Merge pull request #9 from ClovertaTheTrilobita/master

update rss
This commit is contained in:
ClovertaTheTrilobita 2026-03-26 15:30:51 +02:00 committed by GitHub
commit fe75141188
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 27 additions and 4 deletions

View file

@ -14,7 +14,7 @@
<br>
<img width="2880" height="1855" alt="image" src="https://github.com/user-attachments/assets/0f020f42-ff0f-4307-bcfa-4e9f37569661" style="zoom:25%;"/>
<img width="1670" height="889" alt="image" src="https://github.com/user-attachments/assets/e98092b4-c97c-48cc-b905-961b24874b2b" />
<br>

View file

@ -15,11 +15,11 @@
<br>
<img width="2879" height="1853" alt="image" src="https://github.com/user-attachments/assets/9f6f7018-c8a4-46f7-9d30-1132fcea53da" style="zoom:25%;" />
<img width="1670" height="889" alt="image" src="https://github.com/user-attachments/assets/ded8f5ae-7f48-4b62-a79d-6b482fc77764" />
<br>
- 使用纯静态页面,应迅速,轻盈美观
- 使用纯静态页面,应迅速,轻盈美观
- 操作简易Github Action自动部署
- <del><i>Astro Is All You Need</i></del>

View file

@ -16,7 +16,30 @@ const pageTitle = t.home.title;
---
<BaseLayout pageTitle={headerTitle}>
<h1>{pageTitle}</h1>
<h1 class="page-title">
<span>{pageTitle}</span>
<a
href={`${import.meta.env.SITE}/rss.xml`}
target="_blank"
rel="noopener noreferrer"
aria-label="RSS Feed"
class="rss-link"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="currentColor"
width="33"
height="33"
aria-hidden="true"
style="margin-left: -15px; margin-bottom: -5px; color:#3f50e5"
>
<path
d="M6.18 17.82a1.64 1.64 0 1 1 0 3.28 1.64 1.64 0 0 1 0-3.28ZM3 10.44v2.25c4.56 0 8.27 3.71 8.27 8.27h2.25C13.52 15.16 8.84 10.44 3 10.44Zm0-4.54v2.25c7.06 0 12.81 5.75 12.81 12.81h2.25C18.06 12.66 11.3 5.9 3 5.9Z"
></path>
</svg>
</a>
</h1>
<div class="content">
{t.home.content.map((line: string) => <p set:html={line} />)}
</div>