Avoid emitting links to non-existent plugin tag pages.
This commit is contained in:
parent
4679259408
commit
d357e5e19b
|
@ -53,10 +53,13 @@
|
||||||
|
|
||||||
{{ this.body }}
|
{{ this.body }}
|
||||||
{% if this.parent._slug == 'events' %}
|
{% if this.parent._slug == 'events' %}
|
||||||
<br>
|
{% if this._slug in site.query('/plugins').distinct('tags') %}
|
||||||
<p>
|
<br>
|
||||||
<a href="{{ ('/plugins/tag/' ~ this._slug ~ '/')|url }}" class="ref">Plugins That Use This Event</a>
|
<p>
|
||||||
</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 %}
|
{% endif %}
|
||||||
|
|
||||||
{% if this.version_history %}
|
{% if this.version_history %}
|
||||||
|
|
Loading…
Reference in New Issue