Update template to add links to categories

This commit is contained in:
Alexis M 2019-11-07 17:39:03 +01:00
parent 7b44dbb6fb
commit 0f6a153b97
3 changed files with 6 additions and 2 deletions

View file

@ -52,6 +52,6 @@ publish: install
github: publish github: publish
ghp-import -n $(OUTPUTDIR) ghp-import -n $(OUTPUTDIR)
@git push -fq https://${GH_TOKEN}@github.com/$(TRAVIS_REPO_SLUG).git gh-pages > /dev/null git push origin gh-pages
.PHONY: html clean serve devserver publish .PHONY: html clean serve devserver publish

View file

@ -81,3 +81,7 @@ ul.articles_list li {
text-align: justify; text-align: justify;
justify-content: center; justify-content: center;
} }
a.no-color {
color: inherit;
}

View file

@ -58,7 +58,7 @@ h1 {
{% block content %} {% block content %}
<div id="main" class="posts"> <div id="main" class="posts">
<h1 class="post-title">{{ article.title }}</h1> <h1 class="post-title">{{ article.title }}</h1>
<span class="post-date">{{ article.locale_date | capitalize }}</span> <span class="post-date">{{ article.locale_date | capitalize }}, dans <a class="no-color" href="{{ article.category.url }}">{{ article.category }}</a></span>
<img id="illustration" src="{{ article.image}}" /> <img id="illustration" src="{{ article.image}}" />
<div class="post article"> <div class="post article">