2018-04-21 00:52:22 +02:00
|
|
|
{% macro render_category_nav(active=none) %}
|
|
|
|
<ul>
|
|
|
|
{% for category in site.query('/plugin-categories') %}
|
|
|
|
<li{% if category._id == active %} class="active"{% endif
|
|
|
|
%}><a href="{{ category|url }}">{{ category.name }}</a></li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endmacro %}
|
|
|
|
|
2018-05-12 18:59:57 +02:00
|
|
|
{% macro render_plugin_list(query) %}
|
2018-04-23 23:44:05 +02:00
|
|
|
<ul>
|
2018-05-12 18:59:57 +02:00
|
|
|
{% for plugin in query.order_by('-official', 'name') %}
|
2018-05-03 22:51:52 +02:00
|
|
|
{% set pd = project_data(plugin.name) %}
|
|
|
|
{% if plugin.summary %}
|
|
|
|
{% set summary = plugin.summary %}
|
|
|
|
{% elif pd.summary %}
|
|
|
|
{% set summary = pd.summary %}
|
|
|
|
{% endif %}
|
|
|
|
|
2018-04-23 23:44:05 +02:00
|
|
|
{% if plugin.official %}
|
2018-05-07 22:18:41 +02:00
|
|
|
<li><a href="{{ plugin|url }}">* {{ pd.short_name }}</a>: {{ summary }}</li>
|
2018-04-23 23:44:05 +02:00
|
|
|
{% if loop.nextitem %}
|
|
|
|
{% if not loop.nextitem.official %}
|
|
|
|
---
|
2018-04-21 00:52:22 +02:00
|
|
|
{% endif %}
|
2018-04-23 23:44:05 +02:00
|
|
|
{% endif %}
|
|
|
|
{% else %}
|
2018-05-07 22:18:41 +02:00
|
|
|
<li><a href="{{ plugin|url }}">{{ pd.short_name }}</a>: {{ summary }}</li>
|
2018-04-23 23:44:05 +02:00
|
|
|
{% endif %}
|
2018-04-21 00:52:22 +02:00
|
|
|
{% endfor %}
|
2018-04-23 23:44:05 +02:00
|
|
|
</ul>
|
2018-04-21 00:52:22 +02:00
|
|
|
{% endmacro %}
|