mirror of
https://github.com/ClovertaTheTrilobita/SanYeCao-blog.git
synced 2026-07-03 23:51:26 +00:00
Compare commits
No commits in common. "ced7f8c860f51f5bf1510a89944c74aa811fb45c" and "6b5f94754f3ed1c29c6305b462886e992fb0da37" have entirely different histories.
ced7f8c860
...
6b5f94754f
7 changed files with 0 additions and 154 deletions
6
.github/workflows/deploy-blog.yml
vendored
6
.github/workflows/deploy-blog.yml
vendored
|
|
@ -46,9 +46,6 @@ jobs:
|
||||||
needs: sync-blog-content
|
needs: sync-blog-content
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment:
|
|
||||||
name: production
|
|
||||||
url: https://blog.cloverta.top
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DEPLOY_HOST: ${{ vars.DEPLOY_HOST }}
|
DEPLOY_HOST: ${{ vars.DEPLOY_HOST }}
|
||||||
|
|
@ -108,9 +105,6 @@ jobs:
|
||||||
manual-deploy:
|
manual-deploy:
|
||||||
if: github.event_name == 'workflow_dispatch'
|
if: github.event_name == 'workflow_dispatch'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment:
|
|
||||||
name: production
|
|
||||||
url: https://blog.cloverta.top
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DEPLOY_HOST: ${{ vars.DEPLOY_HOST }}
|
DEPLOY_HOST: ${{ vars.DEPLOY_HOST }}
|
||||||
|
|
|
||||||
|
|
@ -23,8 +23,6 @@ const links = await getCollection("friends");
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.friendly-link-list {
|
.friendly-link-list {
|
||||||
max-width: 770px;
|
|
||||||
margin: 0 auto;
|
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
|
|
|
||||||
|
|
@ -1,108 +0,0 @@
|
||||||
---
|
|
||||||
import { getLangFromUrl, getTranslations } from "@/i18n";
|
|
||||||
import "@/styles/global.css";
|
|
||||||
|
|
||||||
const lang = getLangFromUrl(Astro.url);
|
|
||||||
const t = getTranslations(lang);
|
|
||||||
---
|
|
||||||
|
|
||||||
<div class="description">
|
|
||||||
<div class="image-wrap">
|
|
||||||
<img
|
|
||||||
src="https://files.seeusercontent.com/2026/04/17/nOg4/7tx5GS3nAtOXM577XE9VOe0LUU8.webp"
|
|
||||||
alt="nichijo.webp"
|
|
||||||
/>
|
|
||||||
<p class="caption">{t.friends.imgDesc}</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h1>{t.friends.title}</h1>
|
|
||||||
<div class="content">
|
|
||||||
{t.friends.content.map((line: string) => <p set:html={line} />)}
|
|
||||||
</div>
|
|
||||||
<div class="friend-code-block">
|
|
||||||
<pre><code>---
|
|
||||||
name: 'CLoverta的博客'
|
|
||||||
description: "欢迎光临,请进门左转"
|
|
||||||
url: "https://blog.cloverta.top"
|
|
||||||
avatar: 'https://s2.loli.net/2025/11/22/tiDKuzdqycx1v9B.png'
|
|
||||||
---</code></pre>
|
|
||||||
</div>
|
|
||||||
<!-- <div class="player">
|
|
||||||
<iframe
|
|
||||||
data-testid="embed-iframe"
|
|
||||||
style="border-radius:2px"
|
|
||||||
src="https://open.spotify.com/embed/track/2vuSiplO7RnGkoyw2gH96M?utm_source=generator"
|
|
||||||
width="450px"
|
|
||||||
height="80"
|
|
||||||
frameborder="0"
|
|
||||||
allowfullscreen=""
|
|
||||||
allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture"
|
|
||||||
loading="lazy"></iframe>
|
|
||||||
</div> -->
|
|
||||||
</div>
|
|
||||||
<style>
|
|
||||||
.player {
|
|
||||||
margin-top: 1.5rem;
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.content p {
|
|
||||||
line-height: 1.8;
|
|
||||||
margin: 1rem 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.description {
|
|
||||||
max-width: 800px;
|
|
||||||
margin: 0 auto;
|
|
||||||
padding: 2rem 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.friend-code-block {
|
|
||||||
background: #fbf5f2;
|
|
||||||
border: 1px solid #8fa1ad;
|
|
||||||
border-radius: 3px;
|
|
||||||
padding: 0rem;
|
|
||||||
overflow-x: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.friend-code-block pre {
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.friend-code-block code {
|
|
||||||
font-family: monospace;
|
|
||||||
white-space: pre;
|
|
||||||
}
|
|
||||||
|
|
||||||
.image-wrap {
|
|
||||||
width: fit-content;
|
|
||||||
margin: 0 auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.image-wrap img {
|
|
||||||
width: calc((3.8em * 4) * 16 / 5);
|
|
||||||
height: calc(3.4em * 4);
|
|
||||||
aspect-ratio: 16 / 5;
|
|
||||||
object-fit: cover;
|
|
||||||
object-position: center;
|
|
||||||
display: block;
|
|
||||||
margin: 0 auto;
|
|
||||||
border: 2px dashed gray;
|
|
||||||
filter: sepia(0.3) saturate(1.08) hue-rotate(-12deg) brightness(0.97);
|
|
||||||
}
|
|
||||||
|
|
||||||
.image-wrap .caption {
|
|
||||||
margin-top: 0.3rem;
|
|
||||||
text-align: right;
|
|
||||||
color: #888;
|
|
||||||
font-style: italic;
|
|
||||||
font-size: 0.9rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
|
||||||
.description img {
|
|
||||||
height: calc(2.6em * 4);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
@ -42,7 +42,6 @@ export default {
|
||||||
"The design of this blog was inspired by:",
|
"The design of this blog was inspired by:",
|
||||||
'· <a href="https://ex-tasty.com/">極限風味</a>',
|
'· <a href="https://ex-tasty.com/">極限風味</a>',
|
||||||
'· <a href="https://blog.cloudti.de/">Parsifal\'s Blog</a>',
|
'· <a href="https://blog.cloudti.de/">Parsifal\'s Blog</a>',
|
||||||
'· <a href="https://www.kokosa.icu/">Kokosa\'s Notebook</a>',
|
|
||||||
"· And some other websites whose names I have unfortunately forgotten",
|
"· And some other websites whose names I have unfortunately forgotten",
|
||||||
"Thank you for your ideas and passion!",
|
"Thank you for your ideas and passion!",
|
||||||
"In addition, this blog is open source under MIT License. You can find its source code through the link in the footer.",
|
"In addition, this blog is open source under MIT License. You can find its source code through the link in the footer.",
|
||||||
|
|
@ -55,15 +54,5 @@ export default {
|
||||||
footer: {
|
footer: {
|
||||||
githubIntro: 'See more on <a href="https://github.com/ClovertaTheTrilobita">Github</a>!',
|
githubIntro: 'See more on <a href="https://github.com/ClovertaTheTrilobita">Github</a>!',
|
||||||
repoIntro: 'This blog is fully open source at <a href="https://github.com/ClovertaTheTrilobita/SanYeCao-blog">ClovertaTheTrilobita/SanYeCao-blog</a>'
|
repoIntro: 'This blog is fully open source at <a href="https://github.com/ClovertaTheTrilobita/SanYeCao-blog">ClovertaTheTrilobita/SanYeCao-blog</a>'
|
||||||
},
|
|
||||||
friends: {
|
|
||||||
title: "Friends",
|
|
||||||
content: [
|
|
||||||
"Thank you for making it this far.",
|
|
||||||
"These are my friends, and you're very welcome to exchange links with me too!",
|
|
||||||
'You can send your link information to <a href="mailto:cloverta@petalmail.com">my email</a>.',
|
|
||||||
"The format is as follows:"
|
|
||||||
],
|
|
||||||
imgDesc: "Our everyday lives may, in fact, be a series of miracles."
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
@ -42,7 +42,6 @@ export default {
|
||||||
"这个博客在设计理念上参考了:",
|
"这个博客在设计理念上参考了:",
|
||||||
'· <a href="https://ex-tasty.com/">極限風味</a>',
|
'· <a href="https://ex-tasty.com/">極限風味</a>',
|
||||||
'· <a href="https://blog.cloudti.de/">Parsifal\'s Blog</a>',
|
'· <a href="https://blog.cloudti.de/">Parsifal\'s Blog</a>',
|
||||||
'· <a href="https://www.kokosa.icu/">Kokosa\'s Notebook</a>',
|
|
||||||
"· 还有一些已经忘记名字的网站",
|
"· 还有一些已经忘记名字的网站",
|
||||||
"谢谢你们的想法和热情!",
|
"谢谢你们的想法和热情!",
|
||||||
"此外,这个博客的源码使用 MIT 协议开源,你可以从页脚的链接处获取它的源代码。",
|
"此外,这个博客的源码使用 MIT 协议开源,你可以从页脚的链接处获取它的源代码。",
|
||||||
|
|
@ -55,15 +54,5 @@ export default {
|
||||||
footer: {
|
footer: {
|
||||||
githubIntro: '在 <a href="https://github.com/ClovertaTheTrilobita">Github</a> 查看更多!',
|
githubIntro: '在 <a href="https://github.com/ClovertaTheTrilobita">Github</a> 查看更多!',
|
||||||
repoIntro: '这个博客完全开源于 <a href="https://github.com/ClovertaTheTrilobita/SanYeCao-blog">ClovertaTheTrilobita/SanYeCao-blog</a>'
|
repoIntro: '这个博客完全开源于 <a href="https://github.com/ClovertaTheTrilobita/SanYeCao-blog">ClovertaTheTrilobita/SanYeCao-blog</a>'
|
||||||
},
|
|
||||||
friends: {
|
|
||||||
title: "友链",
|
|
||||||
content: [
|
|
||||||
"感谢你能看到这里。",
|
|
||||||
"这里是我的朋友们,也非常欢迎你来一起交换友链!",
|
|
||||||
'你可以把友链信息发送到<a href="mailto:cloverta@petalmail.com">我的邮箱</a>。',
|
|
||||||
"友链的格式如下:"
|
|
||||||
],
|
|
||||||
imgDesc: "——我们日复一日度过的日常,也许就是接连发生的奇迹"
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
@ -33,10 +33,6 @@ const {
|
||||||
href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;700&display=swap"
|
href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;700&display=swap"
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
/>
|
/>
|
||||||
<link
|
|
||||||
href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap"
|
|
||||||
rel="stylesheet"
|
|
||||||
/>
|
|
||||||
<meta name="generator" content={Astro.generator} />
|
<meta name="generator" content={Astro.generator} />
|
||||||
<title>{pageTitle}</title>
|
<title>{pageTitle}</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
---
|
---
|
||||||
import BaseLayout from "@/layouts/BaseLayout.astro";
|
import BaseLayout from "@/layouts/BaseLayout.astro";
|
||||||
import FriendlyLinkList from "@/components/FriendlyLinks/FriendlyLinkList.astro";
|
import FriendlyLinkList from "@/components/FriendlyLinks/FriendlyLinkList.astro";
|
||||||
import FriendsDescription from "@/components/FriendlyLinks/FriendsDescription.astro";
|
|
||||||
import { getLangFromUrl, getTranslations } from "@/i18n";
|
import { getLangFromUrl, getTranslations } from "@/i18n";
|
||||||
import "@/styles/global.css";
|
import "@/styles/global.css";
|
||||||
|
|
||||||
|
|
@ -15,16 +14,5 @@ const headerTitle = lang === "zh" ? "友情链接" : "Friends";
|
||||||
---
|
---
|
||||||
|
|
||||||
<BaseLayout pageTitle=`${headerTitle} - ${t.banner.title}`>
|
<BaseLayout pageTitle=`${headerTitle} - ${t.banner.title}`>
|
||||||
<FriendsDescription />
|
|
||||||
<div class="section-divider"></div>
|
|
||||||
<FriendlyLinkList />
|
<FriendlyLinkList />
|
||||||
</BaseLayout>
|
</BaseLayout>
|
||||||
|
|
||||||
<style>
|
|
||||||
.section-divider {
|
|
||||||
height: 1px;
|
|
||||||
background: #cdd2d8;
|
|
||||||
margin: 1.5rem 0;
|
|
||||||
opacity: 0.8;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue