{#- Template for entries in the plugin list (docs/plugins/.md) -#} {% extends "main.html" %} {#- Anchors match slugify() in main.py for the tag values in use (letters, digits and spaces) -#} {#- A plain string (rather than a list) is shown as a single chip, not split into letters -#} {% macro chip_list(items, page_url, extra_class='') -%} {%- if items is string %}{% set items = [items] %}{% endif -%} {%- for item in items or [] -%} {{ item | trim }} {% endfor -%} {%- endmacro %} {#- Plugin details - shown in the left sidebar on wide screens, and above the content otherwise -#} {% macro plugin_meta(meta, extra_class) -%} {%- endmacro %} {#- Use the plugin name (rather than the title derived from the file name) for the page title -#} {% block htmltitle %} {{ page.meta.name | d(page.title, true) }} - {{ config.site_name }} {% endblock htmltitle %} {% block site_nav %} {#- The primary sidebar also holds the navigation drawer on narrow screens, so keep nav.html -#}
{% include "partials/nav.html" %} {{ plugin_meta(page.meta, 'iv-plugin-meta--sidebar') }}
{#- Table of contents - as in the theme's base.html -#} {% if page.meta and page.meta.hide %} {% set hidden = "hidden" if "toc" in page.meta.hide %} {% endif %} {% endblock site_nav %} {% block content %} {% if "{{ page.meta.name | d(page.title, true) }} {% endif %} {{ plugin_meta(page.meta, 'iv-plugin-meta--content') }} {{ page.content }} {% endblock content %}