diff --git a/themes/yunohost-docs/templates/partials/breadcrumbs.html.twig b/themes/yunohost-docs/templates/partials/breadcrumbs.html.twig new file mode 100644 index 00000000..2a2241f6 --- /dev/null +++ b/themes/yunohost-docs/templates/partials/breadcrumbs.html.twig @@ -0,0 +1,38 @@ +{% set crumbs = breadcrumbs.get() %} +{% set breadcrumbs_config = config.plugins.breadcrumbs %} +{% set divider = breadcrumbs_config.icon_divider_classes %} + +{% if crumbs|length > 1 or breadcrumbs_config.show_all %} + +{% endif %} diff --git a/themes/yunohost-docs/templates/partials/topbar.html.twig b/themes/yunohost-docs/templates/partials/topbar.html.twig new file mode 100644 index 00000000..39bd21c0 --- /dev/null +++ b/themes/yunohost-docs/templates/partials/topbar.html.twig @@ -0,0 +1,30 @@ +
+ {% if github_link_position == 'top' %} + + {% endif %} + + {% if config.plugins.breadcrumbs.enabled %} + {% include 'partials/breadcrumbs.html.twig' %} + {% endif %} + + +
+
+ +