Snippets about eta
9 snippets
-
SNP 148
#415
A page for every tag in Stati
One [tag].md template, URLs from Stati's slugify, and links that match them.
-
SNP 147
#693
Paginate a listing in Stati
One line of front matter for numbered pages, and a pager built from stati.pagination.
-
SNP 145
#1B3
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.
-
SNP 105
#591
Breadcrumbs from stati.nav
getBreadcrumbs() starts at the page's own folder. findNode() gives the whole trail.
-
SNP 078
#A47
A nested table of contents in Stati
stati.page.toc is a flat list. A few lines of Eta turn it into nested lists.
-
SNP 060
#495
Custom template filters in Stati
A date format and a reading time, registered once in the config and called like functions.
-
SNP 057
#641
Pick a layout per page in Stati
How Stati finds a page's layout, and the typo it won't tell you about.
-
SNP 053
#359
Partials with props in Stati
A card component that takes data, and the one line that keeps it from breaking every page.
-
SNP 050
#B14
Eta tags in Stati templates
The three tags, the one variable, and the comment that breaks a template.