Avoid emitting links to non-existent plugin tag pages.

This commit is contained in:
Jeff Dairiki 2022-02-27 13:40:47 -08:00
parent 4679259408
commit d357e5e19b
1 changed files with 7 additions and 4 deletions

View File

@ -53,10 +53,13 @@
{{ this.body }}
{% if this.parent._slug == 'events' %}
<br>
<p>
<a href="{{ ('/plugins/tag/' ~ this._slug ~ '/')|url }}" class="ref">Plugins That Use This Event</a>
</p>
{% if this._slug in site.query('/plugins').distinct('tags') %}
<br>
<p>
A list of some plugins that make use of this event is available
<a href="{{ ('/plugins/tag/' ~ this._slug ~ '/')|url }}" class="ref">here</a>.
</p>
{% endif %}
{% endif %}
{% if this.version_history %}