From 0eec5b1a745005d13108e5ebc239b89a0dfac526 Mon Sep 17 00:00:00 2001 From: jholt1 Date: Wed, 17 Apr 2024 14:39:11 +0100 Subject: [PATCH 1/2] chore: readability of aside --- .../starlight/MarkdownContent.astro | 39 ++++++++++++------- src/plugins/nucleus-remark-aside.js | 5 ++- 2 files changed, 28 insertions(+), 16 deletions(-) diff --git a/src/components/starlight/MarkdownContent.astro b/src/components/starlight/MarkdownContent.astro index 4a49aebef..4f7db4d6d 100644 --- a/src/components/starlight/MarkdownContent.astro +++ b/src/components/starlight/MarkdownContent.astro @@ -1,14 +1,14 @@ --- -import type { Props } from '@astrojs/starlight/props'; +import type { Props } from "@astrojs/starlight/props"; const { slug } = Astro.params; -const isComponentPage = (slug ?? '').indexOf('components/ns') > -1; +const isComponentPage = (slug ?? "").indexOf("components/ns") > -1; const classList = [ -'sl-markdown-content', -{'has-component': isComponentPage}, -{'homepage': Astro.props.slug === ''}, -{'errorpage': Astro.props.slug === '404'} + "sl-markdown-content", + { "has-component": isComponentPage }, + { homepage: Astro.props.slug === "" }, + { errorpage: Astro.props.slug === "404" }, ]; --- @@ -18,7 +18,7 @@ const classList = [