Feat(plugin): add link to sources in template

This commit is contained in:
2023-04-14 14:25:52 +02:00
parent dab40dddd0
commit d90ed8149d
3 changed files with 38 additions and 1 deletions

View File

@@ -48,6 +48,16 @@
mod=article.locale_modified,
category='<a href="%s/%s">%s</a>'|format(SITEURL, article.category.url, article.category)|safe) }}
</div>
{% if 'GIT_SOURCE_BASE_URL' %}
<div class="source">
<a href="{{ article.path_source_link}}">
<img src={{ SOURCE_ICON_URL }} alt="source icon" ario>
source et documents
</a>
</div>
{% endif %}
<div class="tag-cloud">
<p>
{% if 'post_stats' in PLUGINS %}