Amélioration de l'affichage d'informations annexes.
This commit is contained in:
@@ -215,6 +215,17 @@ article:not(:last-of-type)::after {
|
||||
);
|
||||
}
|
||||
|
||||
// Colorisation des éléments moins importants.
|
||||
#publication-information {
|
||||
padding-left: 4ch;
|
||||
color: $bg2;
|
||||
}
|
||||
|
||||
// Décalagu du lien "lire plus".
|
||||
#read-more {
|
||||
padding-left: 4ch;
|
||||
}
|
||||
|
||||
// Séparation du pied de page
|
||||
footer {
|
||||
margin: 0;
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
|
||||
<p id="publication-information">Publié le {{ .PublishDate }}
|
||||
{{ with or (.Param "author") (.Site.Param "author") }}{{ . }}{{ end }}</p>
|
||||
|
||||
{{/* Pourquoi 32, bah pourquoi pas ? */}}
|
||||
{{/* Non, en vrai ça semble être le taille d'une table des matières vide.*/}}
|
||||
{{ if gt (len .TableOfContents) 32}}
|
||||
|
||||
@@ -9,10 +9,13 @@
|
||||
<article>
|
||||
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
|
||||
|
||||
<p id="publication-information">Publié le {{ or .PublishDate .LastModified }}
|
||||
{{ with or (.Param "author") (.Site.Param "author") }}par {{ . }}{{ end }}</p>
|
||||
|
||||
{{ .Summary }}
|
||||
|
||||
{{ if .Truncated }}
|
||||
<a href="{{ .RelPermalink }}">Lire plus sur « {{ .Title }} »</a>
|
||||
<p id="read-more"><a href="{{ .RelPermalink }}">Lire plus sur « {{ .Title }} »</a></p>
|
||||
{{ end }}
|
||||
</article>
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user