Skip to content

Commit 80ac5c7

Browse files
committed
Update tags styling and add to MarkdownLayout
1 parent b1a1139 commit 80ac5c7

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

‎src/components/Layout/Markdown/Tags/index.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const resolveTagMeta = (rawTag: string) => {
5858
href={href}
5959
rel="tag"
6060
itemprop="keywords"
61-
class="inline-block px-2 py-0.5 bg-page-active rounded text-xs no-underline transition-colors hover:bg-spotlight hover:text-primary focus:bg-spotlight focus:text-primary"
61+
class="uppercase inline-block pr-2 sm:pr-3 py-0.5 text-xs sm:text-sm no-underline transition-colors hover:text-secondary focus:bg-spotlight focus:text-secondary"
6262
>
6363
{label}
6464
</a>

‎src/content/articles/demo/index.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ coverAlt: "Hero image for Markdown page test fixture"
66
author: "kevin-brown"
77
publishDate: 2024-01-01
88
modifiedDate: 2025-06-29
9-
tags: ["systems-and-development"]
9+
tags: ["systems-and-development", "build-and-deploy"]
1010
isDraft: true
1111
---
1212
import Demo from '@components/Test/Demo.mdx'

‎src/layouts/MarkdownLayout.astro‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import type { MarkdownHeading } from 'astro'
99
import BaseLayout from '@layouts/BaseLayout.astro'
1010
import Lead from '@components/Layout/Markdown/Lead/index.astro'
1111
import Subtitle from '@components/Layout/Markdown/Subtitle/index.astro'
12+
import Tags from '@components/Layout/Markdown/Tags/index.astro'
1213
import Title from '@components/Layout/Markdown/Title/index.astro'
1314
import Toc from '@components/Toc/index.astro'
1415
@@ -131,6 +132,11 @@ const shouldRenderToc = showToc !== false && tocHeadings.length > 0
131132
aria-labelledby="article-title"
132133
>
133134
<header class="mb-4 sm:mb-6">
135+
{tags && tags.length > 0 && (
136+
<div class="mb-2">
137+
<Tags tags={tags} />
138+
</div>
139+
)}
134140
<Title pageTitle={pageTitle} />
135141
{subtitle && <Subtitle subtitle={subtitle} />}
136142
{

0 commit comments

Comments
 (0)