Skip to content

Commit

Permalink
revise: prefetch fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
claymcleod committed Jan 29, 2025
1 parent ed4944e commit 0a44fa8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
16 changes: 15 additions & 1 deletion .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,21 @@ export default defineConfig({
appearance: "force-dark",
base: "/",
ignoreDeadLinks: ["./LICENSE"],
head: [["link", { rel: "icon", href: "/favicon.ico" }]],
head: [
["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=Martian+Mono:[email protected]&family=Public+Sans:ital,wght@0,100..900;1,100..900&display=swap",
rel: "stylesheet",
},
],
],
themeConfig: {
/**
* Logo and site title.
Expand Down
2 changes: 0 additions & 2 deletions .vitepress/theme/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
* https://github.com/vuejs/vitepress/blob/main/src/client/theme-default/styles/vars.css
*/

@import url('https://fonts.googleapis.com/css2?family=Martian+Mono:[email protected]&family=Public+Sans:ital,wght@0,100..900;1,100..900&display=swap');

/**
* Colors
*
Expand Down

0 comments on commit 0a44fa8

Please sign in to comment.