# https://ziggy-lang.io

**URL:** <https://zine.discourse.group/t/https-ziggy-lang-io/14>\
**Category:** Showcase\
**Created:** [July 8, 2026, 10:28pm UTC](https://zine.discourse.group/t/https-ziggy-lang-io/14 "2026-07-08T22:28:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kristoff](https://yyz2.discourse-cdn.com/flex052/user_avatar/zine.discourse.group/kristoff/32/6_2.png) [@kristoff](https://zine.discourse.group/u/kristoff)\
**Post date:** [July 8, 2026, 10:28pm UTC](https://zine.discourse.group/t/https-ziggy-lang-io/14/1 "2026-07-08T22:28:16Z")

</div>

[https://ziggy-lang.io](https://ziggy-lang.io)

Source: [https://github.com/kristoff-it/ziggy-lang.io](https://github.com/kristoff-it/ziggy-lang.io)

This website features a mildly interesting approach to building the sidebar menu of the documentation section.

The layout loops the contents of a custom frontmatter key to generated a series of `<details>` elements. Note also how each page is tested to see if it’s the current page, in which case it is styled differently.

> <https://github.com/kristoff-it/ziggy-lang.io/blob/439bfc4ea6c77aa34f8b500acff91a1c5dc4f673/layouts/documentation.shtml#L211-L225>

While the frontmatter custom data referenced in the outer loop looks like this:

> <https://github.com/kristoff-it/ziggy-lang.io/blob/439bfc4ea6c77aa34f8b500acff91a1c5dc4f673/content/docs/index.smd#L6-L64>

I could have used nested structs to give better names to the first and second element of each `docs-sidebar` entry, but for something this simple I decided that array ‘tuples’ were fine.
