lektor-website/templates/plugin-tag.html
Jeff Dairiki 962be2e941 Render internal links as relative links.
There were some locations where the site was linking to the listing
of plugin tags with an absolute ("/plugin/tags") path.  This fixes
those to render as relative paths.
This matches the rendering of all other internal links on the site,
and avoids broken links when deploying to sites rooted under a path
prefix (e.g. https://lektor.github.io/lektor-website/.)
2022-02-23 17:36:51 -08:00

36 lines
1.1 KiB
HTML

{% extends "plugins.html" %}
{% from "macros/plugins.html" import render_plugin_list %}
{% block body %}
<h1>Tag: {{ this.tag }}</h1>
{% for event in site.get('/docs/api/plugins/events').children.all() %}
{% if this.tag == event.title %}
<p>
This is an event emitted by Lektor for plugins to hook.
The following plugins hook this event.
Take a look at their source code to see how they work!
</p>
<p>
<a href="{{ '/docs/plugins'|url }}" class="ref">Intro to Plugins</a>
||
<a href="{{ '/docs/cli/plugins/'|url }}" class="ref">Plugin Commands</a>
||
<a href="{{ '/docs/api/plugins'|url }}" class="ref">Plugin API</a>
||
<a href="{{ event|url }}" class="ref">This Event</a>
</p>
{% endif %}
{% endfor %}
<h2>Plugins:</h2>
<p>(*) Asterisks denote official plugins.</p>
<div class="plugin">
{{ render_plugin_list(this.items) }}
</div>
<p>View a list of all Lektor plugin tags
<a href="{{ '/plugins/tags'|url }}" class="ref">here</a>.
</p>
{% endblock %}