From f20cc2508013598703c4cecba19515d1a73ac7b3 Mon Sep 17 00:00:00 2001 From: Anas Rashid Date: Sat, 10 Oct 2026 00:13:45 +0200 Subject: [PATCH] Tags folded at the end of a page; a "how to use" page instead of the hint MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - A page's tags (poem, book, poet) move from the top into a closed «ٹیگ» section with their count at the end of the content, above previous/next; couplets keep their own tags - The line under each poem ("select a word…") is gone; /help (استعمال کا طریقہ, linked in the footer) explains the features: search and Roman typing, meanings and the selection menu, a couplet's tools (and ⋯ on phones), notes, saved items and the word book, reading mode, fonts and colours, e-books, tags and RSS Co-Authored-By: Claude Opus 5.5 --- web/src/components/Icon.astro | 1 + web/src/components/TagsBox.astro | 12 +++++++ web/src/layouts/Base.astro | 1 + web/src/pages/[...path].astro | 7 ++-- web/src/pages/help.astro | 55 ++++++++++++++++++++++++++++++++ web/src/styles/global.css | 16 ++++++++++ 6 files changed, 88 insertions(+), 4 deletions(-) create mode 100644 web/src/components/TagsBox.astro create mode 100644 web/src/pages/help.astro 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';