Layout: ajout d'un champ "source"

This commit is contained in:
Théophile Bastian 2021-01-30 21:28:00 +01:00
parent 73d4525357
commit 2a63d4e9de
4 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,4 @@
Source ou inspiration :
{{ with .url -}}<a href="{{ . }}" >{{- end }}
{{- with .name -}}{{ . }}{{- else -}}{{ .url }}{{- end -}}
{{- with .url -}}</a>{{- end }}

View File

@ -30,6 +30,12 @@
{{ end }}{{ end }}
</div>
</div>
{{ with .Params.source }}
<div class="source">
{{ partial "source" . }}
</div>
{{ end }}
{{ end }}
{{ define "main" }}

View File

@ -180,6 +180,13 @@ body {
font-size: 1.5em;
font-weight: bold;
}
.source {
margin-top: 15px;
text-align: right;
font-size: 0.9em;
font-style: italic;
}
}
#main_photo {

View File

@ -128,6 +128,11 @@ body {
#content #pagename {
font-size: 1.5em;
font-weight: bold; }
#content .source {
margin-top: 15px;
text-align: right;
font-size: 0.9em;
font-style: italic; }
#main_photo {
display: flex;