Snippets about eta
12 snippets
-
SNP151
Pick a layout per page in Stati 2
Layout names are looked up from the page's folder now, the same way as includes. And a typo finally gets a warning.
18 lines of yaml, text and eta in 4 blocks, 19 lines of explanation.
#594 -
SNP150
Template helpers in Stati 2
Stati 1's filters are helpers now, with a config key of their own. And their parameters can have real types.
20 lines of ts and eta in 2 blocks, 15 lines of explanation.
#A31 -
SNP149
Includes with props in Stati 2
A card component, included by its path. The guard Stati 1 components needed on their first line can go.
11 lines of eta in 4 blocks, 19 lines of explanation with 3 notes.
#2B7 -
SNP148
A page for every tag in Stati
One [tag].md template, URLs from Stati's slugify, and links that match them.
21 lines of yaml and eta in 4 blocks, 18 lines of explanation with 4 notes.
#415 -
SNP147
Paginate a listing in Stati
One line of front matter for numbered pages, and a pager built from stati.pagination.
31 lines of yaml and eta in 2 blocks, 15 lines of explanation with 5 notes.
#693 -
SNP145
List a section's posts anywhere in Stati
The newest posts on the home page from one line of front matter, and prev/next links without a hook.
23 lines of yaml and eta in 3 blocks, 15 lines of explanation with 4 notes.
#1B3 -
SNP105
Breadcrumbs from stati.nav
getBreadcrumbs() starts at the page's own folder. findNode() gives the whole trail.
27 lines of eta in 2 blocks, 9 lines of explanation.
#591 -
SNP078
A nested table of contents in Stati
stati.page.toc is a flat list. A few lines of Eta turn it into nested lists.
28 lines of eta in 1 block, 8 lines of explanation.
#A47 -
SNP060
Custom template filters in Stati
A date format and a reading time, registered once in the config and called like functions.
22 lines of ts and eta in 2 blocks, 12 lines of explanation with 5 notes.
#495 -
SNP057
Pick a layout per page in Stati
How Stati finds a page's layout, and the typo it won't tell you about.
12 lines of yaml and text in 2 blocks, 18 lines of explanation with 3 notes.
#641 -
SNP053
Partials with props in Stati
A card component that takes data, and the one line that keeps it from breaking every page.
9 lines of eta in 2 blocks, 22 lines of explanation with 4 notes.
#359 -
SNP050
Eta tags in Stati templates
The three tags, the one variable, and the comment that breaks a template.
22 lines of eta in 2 blocks, 18 lines of explanation with 3 notes.
#B14