vendor fonts
This commit is contained in:
parent
840db1987e
commit
92be5076c3
6 changed files with 18 additions and 15 deletions
|
@ -1,4 +1,7 @@
|
|||
---
|
||||
import "@styles/global.css";
|
||||
import "@fontsource-variable/rubik";
|
||||
|
||||
interface Props {
|
||||
title: string;
|
||||
description: string;
|
||||
|
@ -7,6 +10,11 @@ interface Props {
|
|||
const { title, description } = Astro.props;
|
||||
---
|
||||
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
<link rel="canonical" href={Astro.url} />
|
||||
|
||||
<title>{title}</title>
|
||||
<meta name="description" content={description} />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
|
@ -26,7 +34,3 @@ const { title, description } = Astro.props;
|
|||
<meta name="twitter:title" content={title} />
|
||||
<meta name="twitter:description" content={description} />
|
||||
<!-- <meta name="twitter:image" content={image} /> -->
|
||||
<!-- Font -->
|
||||
<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=Rubik:ital,wght@0,300..900;1,300..900&display=swap" rel="stylesheet"/>
|
||||
|
|
|
@ -3,7 +3,6 @@ import Header from "@components/Header.astro";
|
|||
import Footer from "@src/components/Footer.astro";
|
||||
import Head from "@config/Head.astro";
|
||||
import PreTheme from "@config/PreTheme.astro";
|
||||
import "@styles/global.css";
|
||||
|
||||
interface Props {
|
||||
title: string;
|
||||
|
@ -15,11 +14,7 @@ const { title, description } = Astro.props;
|
|||
|
||||
<html lang="en" class="dark">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
<Head description={description} title={title} />
|
||||
<link rel="canonical" href={Astro.url} />
|
||||
<PreTheme />
|
||||
</head>
|
||||
<body class="baselayout">
|
||||
|
|
|
@ -7,7 +7,6 @@ import PreTheme from "@config/PreTheme.astro";
|
|||
import Header from "@components/Header.astro";
|
||||
import Head from "@config/Head.astro";
|
||||
import Nav from "@components/navigation/sidebars/Nav.astro";
|
||||
import "@styles/global.css";
|
||||
import type { ConfigHeading } from "@src/components/navigation/sidebars/types";
|
||||
import Footer from "@src/components/Footer.astro";
|
||||
|
||||
|
@ -55,11 +54,7 @@ if (url[2]) {
|
|||
|
||||
<html lang="en" class="dark">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
<Head description={description} title={title} />
|
||||
<link rel="canonical" href={Astro.url} />
|
||||
<PreTheme />
|
||||
<CreateCopyButtons />
|
||||
</head>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
html {
|
||||
font-family: "Rubik", Inter, system-ui, Avenir, Helvetica, Arial,
|
||||
font-family: "Rubik Variable", Inter, system-ui, Avenir, Helvetica, Arial,
|
||||
sans-serif;
|
||||
font-size: 14px;
|
||||
line-height: 1.272;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue