Snippets about eta

9 snippets

Back to all snippets

  1. SNP 148 #415

    A page for every tag in Stati

    One [tag].md template, URLs from Stati's slugify, and links that match them.

  2. SNP 147 #693

    Paginate a listing in Stati

    One line of front matter for numbered pages, and a pager built from stati.pagination.

  3. 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.

  4. SNP 105 #591

    Breadcrumbs from stati.nav

    getBreadcrumbs() starts at the page's own folder. findNode() gives the whole trail.

  5. 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.

  6. SNP 060 #495

    Custom template filters in Stati

    A date format and a reading time, registered once in the config and called like functions.

  7. 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.

  8. 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.

  9. SNP 050 #B14

    Eta tags in Stati templates

    The three tags, the one variable, and the comment that breaks a template.