Add a logo
This commit is contained in:
parent
5339c442b7
commit
b1009fa109
18 changed files with 240 additions and 112 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,3 +25,7 @@ func (noop) Close() error {
|
|||
func MinifyHTML(source []byte) []byte {
|
||||
return source
|
||||
}
|
||||
|
||||
func MinifySVG(source []byte) []byte {
|
||||
return source
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue