Compare commits

...

3 commits

Author SHA1 Message Date
9973a78d4a update title 2026-04-17 14:26:16 +03:00
8c4eae8a96 update font settings 2026-04-17 14:02:45 +03:00
cce78260c3 fix html lang and font 2026-04-17 13:42:26 +03:00
6 changed files with 26 additions and 6 deletions

View file

@ -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">Astro Build</div> <div class="build-hint">$build.onCommit.hash =</div>
{ {
blocks.map((color: string) => ( blocks.map((color: string) => (
<span class="build-block" style={`background:${color}`} /> <span class="build-block" style={`background:${color}`} />

View file

@ -25,7 +25,8 @@ 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",

View file

@ -25,7 +25,8 @@ export default {
content: [ content: [
"见字如晤,展信舒颜。楮墨有限,不尽欲言。", "见字如晤,展信舒颜。楮墨有限,不尽欲言。",
"欢迎来到三叶的博客。", "欢迎来到三叶的博客。",
] ],
latestTitle: "最新文章"
}, },
about: { about: {
title: "关于我,和这个博客", title: "关于我,和这个博客",

View file

@ -2,7 +2,11 @@
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 { 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 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";
@ -15,7 +19,7 @@ const {
--- ---
<!doctype html> <!doctype html>
<html lang="en"> <html lang={htmlLang}>
<head> <head>
<ClientRouter /> <ClientRouter />
<meta charset="UTF-8" /> <meta charset="UTF-8" />
@ -23,6 +27,12 @@ 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>

View file

@ -47,6 +47,8 @@ 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>

View file

@ -34,7 +34,13 @@ article svg[id^="mermaid-"] {
html { html {
/* font-family: "Maple Mono", "Maple Mono CN", monospace; */ /* 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; font-weight: 500;
/* background-color: #ffffff; */ /* background-color: #ffffff; */
background-color: #F9F2ED; background-color: #F9F2ED;