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 }} {{ end }}{{ end }}
</div> </div>
</div> </div>
{{ with .Params.source }}
<div class="source">
{{ partial "source" . }}
</div>
{{ end }}
{{ end }} {{ end }}
{{ define "main" }} {{ define "main" }}

View file

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

View file

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