diff --git a/content/plugins/tags/contents.lr b/content/plugins/tags/contents.lr new file mode 100644 index 00000000..8180d8e6 --- /dev/null +++ b/content/plugins/tags/contents.lr @@ -0,0 +1,5 @@ +_model: page +--- +title: tags +--- +_template: plugin-tags.html diff --git a/templates/plugin-tag.html b/templates/plugin-tag.html index 48792e95..9402e23b 100644 --- a/templates/plugin-tag.html +++ b/templates/plugin-tag.html @@ -28,4 +28,6 @@
{{ render_plugin_list(this.items) }}
+ +

View a list of all Lektor plugin tags here.

{% endblock %} diff --git a/templates/plugin-tags.html b/templates/plugin-tags.html new file mode 100644 index 00000000..3d0d23a0 --- /dev/null +++ b/templates/plugin-tags.html @@ -0,0 +1,24 @@ +{% extends "plugin.html" %} + +{% block body %} +

Plugin Tags

+ +

+ This is a list of all tags that Lektor plugins have. + Click on individual tags to see which plugins use that tag. +

+
+ + {% set tags = this.parent.children.distinct("tags")|rejectattr("tags") %} + {% for column in tags|sort|slice(3) %} +
+ +
+ {% endfor %} + +
+{% endblock %} diff --git a/templates/plugin.html b/templates/plugin.html index a9825986..904a0dcc 100644 --- a/templates/plugin.html +++ b/templates/plugin.html @@ -68,6 +68,7 @@ {% else %}

Plugin has no tags.

{% endif %} +

View all tags.