feat: basic website with basic content
This commit is contained in:
parent
3379242f31
commit
ba403c815f
76 changed files with 2167 additions and 4 deletions
7
layouts/partials/helpers/svg.html
Normal file
7
layouts/partials/helpers/svg.html
Normal 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) }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue