From a1c12866ae6f24dd3db819757b8de40644b1efd9 Mon Sep 17 00:00:00 2001 From: thiloho <123883702+thiloho@users.noreply.github.com> Date: Thu, 18 May 2023 22:17:46 +0200 Subject: [PATCH] Format --- README.md | 2 +- astro.config.ts | 26 +++++---- public/favicon.svg | 2 +- src/components/ArticleSearch.svelte | 46 ++++++++-------- src/components/Dropdown.svelte | 68 ++++++++++++------------ src/components/Footer.astro | 6 ++- src/components/Head.astro | 2 +- src/components/Nav.astro | 6 +-- src/components/TableOfContents.svelte | 2 +- src/components/ThemeToggle.svelte | 2 +- src/content/blog/markdown-style-guide.md | 2 +- src/layouts/ArticleLayout.astro | 7 ++- src/pages/[...slug].astro | 2 +- src/styles/global.css | 23 +++++--- 14 files changed, 109 insertions(+), 87 deletions(-) diff --git a/README.md b/README.md index aa2dc2b..b54d7e4 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # aurora -Minimal blog theme built with Astro, mainly focused on accessibility and usability. +Minimal blog theme built with Astro, mainly focused on accessibility and usability. diff --git a/astro.config.ts b/astro.config.ts index c888c68..0e3dd86 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -7,19 +7,25 @@ import svelte from "@astrojs/svelte"; export default defineConfig({ experimental: { assets: true, - inlineStylesheets: "auto" + inlineStylesheets: "auto", }, scopedStyleStrategy: "class", markdown: { - rehypePlugins: [rehypeHeadingIds, [rehypeAutolinkHeadings, { - behavior: "wrap", - properties: { - class: "heading-linker" - } - }]] + rehypePlugins: [ + rehypeHeadingIds, + [ + rehypeAutolinkHeadings, + { + behavior: "wrap", + properties: { + class: "heading-linker", + }, + }, + ], + ], }, image: { - service: sharpImageService() + service: sharpImageService(), }, - integrations: [svelte()] -}); \ No newline at end of file + integrations: [svelte()], +}); diff --git a/public/favicon.svg b/public/favicon.svg index ef28244..5039b46 100644 --- a/public/favicon.svg +++ b/public/favicon.svg @@ -1,5 +1,5 @@ - + diff --git a/src/components/Dropdown.svelte b/src/components/Dropdown.svelte index d1b60be..8444896 100644 --- a/src/components/Dropdown.svelte +++ b/src/components/Dropdown.svelte @@ -1,49 +1,49 @@ - + -
- - - - +
+ + + +
diff --git a/src/components/Footer.astro b/src/components/Footer.astro index d4a1905..99d7891 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -25,7 +25,11 @@ const currentDateYear = new Date().getFullYear(); footer { margin-block-start: 4rem; padding-block: 1rem; - background: linear-gradient(0deg, var(--tertiary-background-color) 0%, var(--background-color) 100%); + background: linear-gradient( + 0deg, + var(--tertiary-background-color) 0%, + var(--background-color) 100% + ); } .container { diff --git a/src/components/Head.astro b/src/components/Head.astro index 02d6d70..6004e7a 100644 --- a/src/components/Head.astro +++ b/src/components/Head.astro @@ -7,7 +7,7 @@ const { title, description } = Astro.props; - + {title} diff --git a/src/components/Nav.astro b/src/components/Nav.astro index 3179d09..e7eeb4c 100644 --- a/src/components/Nav.astro +++ b/src/components/Nav.astro @@ -5,9 +5,7 @@ import ThemeToggle from "../components/ThemeToggle.svelte";