diff options
Diffstat (limited to 'src/components/organisms')
-rw-r--r-- | src/components/organisms/Date.astro | 3 | ||||
-rw-r--r-- | src/components/organisms/KeywordsList.astro | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/components/organisms/Date.astro b/src/components/organisms/Date.astro index c1ec7e5..960cfb7 100644 --- a/src/components/organisms/Date.astro +++ b/src/components/organisms/Date.astro @@ -1,8 +1,11 @@ --- +import type { HTMLAttributes } from "astro/types"; + interface Props { date: Date; locales: Intl.LocalesArgument; options: Intl.DateTimeFormatOptions; + itemprop: HTMLAttributes<"time">["itemprop"]; } const { date, locales, options } = Astro.props; diff --git a/src/components/organisms/KeywordsList.astro b/src/components/organisms/KeywordsList.astro index 4d4b140..d3b9e7f 100644 --- a/src/components/organisms/KeywordsList.astro +++ b/src/components/organisms/KeywordsList.astro @@ -7,7 +7,7 @@ const { keywords } = Astro.props; --- <p> - {keywords.map((x) => <span>#<b>{x}</b></span>)} + {keywords.map((x) => <span>#<b itemprop="keywords">{x}</b></span>)} </p> <style> |