Data Table
Data table allows to list data in page front matter in tabular format with possibility of:
- filtering
- selecting columns
- specifying text for missing data
- grouping
Example:
Definition of data in page front matter:
---
title: Data Table
params:
books:
keys:
- id: title
name: Title
highlight: true
style: "white-space: nowrap"
filtered: true
- id: author
name: Author
filtered: true
- id: rating
name: Rating
- id: summary
name: Summary
missing_value: n/a
data:
- group: 2005
- title: "The Clockmaker of Hollow Street"
author: "Eleanor H. Whitford"
rating: 4
summary: "A reclusive clockmaker uncovers blueprints for a device that could rewind time, drawing him into a conspiracy that threatens his quiet town."
genre: fantasy
- title: "Ashes of the Azure Empire"
author: "Kaito Renn"
rating: 2
summary: "After the fall of a once-majestic empire, a former general must protect a young scholar who may hold the key to rebuilding civilization."
- title: "The Orchard of Silent Promises"
author: "Lucia Maren"
rating: 2
summary: "When a woman returns to her childhood village to settle her late mother’s estate, she discovers a mysterious orchard said to grant wishes—but at a price."
Rendering a table:
{{< datatable key="books" >}}
| Title | Author | Rating | Summary |
|---|---|---|---|
| 2005 | |||
| The Clockmaker of Hollow Street | Eleanor H. Whitford | 4 | A reclusive clockmaker uncovers blueprints for a device that could rewind time, drawing him into a conspiracy that threatens his quiet town. |
| Ashes of the Azure Empire | Kaito Renn | 2 | After the fall of a once-majestic empire, a former general must protect a young scholar who may hold the key to rebuilding civilization. |
| The Orchard of Silent Promises | Lucia Maren | 2 | When a woman returns to her childhood village to settle her late mother’s estate, she discovers a mysterious orchard said to grant wishes—but at a price. |
| Binary Hearts | Tomas Kepler | 3 | A brilliant AI researcher falls in love with the sentient program she created, forcing her to choose between ethics, humanity, and the future of technology. |
| Voyagers of the Deep Green | Samuel Cross | 4 | A crew of eco-scientists on a deep-ocean expedition encounter an ancient underwater civilization fighting to survive rising surface pollution. |
| 2004 | |||
| The Last Lullaby of Winterhold | Marina Solberg | 5 | In a northern kingdom where music holds magical power, a bard loses her voice and must embark on a perilous quest to reclaim it before war breaks out. |
| Fragments of a Forgotten Sun | Arjun Patel | 4 | A history professor uncovers relics proving an advanced civilization existed thousands of years before recorded history, making him the target of global powers. |
| Red Moon Cartography | Nadir El-Khoury | 4 | A renegade space navigator searches for mythical star maps said to reveal routes to uncharted galaxies as rival factions race to claim them first. |
| A Garden Made of Paper | Yumi Takahashi | 5 | A shy origami artist begins leaving miniature paper gardens around her city, unintentionally inspiring a quiet social revolution. |
| The Alchemist’s Promise | Rafael Mendoza | 5 | A young thief steals a philosopher’s stone and is forced to partner with an aging alchemist to prevent immortality from falling into tyrannical hands. |
| Skis Against The Atom | n/a | n/a | n/a |