This page provides recipes and solutions for common tasks that arise when using Pico.
How to create a navigation tree for pages?
How to show only pages of the first level (i.e.
sub/page.md) on the navigation?
How can I easily pluralize a string?
Recursive table of contents
How can I realize a arbitrary deep TOC?
RSS Feed Generation
By using the following code in a separate
feed.twig template (in your theme folder), you can automatically generate an RSS feed from your Pico pages.
Simply create a “feed.md” file in your content folder with the header “Template: feed”, and anyone who visits “/feed” on your site will recieve an RSS feed instead of a regular page.
Table of contents
How to generate TOCs very easy?