feat: Add margin on blog date

This commit is contained in:
Simon 2022-01-19 10:20:49 +01:00
parent a2e38ff0f2
commit 36513bd974
2 changed files with 8 additions and 2 deletions

View File

@ -137,6 +137,12 @@ h3
color: var(--color-highlight) color: var(--color-highlight)
font-size: 130% font-size: 130%
.blogDate
font-style: italic
font-size: 0.9rem
display: block
margin-top: 1.5rem
// Grid // Grid
.grid { display: flex; flex-wrap: wrap; } .grid { display: flex; flex-wrap: wrap; }

View File

@ -1,7 +1,7 @@
{{ define "main" }} {{ define "main" }}
<small><i> <p class="blogDate">
Publié le <time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date | time.Format ":date_full" }}</time>{{ if isset .Params "auteur" }} - {{ .Params.auteur }}{{ end }} Publié le <time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date | time.Format ":date_full" }}</time>{{ if isset .Params "auteur" }} - {{ .Params.auteur }}{{ end }}
</i></small> </p>
{{ .Content }} {{ .Content }}
<aside> <aside>
<hr> <hr>