Copyright
-
+
diff --git a/src/components/Layout/Copyright/layouts/print.astro b/src/components/Layout/Copyright/layouts/print.astro
index f2b7f9bd5..9c6f860a0 100644
--- a/src/components/Layout/Copyright/layouts/print.astro
+++ b/src/components/Layout/Copyright/layouts/print.astro
@@ -9,19 +9,16 @@ export interface Props {
const { link, publishYear } = Astro.props
const companyName = 'Webstack Builders, Inc.'
-const creativeCommonsLicense = 'The text, diagrams, and images in this work are licensed under CC BY-NC 4.0'
-const mitLicense = 'All code samples in this article are licensed under the MIT License. Feel free to use, modify, and distribute them in any project.'
+const creativeCommonsLicense =
+ 'The text, diagrams, and images in this work are licensed under CC BY-NC 4.0'
+const mitLicense =
+ 'All code samples in this article are licensed under the MIT License. Feel free to use, modify, and distribute them in any project.'
---
Copyright
-
+
diff --git a/src/components/Layout/Markdown/Lead/__tests__/index.spec.ts b/src/components/Layout/Markdown/Lead/__tests__/index.spec.ts
index 815ff60c4..bafe03f53 100644
--- a/src/components/Layout/Markdown/Lead/__tests__/index.spec.ts
+++ b/src/components/Layout/Markdown/Lead/__tests__/index.spec.ts
@@ -7,7 +7,7 @@ import Lead from '../index.astro'
const fixtureModules = import.meta.glob(
'../../../../Avatar/server/__fixtures__/avatars/*.{jpg,jpeg,png,webp}',
- { eager: true, import: 'default' },
+ { eager: true, import: 'default' }
)
vi.mock('@components/Avatar/server/avatarImports', () => ({
@@ -36,7 +36,9 @@ describe('Lead', () => {
const document = dom.window.document
const normalizeWhitespace = (value: string) => value.replace(/\s+/g, ' ').trim()
- const primaryLineText = normalizeWhitespace(document.querySelector('.text-primary')?.textContent ?? '')
+ const primaryLineText = normalizeWhitespace(
+ document.querySelector('.text-primary')?.textContent ?? ''
+ )
expect(html).toContain('href="/about"')
expect(html).toContain('Kevin Brown')
diff --git a/src/components/Layout/Markdown/Lead/index.astro b/src/components/Layout/Markdown/Lead/index.astro
index 8ce74176b..bdbb722c0 100644
--- a/src/components/Layout/Markdown/Lead/index.astro
+++ b/src/components/Layout/Markdown/Lead/index.astro
@@ -21,8 +21,11 @@ const formatShortDate = (date: Date) =>
})
const publishDateText = publishDate ? formatShortDate(publishDate) : null
-const shouldShowModifiedDate = Boolean(modifiedDate && publishDate && modifiedDate.getTime() !== publishDate.getTime())
-const modifiedDateText = shouldShowModifiedDate && modifiedDate ? formatShortDate(modifiedDate) : null
+const shouldShowModifiedDate = Boolean(
+ modifiedDate && publishDate && modifiedDate.getTime() !== publishDate.getTime()
+)
+const modifiedDateText =
+ shouldShowModifiedDate && modifiedDate ? formatShortDate(modifiedDate) : null
---
@@ -32,35 +35,47 @@ const modifiedDateText = shouldShowModifiedDate && modifiedDate ? formatShortDat
- {author && (
-
- {author}
-
- )}
- {author && publishDateText &&
{' '}on{' '}}
- {publishDateText && (
-
- )}
+ {
+ author && (
+
+ {author}
+
+ )
+ }
+ {author && publishDateText &&
on }
+ {
+ publishDateText && (
+
+ )
+ }
- {modifiedDateText && (
-
- )}
+ {
+ modifiedDateText && (
+
+ )
+ }
{readingTime &&
{readingTime}
}
- {tags && tags.length > 0 && (
-
-
-
- )}
+ {
+ tags && tags.length > 0 && (
+
+
+
+ )
+ }
diff --git a/src/components/Layout/Markdown/Tags/index.astro b/src/components/Layout/Markdown/Tags/index.astro
index 3407f3e73..3573dc7d9 100644
--- a/src/components/Layout/Markdown/Tags/index.astro
+++ b/src/components/Layout/Markdown/Tags/index.astro
@@ -61,9 +61,9 @@ const resolveTagMeta = (rawTag: string) => {
data-tooltip
title={`See All ${label} Articles`}
class:list={[
- "inline-block rounded-full transition-colors px-3 py-1 ml-2",
- "uppercase text-content-inverse text-xs no-underline",
- "bg-warning-offset hover:bg-warning",
+ 'inline-block rounded-full transition-colors px-3 py-1 ml-2',
+ 'uppercase text-content-inverse text-xs no-underline',
+ 'bg-warning-offset hover:bg-warning',
"relative focus-visible:outline-none after:pointer-events-none after:absolute after:content-[''] after:inset-0 after:rounded-none after:border-2 after:border-transparent focus-visible:after:-inset-1 focus-visible:after:border-spotlight",
]}
>
diff --git a/src/components/Layout/Print/Cover/index.astro b/src/components/Layout/Print/Cover/index.astro
index 1d859c06b..6afa5fe25 100644
--- a/src/components/Layout/Print/Cover/index.astro
+++ b/src/components/Layout/Print/Cover/index.astro
@@ -19,27 +19,23 @@ const publishDateLabel = article.data.publishDate.toLocaleDateString(undefined,
})
---
-