From d357e5e19b1331d81c5ef324b9476b1daae5fad2 Mon Sep 17 00:00:00 2001 From: Jeff Dairiki Date: Sun, 27 Feb 2022 13:40:47 -0800 Subject: [PATCH] Avoid emitting links to non-existent plugin tag pages. --- templates/doc-page.html | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/templates/doc-page.html b/templates/doc-page.html index f432428a..c151d8d4 100644 --- a/templates/doc-page.html +++ b/templates/doc-page.html @@ -53,10 +53,13 @@ {{ this.body }} {% if this.parent._slug == 'events' %} -
-

- Plugins That Use This Event -

+ {% if this._slug in site.query('/plugins').distinct('tags') %} +
+

+ A list of some plugins that make use of this event is available + here. +

+ {% endif %} {% endif %} {% if this.version_history %}