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/.)
This commit is contained in:
Jeff Dairiki 2022-02-22 16:28:24 -08:00
parent 44472258ce
commit 962be2e941
3 changed files with 8 additions and 3 deletions

View File

@ -29,5 +29,7 @@
{{ render_plugin_list(this.items) }} {{ render_plugin_list(this.items) }}
</div> </div>
<p>View a list of all Lektor plugin tags <a href="/plugins/tags" class="ref">here</a>.</p> <p>View a list of all Lektor plugin tags
<a href="{{ '/plugins/tags'|url }}" class="ref">here</a>.
</p>
{% endblock %} {% endblock %}

View File

@ -68,7 +68,9 @@
{% else %} {% else %}
<p>Plugin has no tags.</p> <p>Plugin has no tags.</p>
{% endif %} {% endif %}
<p>View <a href="/plugins/tags" class="ref">all tags</a>.</p> <p>
View <a href="{{ '/plugins/tags'|url }}" class="ref">all tags</a>.
</p>
</div> </div>
<div class="col-sm-9 doc-styling"> <div class="col-sm-9 doc-styling">

View File

@ -26,6 +26,7 @@
<p> <p>
Plugins are also tagged with keywords and topics. Plugins are also tagged with keywords and topics.
Their tags are listed on their page and are navigable. Their tags are listed on their page and are navigable.
You can view a list of all of the tags <a href="/plugins/tags" class="ref">here</a>. You can view a list of all of the tags
<a href="{{ '/plugins/tags'|url }}" class="ref">here</a>.
</p> </p>
{% endblock %} {% endblock %}