Add a logo

This commit is contained in:
Tom Wiesing 2023-02-10 12:01:06 +01:00
parent 5339c442b7
commit b1009fa109
No known key found for this signature in database
18 changed files with 240 additions and 112 deletions

View file

@ -42,3 +42,13 @@ func MinifyHTML(source []byte) []byte {
}
return result
}
// MinifySVG minifies the svg source.
// If an error occurs, returns the minified source instead.
func MinifySVG(source []byte) []byte {
result, err := minifier.Bytes("image/svg+xml", source)
if err != nil {
return source
}
return result
}

View file

@ -25,3 +25,7 @@ func (noop) Close() error {
func MinifyHTML(source []byte) []byte {
return source
}
func MinifySVG(source []byte) []byte {
return source
}