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,11 +53,14 @@
{{ this.body }} {{ this.body }}
{% if this.parent._slug == 'events' %} {% if this.parent._slug == 'events' %}
{% if this._slug in site.query('/plugins').distinct('tags') %}
<br> <br>
<p> <p>
<a href="{{ ('/plugins/tag/' ~ this._slug ~ '/')|url }}" class="ref">Plugins That Use This Event</a> 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> </p>
{% endif %} {% endif %}
{% endif %}
{% if this.version_history %} {% if this.version_history %}
<div class="version-info version-info-collapsed"> <div class="version-info version-info-collapsed">