mirror of
https://github.com/ClovertaTheTrilobita/SanYeCao-blog.git
synced 2026-07-03 23:51:26 +00:00
Compare commits
No commits in common. "6b5f94754f3ed1c29c6305b462886e992fb0da37" and "2efdb72d42afa3eeaa6c39d89f1c4255b6d7b4c1" have entirely different histories.
6b5f94754f
...
2efdb72d42
6 changed files with 6 additions and 26 deletions
|
|
@ -20,7 +20,7 @@ const blocks: string[] = Array.from({ length: blockCount }, (_, i) => {
|
||||||
title={`Build ${safeHash}`}
|
title={`Build ${safeHash}`}
|
||||||
aria-label={`Build ${safeHash}`}
|
aria-label={`Build ${safeHash}`}
|
||||||
>
|
>
|
||||||
<div class="build-hint">$build.onCommit.hash =</div>
|
<div class="build-hint">Astro Build</div>
|
||||||
{
|
{
|
||||||
blocks.map((color: string) => (
|
blocks.map((color: string) => (
|
||||||
<span class="build-block" style={`background:${color}`} />
|
<span class="build-block" style={`background:${color}`} />
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,7 @@ export default {
|
||||||
content: [
|
content: [
|
||||||
"These few lines speak what the heart would say; Ink and paper end, but thoughts still stay",
|
"These few lines speak what the heart would say; Ink and paper end, but thoughts still stay",
|
||||||
"Welcome to Cloverta's blog.",
|
"Welcome to Cloverta's blog.",
|
||||||
],
|
]
|
||||||
latestTitle: "Latest Posts"
|
|
||||||
},
|
},
|
||||||
about: {
|
about: {
|
||||||
title: "About Me, and This Blog",
|
title: "About Me, and This Blog",
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,7 @@ export default {
|
||||||
content: [
|
content: [
|
||||||
"见字如晤,展信舒颜。楮墨有限,不尽欲言。",
|
"见字如晤,展信舒颜。楮墨有限,不尽欲言。",
|
||||||
"欢迎来到三叶的博客。",
|
"欢迎来到三叶的博客。",
|
||||||
],
|
]
|
||||||
latestTitle: "最新文章"
|
|
||||||
},
|
},
|
||||||
about: {
|
about: {
|
||||||
title: "关于我,和这个博客",
|
title: "关于我,和这个博客",
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,7 @@
|
||||||
import Footer from "@/components/Footer.astro";
|
import Footer from "@/components/Footer.astro";
|
||||||
import Header from "@/components/Header.astro";
|
import Header from "@/components/Header.astro";
|
||||||
import { ClientRouter } from "astro:transitions";
|
import { ClientRouter } from "astro:transitions";
|
||||||
import { fade } from "astro:transitions";
|
import { slide, fade } from "astro:transitions";
|
||||||
import { getLangFromUrl } from "@/i18n";
|
|
||||||
|
|
||||||
const lang = getLangFromUrl(Astro.url);
|
|
||||||
const htmlLang = lang === "zh" ? "zh-CN" : "en-US";
|
|
||||||
import SEO from "@/components/SEO.astro";
|
import SEO from "@/components/SEO.astro";
|
||||||
import FloatingActions from "@/components/FloatingActions.astro";
|
import FloatingActions from "@/components/FloatingActions.astro";
|
||||||
import Spinner from "@/components/Spinner.astro";
|
import Spinner from "@/components/Spinner.astro";
|
||||||
|
|
@ -19,7 +15,7 @@ const {
|
||||||
---
|
---
|
||||||
|
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang={htmlLang}>
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<ClientRouter />
|
<ClientRouter />
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
|
|
@ -27,12 +23,6 @@ const {
|
||||||
<SEO title={pageTitle} description={description} image={image} />
|
<SEO title={pageTitle} description={description} image={image} />
|
||||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||||
<link rel="icon" href="/favicon.ico" />
|
<link rel="icon" href="/favicon.ico" />
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
||||||
<link
|
|
||||||
href="https://fonts.googleapis.com/css2?family=Noto+Serif+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>
|
||||||
|
|
|
||||||
|
|
@ -47,8 +47,6 @@ const pageTitle = t.home.title;
|
||||||
|
|
||||||
<div class="section-divider"></div>
|
<div class="section-divider"></div>
|
||||||
|
|
||||||
<h2>{t.home.latestTitle}</h2>
|
|
||||||
|
|
||||||
<PostList />
|
<PostList />
|
||||||
|
|
||||||
<div class="section-divider"></div>
|
<div class="section-divider"></div>
|
||||||
|
|
|
||||||
|
|
@ -34,13 +34,7 @@ article svg[id^="mermaid-"] {
|
||||||
|
|
||||||
html {
|
html {
|
||||||
/* font-family: "Maple Mono", "Maple Mono CN", monospace; */
|
/* font-family: "Maple Mono", "Maple Mono CN", monospace; */
|
||||||
font-family:
|
font-family: 'Noto Serif SC', serif;
|
||||||
"Noto Serif SC",
|
|
||||||
"Source Han Serif SC",
|
|
||||||
"Songti SC",
|
|
||||||
"STSong",
|
|
||||||
"SimSun",
|
|
||||||
serif;
|
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
/* background-color: #ffffff; */
|
/* background-color: #ffffff; */
|
||||||
background-color: #F9F2ED;
|
background-color: #F9F2ED;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue