feat: Avancement sur le design

This commit is contained in:
2020-11-09 12:36:28 +01:00
parent c4de87fe49
commit f1fcafd47b
40 changed files with 489 additions and 68 deletions

View File

@ -0,0 +1,5 @@
{{/*
S'il n'y a pas de / dans l'url d'une image alors on ajoute le path de l'article
*/}}
{{ $path := cond (in .Destination "/") .Destination (path.Join "/" .Page.Dir .Destination) }}
<img src="{{ $path | safeURL }}" alt="{{ .Text }}" {{ with .Title}} title="{{ . }}"{{ end }} />