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