Merge branch 'improve-lighthouse'

This commit is contained in:
Fred K. Schott 2021-07-13 11:04:27 -04:00
commit 783db7b3a0
30 changed files with 37 additions and 31 deletions

View file

@ -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} />

View file

@ -45,7 +45,7 @@ export async function createCollection() {
const author = authorData[collection.params.author];
---
<html>
<html lang="en">
<head>
<title>{title}</title>
<MainHead

View file

@ -38,7 +38,7 @@ export async function createCollection() {
}
---
<html>
<html lang="en">
<head>
<title>{title}</title>
<MainHead

View file

@ -4,7 +4,7 @@ import Nav from '../components/Nav.astro';
let title = "About";
---
<html>
<html lang="en">
<head>
<MainHead
title={title}

View file

@ -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

View file

@ -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" />

View file

@ -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" />

View file

@ -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>

View file

@ -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" />

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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">

View file

@ -16,7 +16,7 @@ export async function createCollection() {
}
---
<html>
<html lang="en">
<head>
<MainHead title="All Projects | Jeanine White" />
<style lang="scss">

View file

@ -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>

View file

@ -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">

View file

@ -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">

View file

@ -8,7 +8,7 @@ const { content } = Astro.props;
---
<!doctype html>
<html>
<html lang={ content.lang ?? 'en' }>
<head>
<style>

View file

@ -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" />

View file

@ -7,7 +7,7 @@ const { content } = Astro.props;
---
<!doctype html>
<html>
<html lang={ content.lang ?? 'en' }>
<head>
<style lang="scss">

View file

@ -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" />

View file

@ -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" />

View file

@ -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 *;

View file

@ -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" />

View file

@ -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" />

View file

@ -15,7 +15,7 @@ export default async function ({ params }) {
}
---
<html>
<html lang="en">
<head>
<BaseHead title={title} description={description} permalink="TODO" />

View file

@ -2,7 +2,7 @@
const { content } = Astro.props;
---
<html>
<html lang={ content.lang ?? 'en' }>
<head>
<meta charset="utf-8" />
<title>{content.title}</title>

View file

@ -2,7 +2,7 @@
const { content } = Astro.props;
---
<html>
<html lang={ content.lang ?? 'en' }>
<head>
<meta charset="utf-8">
<title>{content.title}</title>

View file

@ -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>