From 244e2e385c2c34085e9210dadc56eeb923d6e04b Mon Sep 17 00:00:00 2001 From: Joseph Nix Date: Sat, 15 Dec 2018 01:01:20 -0600 Subject: [PATCH] [lektor-website-197] Adding plugins/tags page. --- content/plugins/tags/contents.lr | 5 +++++ templates/plugin-tag.html | 2 ++ templates/plugin-tags.html | 24 ++++++++++++++++++++++++ templates/plugin.html | 1 + 4 files changed, 32 insertions(+) create mode 100644 content/plugins/tags/contents.lr create mode 100644 templates/plugin-tags.html 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) %} +
+
    + {% for tag in column %} +
  • {{ tag }}
  • + {% endfor %} +
+
+ {% 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.