~repos /website
git clone
https://pyrossh.dev/repos/website.git
Discussions:
https://groups.google.com/g/rust-embed-devs
木 Personal website of pyrossh. Built with astrojs, shiki, vite.
1c1b2379
—
pyrossh 3 months ago
remove Font
- astro.config.mjs +1 -6
- src/layouts/Base.astro +0 -2
astro.config.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @ts-check
|
|
2
|
-
import { defineConfig
|
|
2
|
+
import { defineConfig } from 'astro/config';
|
|
3
3
|
import icon from "astro-icon";
|
|
4
4
|
import mdx from '@astrojs/mdx';
|
|
5
5
|
import sitemap from '@astrojs/sitemap';
|
|
@@ -16,10 +16,5 @@ export default defineConfig({
|
|
|
16
16
|
],
|
|
17
17
|
experimental: {
|
|
18
18
|
// csp: true,
|
|
19
|
-
fonts: [{
|
|
20
|
-
provider: fontProviders.google(),
|
|
21
|
-
name: "Roboto",
|
|
22
|
-
cssVariable: "--font-roboto"
|
|
23
|
-
}]
|
|
24
19
|
},
|
|
25
20
|
});
|
src/layouts/Base.astro
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
import "./Base.css"; // Note: This has to be first always
|
|
3
3
|
import { ClientRouter } from "astro:transitions";
|
|
4
|
-
import { Font } from "astro:assets";
|
|
5
4
|
import ResetCSS from "@appzic/astro-reset-css";
|
|
6
5
|
import Header from "@/components/Header.astro";
|
|
7
6
|
import Footer from "@/components/Footer.astro";
|
|
@@ -55,7 +54,6 @@ const image = "/favicon.png";
|
|
|
55
54
|
<meta property="twitter:title" content={title} />
|
|
56
55
|
<meta property="twitter:description" content={description} />
|
|
57
56
|
<meta property="twitter:image" content={new URL(image, Astro.url)} />
|
|
58
|
-
<Font cssVariable="--font-roboto" preload />
|
|
59
57
|
<ResetCSS />
|
|
60
58
|
<ClientRouter />
|
|
61
59
|
</head>
|