Merge branch 'improve-lighthouse'
This commit is contained in:
commit
783db7b3a0
30 changed files with 37 additions and 31 deletions
|
@ -6,7 +6,7 @@ import authorData from '../data/authors.json';
|
|||
const { content } = Astro.props;
|
||||
---
|
||||
|
||||
<html>
|
||||
<html lang={ content.lang ?? 'en' }>
|
||||
<head>
|
||||
<title>{content.title}</title>
|
||||
<MainHead title={content.title} description={content.description} image={content.image} canonicalURL={Astro.request.canonicalURL} />
|
||||
|
|
|
@ -45,7 +45,7 @@ export async function createCollection() {
|
|||
const author = authorData[collection.params.author];
|
||||
---
|
||||
|
||||
<html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>{title}</title>
|
||||
<MainHead
|
||||
|
|
|
@ -38,7 +38,7 @@ export async function createCollection() {
|
|||
}
|
||||
---
|
||||
|
||||
<html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>{title}</title>
|
||||
<MainHead
|
||||
|
|
|
@ -4,7 +4,7 @@ import Nav from '../components/Nav.astro';
|
|||
|
||||
let title = "About";
|
||||
---
|
||||
<html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<MainHead
|
||||
title={title}
|
||||
|
|
|
@ -21,7 +21,7 @@ let firstPage = allPosts.slice(0, 2);
|
|||
// Full Astro Component Syntax:
|
||||
// https://github.com/snowpackjs/astro/blob/main/docs/core-concepts/astro-components.md
|
||||
---
|
||||
<html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>{title}</title>
|
||||
<MainHead
|
||||
|
|
|
@ -7,7 +7,7 @@ import BlogPost from '../components/BlogPost.astro';
|
|||
const {content} = Astro.props;
|
||||
const {title, description, publishDate, author, heroImage, permalink} = content;
|
||||
---
|
||||
<html>
|
||||
<html lang={ content.lang ?? 'en' }>
|
||||
<head>
|
||||
<BaseHead title={title} description={description} permalink={permalink} />
|
||||
<link rel="stylesheet" href="/blog.css" />
|
||||
|
|
|
@ -19,7 +19,7 @@ allPosts = allPosts.sort((a, b) => new Date(b.publishDate) - new Date(a.publishD
|
|||
// Full Astro Component Syntax:
|
||||
// https://github.com/snowpackjs/astro/blob/main/docs/core-concepts/astro-components.md
|
||||
---
|
||||
<html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<BaseHead title={title} description={description} permalink={permalink} />
|
||||
<link rel="stylesheet" href="/blog.css" />
|
||||
|
|
|
@ -18,7 +18,7 @@ const githubEditUrl = `https://github.com/USER/REPO/blob/main/${currentFile}`
|
|||
// Full Astro Component Syntax:
|
||||
// https://github.com/snowpackjs/astro/blob/main/docs/core-concepts/astro-components.md
|
||||
---
|
||||
<html>
|
||||
<html lang={ content.lang ?? 'en' }>
|
||||
<head>
|
||||
<title>{content.title}</title>
|
||||
|
||||
|
|
|
@ -6,10 +6,11 @@ import { PreactCounter } from '../components/PreactCounter.tsx';
|
|||
import VueCounter from '../components/VueCounter.vue';
|
||||
import SvelteCounter from '../components/SvelteCounter.svelte';
|
||||
|
||||
|
||||
// Full Astro Component Syntax:
|
||||
// https://github.com/snowpackjs/astro/blob/main/docs/core-concepts/astro-components.md
|
||||
---
|
||||
<html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
||||
|
|
|
@ -2,10 +2,11 @@
|
|||
// Component Imports
|
||||
import Counter from '../components/Counter.jsx'
|
||||
|
||||
|
||||
// Full Astro Component Syntax:
|
||||
// https://github.com/snowpackjs/astro/blob/main/docs/core-concepts/astro-components.md
|
||||
---
|
||||
<html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta
|
||||
|
|
|
@ -2,10 +2,11 @@
|
|||
// Component Imports
|
||||
import Counter from '../components/Counter.jsx'
|
||||
|
||||
|
||||
// Full Astro Component Syntax:
|
||||
// https://github.com/snowpackjs/astro/blob/main/docs/core-concepts/astro-components.md
|
||||
---
|
||||
<html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta
|
||||
|
|
|
@ -2,10 +2,11 @@
|
|||
// Component Imports
|
||||
import Counter from '../components/Counter.svelte'
|
||||
|
||||
|
||||
// Full Astro Component Syntax:
|
||||
// https://github.com/snowpackjs/astro/blob/main/docs/core-concepts/astro-components.md
|
||||
---
|
||||
<html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta
|
||||
|
|
|
@ -2,10 +2,11 @@
|
|||
// Component Imports
|
||||
import Counter from '../components/Counter.vue'
|
||||
|
||||
|
||||
// Full Astro Component Syntax:
|
||||
// https://github.com/snowpackjs/astro/blob/main/docs/core-concepts/astro-components.md
|
||||
---
|
||||
<html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta
|
||||
|
|
|
@ -6,7 +6,7 @@ import Nav from '../components/Nav/index.jsx';
|
|||
|
||||
const { content } = Astro.props;
|
||||
---
|
||||
<html>
|
||||
<html lang={ content.lang ?? 'en' }>
|
||||
<head>
|
||||
<MainHead title={content.title} />
|
||||
<style lang="scss">
|
||||
|
|
|
@ -16,7 +16,7 @@ export async function createCollection() {
|
|||
}
|
||||
---
|
||||
|
||||
<html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<MainHead title="All Projects | Jeanine White" />
|
||||
<style lang="scss">
|
||||
|
|
|
@ -2,9 +2,10 @@
|
|||
import MainHead from '../components/MainHead.astro';
|
||||
import Footer from '../components/Footer/index.jsx';
|
||||
import Nav from '../components/Nav/index.jsx';
|
||||
|
||||
---
|
||||
|
||||
<html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<MainHead title="Not Found" />
|
||||
</head>
|
||||
|
|
|
@ -2,9 +2,10 @@
|
|||
import MainHead from '../components/MainHead.astro';
|
||||
import Footer from '../components/Footer/index.jsx';
|
||||
import Nav from '../components/Nav/index.jsx';
|
||||
|
||||
---
|
||||
|
||||
<html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<MainHead title="About | Jeanine White" />
|
||||
<style lang="scss">
|
||||
|
|
|
@ -13,7 +13,7 @@ const featuredProject = projects[0];
|
|||
// Full Astro Component Syntax:
|
||||
// https://github.com/snowpackjs/astro/blob/main/docs/core-concepts/astro-components.md
|
||||
---
|
||||
<html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<MainHead title="Jeanine White: Personal Site" />
|
||||
<style lang="scss">
|
||||
|
|
|
@ -8,7 +8,7 @@ const { content } = Astro.props;
|
|||
---
|
||||
|
||||
<!doctype html>
|
||||
<html>
|
||||
<html lang={ content.lang ?? 'en' }>
|
||||
|
||||
<head>
|
||||
<style>
|
||||
|
|
|
@ -8,7 +8,7 @@ const { content } = Astro.props;
|
|||
---
|
||||
|
||||
<!doctype html>
|
||||
<html>
|
||||
<html lang={ content.lang ?? 'en' }>
|
||||
|
||||
<head>
|
||||
<BaseHead title={content.title} description={content.description} permalink="TODO" />
|
||||
|
|
|
@ -7,7 +7,7 @@ const { content } = Astro.props;
|
|||
---
|
||||
|
||||
<!doctype html>
|
||||
<html>
|
||||
<html lang={ content.lang ?? 'en' }>
|
||||
|
||||
<head>
|
||||
<style lang="scss">
|
||||
|
|
|
@ -7,7 +7,7 @@ let description = 'Snowpack is a lightning-fast frontend build tool, designed fo
|
|||
---
|
||||
|
||||
<!doctype html>
|
||||
<html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<BaseHead title={title} description={description} permalink="TODO" />
|
||||
|
|
|
@ -24,7 +24,6 @@ let description = 'Snowpack\'s usage and integration guides.';
|
|||
let guides;
|
||||
let communityGuides;
|
||||
|
||||
|
||||
guides = paginate({
|
||||
files: '/posts/guides/*.md',
|
||||
// sort: ((a, b) => new Date(b) - new Date(a)),
|
||||
|
@ -41,7 +40,7 @@ let communityGuides;
|
|||
---
|
||||
|
||||
<!doctype html>
|
||||
<html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<BaseHead title={title} description={description} permalink="TODO" />
|
||||
|
|
|
@ -10,7 +10,7 @@ let description = 'Snowpack is a lightning-fast frontend build tool, designed fo
|
|||
---
|
||||
|
||||
<!doctype html>
|
||||
<html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<style lang="scss">
|
||||
@use '../../public/styles/var' as *;
|
||||
|
|
|
@ -17,7 +17,7 @@ const description = 'Snowpack community news and companies that use Snowpack.';
|
|||
---
|
||||
|
||||
<!doctype html>
|
||||
<html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<BaseHead title={title} description={description} permalink="TODO" />
|
||||
|
|
|
@ -8,7 +8,7 @@ let description = 'Snowpack plugins allow for configuration-minimal tooling inte
|
|||
---
|
||||
|
||||
<!doctype html>
|
||||
<html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<BaseHead title={title} description={description} permalink="TODO" />
|
||||
|
|
|
@ -15,7 +15,7 @@ export default async function ({ params }) {
|
|||
}
|
||||
---
|
||||
|
||||
<html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<BaseHead title={title} description={description} permalink="TODO" />
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
const { content } = Astro.props;
|
||||
---
|
||||
|
||||
<html>
|
||||
<html lang={ content.lang ?? 'en' }>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>{content.title}</title>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
const { content } = Astro.props;
|
||||
---
|
||||
|
||||
<html>
|
||||
<html lang={ content.lang ?? 'en' }>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>{content.title}</title>
|
||||
|
|
|
@ -5,7 +5,7 @@ import Button from '../components/Button.astro';
|
|||
// Full Astro Component Syntax:
|
||||
// https://github.com/snowpackjs/astro/blob/main/docs/core-concepts/astro-components.md
|
||||
---
|
||||
<html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>Astro + TailwindCSS</title>
|
||||
|
|
Loading…
Reference in a new issue