feat: tags

This commit is contained in:
rick 2021-07-02 10:45:59 +02:00
parent 414d9cfaa3
commit d56d217b24
Signed by: Rick
GPG key ID: 2B593F087240EE99
2 changed files with 23 additions and 1 deletions

View file

@ -136,7 +136,21 @@ h1, h2, h3, h4, h5, h6 {
padding: 15px; padding: 15px;
} }
/* parametres pour catehory */ .pre-art hr {
margin-top: 2em;
margin-bottom: 1em;
}
.tags a {
font-size: 12px;
background-color: #2c3e50;
padding: 0.25em;
padding-right: 0.5em;
padding-left: 0.5em;
margin-right: 1em;
}
/* parametres pour category */
h1 { h1 {
color: white; color: white;
text-align: center; text-align: center;

View file

@ -15,6 +15,14 @@
{{ art.summary }} {{ art.summary }}
</div> </div>
<a href="{{ SITEURL }}/{{ art.url }}" class="continue">Continuer à lire</a> <a href="{{ SITEURL }}/{{ art.url }}" class="continue">Continuer à lire</a>
{% if art.tags is not none %}
<hr />
<div class="tags">
{% for tag in art.tags %}
<a href="">{{ tag }}</a>
{% endfor %}
</div>
{% endif %}
</div> </div>
{% endfor %} {% endfor %}
{%- endmacro %} {%- endmacro %}