diff --git a/web/src/components/Icon.astro b/web/src/components/Icon.astro index d950292e..a0aa1b2d 100644 --- a/web/src/components/Icon.astro +++ b/web/src/components/Icon.astro @@ -62,6 +62,7 @@ const PATHS = { info: '', globe: '', database: '', + help: '', }; --- diff --git a/web/src/components/TagsBox.astro b/web/src/components/TagsBox.astro new file mode 100644 index 00000000..2e7a81a4 --- /dev/null +++ b/web/src/components/TagsBox.astro @@ -0,0 +1,12 @@ +--- +// a page's tags, folded away at the end of its content (#52): "ٹیگ" and how many; open to see the chips +import Tags from './Tags.astro'; +import { ud } from '../lib/urdu'; +const { tags } = Astro.props as { tags: { type: string; name: string }[] }; +--- +{tags.length > 0 && ( +
+ ٹیگ {ud(tags.length)} + +
+)} diff --git a/web/src/layouts/Base.astro b/web/src/layouts/Base.astro index b9c395eb..f58357c4 100644 --- a/web/src/layouts/Base.astro +++ b/web/src/layouts/Base.astro @@ -147,6 +147,7 @@ import { brand } from '../lib/brand';