Layout: ajout d'un champ "source"

Este commit está contenido en:
Théophile Bastian 2021-01-30 21:28:00 +01:00
padre 73d4525357
commit 2a63d4e9de
Se han modificado 4 ficheros con 22 adiciones y 0 borrados

4
layouts/partials/source.html Archivo normal
Ver fichero

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

Ver fichero

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

Ver fichero

@ -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 {

Ver fichero

@ -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;