Feat(plugin): add link to sources in template

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

View File

@ -350,6 +350,33 @@ main {
padding-top: 1em;
}
.source {
text-align: center;
padding-top: 1em;
img {
border: 0;
box-shadow: none;
}
a {
background-color: @tag-bg;
padding: .2em .6em .2em;
font-size: .74em;
line-height: 1;
color: @tag-text-color;
text-align: center;
white-space: nowrap;
vertical-align: baseline;
border-radius: .25em;
}
a:hover {
background-color: @tag-hover-color;
}
}
.tag-cloud {
text-align: center;
a {

File diff suppressed because one or more lines are too long

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 %}