diff --git a/docs/source/templatesmod.rst b/docs/source/templatesmod.rst index 666b6785..31da5ecb 100644 --- a/docs/source/templatesmod.rst +++ b/docs/source/templatesmod.rst @@ -14,6 +14,12 @@ Nevertheless pay attention that menu template also uses two CSS classes marking * **current_item** — marks item in the tree, corresponding to current page; * **current_branch** — marks all ancestors of current item, and current item itself. +If needed, you can set estra CSS classes to the *ul* element with `extra_class_ul` variable. For example:: + + {% with extra_class_ul="flex-wrap flex-row" %} + {% sitetree_menu from "footer_3" include "trunk,topmenu" template "sitetree/menu_bootstrap5.html" %} + {% endwith %} + .. _overriding-built-in-templates: diff --git a/sitetree/templates/sitetree/menu_bootstrap.html b/sitetree/templates/sitetree/menu_bootstrap.html index e12aabed..5b169033 100644 --- a/sitetree/templates/sitetree/menu_bootstrap.html +++ b/sitetree/templates/sitetree/menu_bootstrap.html @@ -1,5 +1,5 @@ {% load sitetree %} -