feat: fix typo.
This commit is contained in:
parent
289c033736
commit
e152e90a5a
@ -208,7 +208,7 @@ They are the fonts that can be used in business without any charge.
|
||||
|
||||
The [OPPOSans 3.0](https://www.coloros.com/article/A00000050) is used for reading in my weblog.
|
||||
It can be used in business scenarios without any modification.
|
||||
I just placed it under the [opposans](src/asserts/styles/opposans/) directory for better integration.
|
||||
I just placed it under the [opposans](src/assets/styles/opposans/) directory for better integration.
|
||||
The license file is [here](licenses/LICENSE.oppo-sans.txt)
|
||||
|
||||
### Open Graph Font License
|
||||
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 53 KiB After Width: | Height: | Size: 53 KiB |
@ -9,8 +9,8 @@ import { options } from '@/helpers/schema';
|
||||
import { Canvas, GlobalFonts, Image, type SKRSContext2D } from '@napi-rs/canvas';
|
||||
import { readFile } from 'node:fs/promises';
|
||||
import { join } from 'node:path';
|
||||
import font from '../asserts/og/NotoSansSC-Bold.ttf?arraybuffer';
|
||||
import logoDark from '../asserts/og/logo-dark.png?arraybuffer';
|
||||
import font from '../assets/og/NotoSansSC-Bold.ttf?arraybuffer';
|
||||
import logoDark from '../assets/og/logo-dark.png?arraybuffer';
|
||||
|
||||
const getStringWidth = (text: string, fontSize: number) => {
|
||||
let result = 0;
|
||||
@ -114,7 +114,7 @@ const fetchCover = async (cover: string): Promise<Buffer> => {
|
||||
return await readFile(coverPath);
|
||||
};
|
||||
|
||||
export { default as defaultOpenGraph } from '../asserts/og/open-graph.png?arraybuffer';
|
||||
export { default as defaultOpenGraph } from '../assets/og/open-graph.png?arraybuffer';
|
||||
|
||||
export interface OpenGraphProps {
|
||||
title: string;
|
||||
|
@ -1,10 +1,10 @@
|
||||
---
|
||||
// tslint:disable:ordered-imports
|
||||
import 'bootstrap/dist/css/bootstrap.min.css';
|
||||
import '@/asserts/styles/opposans/opposans.css';
|
||||
import '@/asserts/styles/iconfont/iconfont.css';
|
||||
import '@/asserts/styles/reset.css';
|
||||
import '@/asserts/styles/globals.css';
|
||||
import '@/assets/styles/opposans/opposans.css';
|
||||
import '@/assets/styles/iconfont/iconfont.css';
|
||||
import '@/assets/styles/reset.css';
|
||||
import '@/assets/styles/globals.css';
|
||||
|
||||
import Footer from '@/components/footer/Footer.astro';
|
||||
import GoTop from '@/components/footer/GoTop.astro';
|
||||
@ -57,7 +57,7 @@ const description = Astro.props.description || options.description;
|
||||
<GoTop />
|
||||
</div>
|
||||
<script>
|
||||
import '../asserts/scripts/yufan.me.js';
|
||||
import '../assets/scripts/yufan.me.js';
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user