From: Mark Otto Date: Thu, 29 May 2025 18:15:51 +0000 (-0700) Subject: CSS Tricks links too X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0cd00d3703d88f36ceb0846631c25c9299ddf838;p=thirdparty%2Fbootstrap.git CSS Tricks links too --- diff --git a/site/src/components/icons/CssTricksIcon.astro b/site/src/components/icons/CssTricksIcon.astro new file mode 100644 index 0000000000..4df46d4c02 --- /dev/null +++ b/site/src/components/icons/CssTricksIcon.astro @@ -0,0 +1,19 @@ +--- +import type { SvgIconProps } from '@libs/icon' + +type Props = SvgIconProps + +const { class: className, height, width } = Astro.props +--- + + + CSS-Tricks + + diff --git a/site/src/content/config.ts b/site/src/content/config.ts index d3bffe6479..5e38d89e57 100644 --- a/site/src/content/config.ts +++ b/site/src/content/config.ts @@ -18,6 +18,7 @@ const docsSchema = z.object({ .array() .optional(), mdn: z.string().optional(), + csstricks: z.string().optional(), sections: z .object({ description: z.string(), diff --git a/site/src/layouts/DocsLayout.astro b/site/src/layouts/DocsLayout.astro index f57bf90d80..acbb42540e 100644 --- a/site/src/layouts/DocsLayout.astro +++ b/site/src/layouts/DocsLayout.astro @@ -15,6 +15,7 @@ import { fileURLToPath } from 'node:url' import { join, dirname } from 'node:path' import GitHubIcon from '@components/icons/GitHubIcon.astro' import MdnIcon from '@components/icons/MdnIcon.astro' +import CssTricksIcon from '@components/icons/CssTricksIcon.astro' interface NavigationPage { title: string @@ -135,7 +136,21 @@ if (currentPageIndex < allPages.length - 1) { rel="noopener" > - View on MDN + MDN + + ) + } + { + frontmatter.csstricks && ( + + + CSS-Tricks ) }