[STYLE] Add year on archives list

This commit is contained in:
Gregory Trolliet 2023-09-09 08:29:27 +02:00
parent 350377bdd4
commit 1abfbd5085
2 changed files with 7 additions and 3 deletions

View File

@ -7,6 +7,7 @@
{{ end }} {{ end }}
<div class="description"> <div class="description">
<span class="title">{{ .Title }}</span> <span class="title">{{ .Title }}</span>
<span class="year">{{ .PublishDate.Format "2006" }}</span>
<span class="more">&rarr; plus d'infos</span> <span class="more">&rarr; plus d'infos</span>
</div> </div>
</a> </a>

View File

@ -369,9 +369,6 @@ a.not(.anchor):focus {
.archives-list .archive:hover { .archives-list .archive:hover {
border: none; border: none;
} }
.archives-list .archive .title {
height: 100px;
}
.archives-list .thumbnail { .archives-list .thumbnail {
display: inline-block; display: inline-block;
width: 100%; width: 100%;
@ -389,6 +386,12 @@ a.not(.anchor):focus {
.archives-list .title { .archives-list .title {
font-weight: bold; font-weight: bold;
} }
.archives-list .year {
font-style: italic;
}
.archives-list .year::before {
content: " - ";
}
.archives-list .description { .archives-list .description {
display: inline-block; display: inline-block;
min-width: 10em; min-width: 10em;