feat: add logos
This commit is contained in:
parent
854da17109
commit
0b4efd59de
20 changed files with 257 additions and 14 deletions
6
layouts/partials/helpers/svg.html
Normal file
6
layouts/partials/helpers/svg.html
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{{ $svg := .path }}
|
||||
{{ $match := `<svg (.*)>((\s|\S)*)</svg>` }}
|
||||
|
||||
{{ $replaceWith := printf `<svg class="%s" ${1}>${2}</svg>` .class }}
|
||||
{{ $input := (printf "/assets/images/%s.svg" $svg | readFile) }}
|
||||
{{ return (replaceRE $match $replaceWith $input | safeHTML) }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue