{{.description}} diff --git a/docs/blocks/filters.jq b/docs/blocks/filters.jq index 2af7677..69845df 100644 --- a/docs/blocks/filters.jq +++ b/docs/blocks/filters.jq @@ -2,10 +2,20 @@ # Extra filters for this site # +import "collected-front-matter" as $pages; + # Remove XML tags def striptags: # warning: algorithm too simplistic gsub("<[^>]*>"; "") ; +def pages: + $pages::pages[0] +; + +def sections: + [pages[].section] | unique | map(select(.)) +; + # vim:ts=4:sw=4:ai:et:fileencoding=utf8:syntax=jq diff --git a/docs/blocks/menu-bar/markup.html b/docs/blocks/menu-bar/markup.html index e584206..7019620 100644 --- a/docs/blocks/menu-bar/markup.html +++ b/docs/blocks/menu-bar/markup.html @@ -2,9 +2,9 @@ # Menu Bar ######################################################################>&