diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 0000000..2f080ee --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,3 @@ +{ + "plugins": ["./node_modules/prettier-plugin-astro"] +} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 63c6148..0fff91d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,11 @@ "@picocss/pico": "^1.5.6", "astro": "^1.6.13", "astro-remote": "^0.2.3", - "date-fns": "^2.29.3" + "date-fns": "^2.29.3", + "prettier": "^2.8.1" + }, + "devDependencies": { + "prettier-plugin-astro": "^0.7.0" } }, "node_modules/@ampproject/remapping": { @@ -4258,9 +4262,9 @@ } }, "node_modules/prettier": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.0.tgz", - "integrity": "sha512-9Lmg8hTFZKG0Asr/kW9Bp8tJjRVluO8EJQVfY2T7FMw9T5jy4I/Uvx0Rca/XWf50QQ1/SS48+6IJWnrb+2yemA==", + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.1.tgz", + "integrity": "sha512-lqGoSJBQNJidqCHE80vqZJHWHRFoNYsSpP9AjFhlhi9ODCJA541svILes/+/1GM3VaL/abZi7cpFzOpdR9UPKg==", "bin": { "prettier": "bin-prettier.js" }, @@ -8504,9 +8508,9 @@ } }, "prettier": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.0.tgz", - "integrity": "sha512-9Lmg8hTFZKG0Asr/kW9Bp8tJjRVluO8EJQVfY2T7FMw9T5jy4I/Uvx0Rca/XWf50QQ1/SS48+6IJWnrb+2yemA==" + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.1.tgz", + "integrity": "sha512-lqGoSJBQNJidqCHE80vqZJHWHRFoNYsSpP9AjFhlhi9ODCJA541svILes/+/1GM3VaL/abZi7cpFzOpdR9UPKg==" }, "prettier-plugin-astro": { "version": "0.7.0", diff --git a/package.json b/package.json index 22cce32..b36a0ad 100644 --- a/package.json +++ b/package.json @@ -16,5 +16,9 @@ "astro": "^1.6.13", "astro-remote": "^0.2.3", "date-fns": "^2.29.3" + }, + "devDependencies": { + "prettier": "^2.8.1", + "prettier-plugin-astro": "^0.7.0" } } diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 6d07f75..ff6d18d 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -1,12 +1,13 @@ --- - --- \ No newline at end of file +

+ Copyright 2022 - Graham Hall +

+

+ Built with Astro and Pico.css +

+ diff --git a/src/components/Header.astro b/src/components/Header.astro index 2985499..e8e98d1 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -1,21 +1,20 @@ --- - ---
- -
\ No newline at end of file + + diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 4e73c03..309a0c2 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -1,30 +1,30 @@ --- -import '@picocss/pico' +import "@picocss/pico"; -import Header from '../components/Header.astro' -import Footer from '../components/Footer.astro' +import Header from "../components/Header.astro"; +import Footer from "../components/Footer.astro"; export interface Props { - title: string; + title: string; } -const title = Astro.props.frontmatter ? Astro.props.frontmatter.title : Astro.props.title; - +const title = Astro.props.frontmatter + ? Astro.props.frontmatter.title + : Astro.props.title; --- - - - - - - {title} - - -
- -