tag-detail section renders the identity block for a single tag: its display name and prose description. Use it as the opening section on your tags/[slug] dynamic route pages to give readers context about the topic before listing the posts assigned to it.
The item field holds a $ref pointer to collection:current, which OlonJS resolves at render time to the tag matching the current URL slug.
Data fields
A collection reference that resolves to the current route’s
Tag object. In your page JSON, set this to { "$ref": "collection:current" }. OlonJS replaces the pointer at render time with the matching tag entry.After resolution, item carries all tag content fields:Optional label for the back-navigation link rendered above the tag heading — for example
"All topics". When omitted, no back link is rendered.Settings fields
Vertical padding applied above the section. Use
"xl" to clear the navigation bar on the first section of the page.JSON example
The following example is taken fromtags/[slug].json:
collection:current to the tag whose id matches the URL slug — for example, visiting /tags/writing causes item to be replaced with the full tag object for that entry.
Typical page usage
Placetag-detail as the first section on your tags/[slug] page, followed immediately by the Tag Posts section. Together they form the standard two-section layout for a topic archive page..png?fit=max&auto=format&n=AyzhRn9-CO-nDNc4&q=85&s=63c78e2325701880237e6cbce1399c2a)
.png?fit=max&auto=format&n=AyzhRn9-CO-nDNc4&q=85&s=0db283df6e4d31745079d6d03fd029ed)