feat: basic website with basic content

This commit is contained in:
Matthieu Bessat 2023-10-28 10:20:52 +02:00
parent 3379242f31
commit ba403c815f
76 changed files with 2167 additions and 4 deletions

View file

@ -0,0 +1,7 @@
{{ $svg := .path }}
{{ $match := `<svg((\s|\S)*)>((\s|\S)*)</svg>` }}
{{ $input := (printf "/assets/images/%s.svg" $svg | readFile) }}
{{ $replaceWith := printf `<svg class="%s" ${1}>${2}</svg>` .class }}
{{ return (replaceRE $match $replaceWith $input | safeHTML) }}