Update www site (#1775)
* Remove snowpack.config.js * Update reference to global.scss * Add support for local fonts, otherwise load only woff2 fonts * Update reference to error.scss * Update reference to blog.scss * Change `config.js` to `config.ts` with Vite change Co-authored-by: jasikpark <calebjasik@jasik.xyz>
This commit is contained in:
parent
8d7ddeaa1b
commit
48bad7bdc0
18 changed files with 16 additions and 24 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,3 +0,0 @@
|
||||||
module.exports = {
|
|
||||||
workspaceRoot: '../',
|
|
||||||
};
|
|
|
@ -4,4 +4,4 @@ import BaseHead from './BaseHead.astro';
|
||||||
const { title, description, image, canonicalURL } = Astro.props;
|
const { title, description, image, canonicalURL } = Astro.props;
|
||||||
---
|
---
|
||||||
<BaseHead title={title} description={description} image={image} canonicalURL={canonicalURL} />
|
<BaseHead title={title} description={description} image={image} canonicalURL={canonicalURL} />
|
||||||
<link rel="stylesheet" href={Astro.resolve('../scss/blog.css')} />
|
<link rel="stylesheet" href={Astro.resolve('../scss/blog.scss')} />
|
|
@ -1,7 +1,7 @@
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<title>Astro | Page Not Found</title>
|
<title>Astro | Page Not Found</title>
|
||||||
<link rel="stylesheet" href={Astro.resolve('../scss/error.css')} />
|
<link rel="stylesheet" href={Astro.resolve('../scss/error.scss')} />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<section class="error-content">
|
<section class="error-content">
|
||||||
|
|
|
@ -7,7 +7,7 @@ import BlockQuote from '../../components/BlockQuote.astro';
|
||||||
import GoogleAnalytics from '../../components/GoogleAnalytics.astro';
|
import GoogleAnalytics from '../../components/GoogleAnalytics.astro';
|
||||||
import Note from '../../components/Note.astro';
|
import Note from '../../components/Note.astro';
|
||||||
import Shell from '../../components/Shell.astro';
|
import Shell from '../../components/Shell.astro';
|
||||||
import { mediaQueries } from '../../config.js';
|
import { mediaQueries } from '../../config.ts';
|
||||||
|
|
||||||
let title = 'Astro 0.18 Release';
|
let title = 'Astro 0.18 Release';
|
||||||
let description = `Introducing: Responsive partial hydration • Solid.js support • Lit SSR support • Named slots • Global style support • and more!`;
|
let description = `Introducing: Responsive partial hydration • Solid.js support • Lit SSR support • Named slots • Global style support • and more!`;
|
||||||
|
|
|
@ -7,7 +7,7 @@ import BlockQuote from '../../components/BlockQuote.astro';
|
||||||
import GoogleAnalytics from '../../components/GoogleAnalytics.astro';
|
import GoogleAnalytics from '../../components/GoogleAnalytics.astro';
|
||||||
import Note from '../../components/Note.astro';
|
import Note from '../../components/Note.astro';
|
||||||
import Shell from '../../components/Shell.astro';
|
import Shell from '../../components/Shell.astro';
|
||||||
import { mediaQueries } from '../../config.js';
|
import { mediaQueries } from '../../config.ts';
|
||||||
|
|
||||||
let title = 'Astro 0.19';
|
let title = 'Astro 0.19';
|
||||||
let description = `Introducing: Next.js-inspired dynamic routing • Astro.resolve() • client:only components • translations • and more!`;
|
let description = `Introducing: Next.js-inspired dynamic routing • Astro.resolve() • client:only components • translations • and more!`;
|
||||||
|
|
|
@ -15,7 +15,7 @@ let lang = 'en';
|
||||||
<html lang={ lang ?? 'en' }>
|
<html lang={ lang ?? 'en' }>
|
||||||
<head>
|
<head>
|
||||||
<BaseHead title={title} description={description} canonicalURL={permalink} image="https://astro.build/assets/blog/astro-021-preview/social.png" />
|
<BaseHead title={title} description={description} canonicalURL={permalink} image="https://astro.build/assets/blog/astro-021-preview/social.png" />
|
||||||
<link rel="stylesheet" href={Astro.resolve('../../scss/blog.css')} />
|
<link rel="stylesheet" href={Astro.resolve('../../scss/blog.scss')} />
|
||||||
<style>
|
<style>
|
||||||
.chat-messages {
|
.chat-messages {
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ let lang = 'en';
|
||||||
<html lang={ lang ?? 'en' }>
|
<html lang={ lang ?? 'en' }>
|
||||||
<head>
|
<head>
|
||||||
<BaseHead title={title} description={description} canonicalURL={permalink} image="https://astro.build/assets/blog/astro-repl/astro-repl-social.jpg" />
|
<BaseHead title={title} description={description} canonicalURL={permalink} image="https://astro.build/assets/blog/astro-repl/astro-repl-social.jpg" />
|
||||||
<link rel="stylesheet" href={Astro.resolve('../../scss/blog.css')} />
|
<link rel="stylesheet" href={Astro.resolve('../../scss/blog.scss')} />
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
|
@ -14,7 +14,7 @@ let lang = 'en';
|
||||||
<html lang={ lang ?? 'en' }>
|
<html lang={ lang ?? 'en' }>
|
||||||
<head>
|
<head>
|
||||||
<BaseHead title={title} description={description} canonicalURL={permalink} image="https://astro.build/assets/blog/demo-day-2021-09/social.png" />
|
<BaseHead title={title} description={description} canonicalURL={permalink} image="https://astro.build/assets/blog/demo-day-2021-09/social.png" />
|
||||||
<link rel="stylesheet" href={Astro.resolve('../../scss/blog.css')} />
|
<link rel="stylesheet" href={Astro.resolve('../../scss/blog.scss')} />
|
||||||
<style>
|
<style>
|
||||||
.chat-messages {
|
.chat-messages {
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ let lang = 'en';
|
||||||
<html lang={ lang ?? 'en' }>
|
<html lang={ lang ?? 'en' }>
|
||||||
<head>
|
<head>
|
||||||
<BaseHead title={title} description={description} canonicalURL={permalink} />
|
<BaseHead title={title} description={description} canonicalURL={permalink} />
|
||||||
<link rel="stylesheet" href={Astro.resolve('../../scss/blog.css')} />
|
<link rel="stylesheet" href={Astro.resolve('../../scss/blog.scss')} />
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
|
|
|
@ -19,7 +19,7 @@ let lang = 'en';
|
||||||
<html lang={ lang ?? 'en' }>
|
<html lang={ lang ?? 'en' }>
|
||||||
<head>
|
<head>
|
||||||
<BaseHead title={title} description={description} canonicalURL={permalink} />
|
<BaseHead title={title} description={description} canonicalURL={permalink} />
|
||||||
<link rel="stylesheet" href={Astro.resolve('../../scss/blog.css')} />
|
<link rel="stylesheet" href={Astro.resolve('../../scss/blog.scss')} />
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
|
@ -7,7 +7,7 @@ import BlockQuote from '../../components/BlockQuote.astro';
|
||||||
import GoogleAnalytics from '../../components/GoogleAnalytics.astro';
|
import GoogleAnalytics from '../../components/GoogleAnalytics.astro';
|
||||||
import Note from '../../components/Note.astro';
|
import Note from '../../components/Note.astro';
|
||||||
import Shell from '../../components/Shell.astro';
|
import Shell from '../../components/Shell.astro';
|
||||||
import { mediaQueries } from '../../config.js';
|
import { mediaQueries } from '../../config.ts';
|
||||||
|
|
||||||
let title = "Netlify Becomes Astro's Official Hosting Partner";
|
let title = "Netlify Becomes Astro's Official Hosting Partner";
|
||||||
let description = `We are happy to announce that Netlify has become Astro’s first corporate sponsor and exclusive hosting partner, donating $2,500 each month towards the ongoing open source maintenance and development of Astro.`;
|
let description = `We are happy to announce that Netlify has become Astro’s first corporate sponsor and exclusive hosting partner, donating $2,500 each month towards the ongoing open source maintenance and development of Astro.`;
|
||||||
|
|
|
@ -19,7 +19,7 @@ let lang = 'en';
|
||||||
<html lang={ lang ?? 'en' }>
|
<html lang={ lang ?? 'en' }>
|
||||||
<head>
|
<head>
|
||||||
<BaseHead title={title} description={description} canonicalURL={permalink} />
|
<BaseHead title={title} description={description} canonicalURL={permalink} />
|
||||||
<link rel="stylesheet" href={Astro.resolve('../scss/global.css')} />
|
<link rel="stylesheet" href={Astro.resolve('../scss/global.scss')} />
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
|
@ -3,8 +3,7 @@
|
||||||
font-family: 'IBM Plex Sans';
|
font-family: 'IBM Plex Sans';
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
src: local(''), url('/assets/fonts/ibm-plex-sans/ibm-plex-sans-v9-latin-regular.woff2') format('woff2'),
|
src: local('IBM Plex Sans'), url('/assets/fonts/ibm-plex-sans/ibm-plex-sans-v9-latin-regular.woff2') format('woff2');
|
||||||
/* Chrome 26+, Opera 23+, Firefox 39+ */ url('/assets/fonts/ibm-plex-sans/ibm-plex-sans-v9-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ibm-plex-sans-600 - latin */
|
/* ibm-plex-sans-600 - latin */
|
||||||
|
@ -12,8 +11,7 @@
|
||||||
font-family: 'IBM Plex Sans';
|
font-family: 'IBM Plex Sans';
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
src: local(''), url('/assets/fonts/ibm-plex-sans/ibm-plex-sans-v9-latin-600.woff2') format('woff2'),
|
src: local('IBM Plex Sans Medium'), url('/assets/fonts/ibm-plex-sans/ibm-plex-sans-v9-latin-600.woff2') format('woff2');
|
||||||
/* Chrome 26+, Opera 23+, Firefox 39+ */ url('/assets/fonts/ibm-plex-sans/ibm-plex-sans-v9-latin-600.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ibm-plex-sans-700 - latin */
|
/* ibm-plex-sans-700 - latin */
|
||||||
|
@ -21,8 +19,7 @@
|
||||||
font-family: 'IBM Plex Sans';
|
font-family: 'IBM Plex Sans';
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
src: local(''), url('/assets/fonts/ibm-plex-sans/ibm-plex-sans-v9-latin-700.woff2') format('woff2'),
|
src: local('IBM Plex Sans Bold'), url('/assets/fonts/ibm-plex-sans/ibm-plex-sans-v9-latin-700.woff2') format('woff2');
|
||||||
/* Chrome 26+, Opera 23+, Firefox 39+ */ url('/assets/fonts/ibm-plex-sans/ibm-plex-sans-v9-latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ibm-plex-mono-regular - latin */
|
/* ibm-plex-mono-regular - latin */
|
||||||
|
@ -30,8 +27,7 @@
|
||||||
font-family: 'IBM Plex Mono';
|
font-family: 'IBM Plex Mono';
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
src: local(''), url('/assets/fonts/ibm-plex-mono/ibm-plex-mono-v7-latin-regular.woff2') format('woff2'),
|
src: local('IBM Plex Mono Regular'), url('/assets/fonts/ibm-plex-mono/ibm-plex-mono-v7-latin-regular.woff2') format('woff2');
|
||||||
/* Chrome 26+, Opera 23+, Firefox 39+ */ url('/assets/fonts/ibm-plex-mono/ibm-plex-mono-v7-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ibm-plex-mono-700 - latin */
|
/* ibm-plex-mono-700 - latin */
|
||||||
|
@ -39,6 +35,5 @@
|
||||||
font-family: 'IBM Plex Mono';
|
font-family: 'IBM Plex Mono';
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
src: local(''), url('/assets/fonts/ibm-plex-mono/ibm-plex-mono-v7-latin-700.woff2') format('woff2'),
|
src: local('IBM Plex Mono Bold'), url('/assets/fonts/ibm-plex-mono/ibm-plex-mono-v7-latin-700.woff2') format('woff2');
|
||||||
/* Chrome 26+, Opera 23+, Firefox 39+ */ url('/assets/fonts/ibm-plex-mono/ibm-plex-mono-v7-latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue