Skip to content

Commit 2199238

Browse files
committed
设置标题字体
1 parent 530be4e commit 2199238

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

packages/pure/components/basic/Header.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { Icon } from '../user'
99
>
1010
<a
1111
class='z-30 text-xl font-semibold group-[.not-top]:ms-2 sm:group-[.not-top]:ms-3'
12-
style='transition:margin-inline 0.3s'
12+
style='transition:margin-inline 0.3s; font-family: "ZSFT-e";'
1313
href='/'
1414
aria-label='Brand'>{config.title}</a
1515
>

public/styles/global.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ body {
55
font-weight: normal;
66
}
77

8+
@font-face {
9+
font-family: "ZSFT-e";
10+
src: url("https://fontsapi.zeoseven.com/e/main.woff2") format("woff2"),
11+
url("https://fontsapi-storage.zeoseven.com/e/main.woff2") format("woff2");
12+
font-display: swap;
13+
}
14+
15+
816
/* Animation */
917
@keyframes fade-in-up {
1018
0% {

src/site.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import type { CardListData } from 'astro-pure/types';
44
export const theme: ThemeUserConfig = {
55
// === Basic configuration ===
66
/** Title for your website. Will be used in metadata and as browser tab title. */
7-
title: "CCM'blog",
7+
title: "CCM",
88
/** Will be used in index page & copyright declaration */
9-
author: 'CCM',
9+
author: 'catcodeme',
1010
/** Description metadata for your website. Can be used in page metadata. */
1111
description: '记录生活的碎片,有时停下笔挠挠猫下巴',
1212
/** The default favicon for your site which should be a path to an image in the `public/` directory. */

0 commit comments

Comments
 (0)