fix: missing favicon
This commit is contained in:
parent
446dcf3b49
commit
5e0637e210
3 changed files with 6 additions and 2 deletions
|
|
@ -2,5 +2,5 @@ package assets
|
|||
|
||||
import "embed"
|
||||
|
||||
//go:embed js/* css/* fonts/*
|
||||
//go:embed js/* css/* fonts/* favicon/*
|
||||
var AssetsFS embed.FS
|
||||
|
|
|
|||
4
assets/favicon/favicon.svg
Normal file
4
assets/favicon/favicon.svg
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
||||
<rect width="32" height="32" rx="6" fill="#D04A4C"/>
|
||||
<text x="16" y="23" text-anchor="middle" font-family="system-ui, -apple-system, sans-serif" font-weight="700" font-size="22" fill="#fff">B</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 271 B |
|
|
@ -34,7 +34,7 @@ templ Base(props ...SEOProps) {
|
|||
{{ cfg := ctxkeys.Config(ctx) }}
|
||||
<title>{ cfg.AppName }</title>
|
||||
}
|
||||
<link rel="icon" type="image/x-icon" href="/assets/favicon/favicon.ico"/>
|
||||
<link rel="icon" type="image/svg+xml" href="/assets/favicon/favicon.svg"/>
|
||||
<link href={ "/assets/css/output.css?v=" + templ.EscapeString(fmt.Sprintf("%d", time.Now().Unix())) } rel="stylesheet"/>
|
||||
<script src="/assets/js/htmx@2.0.7.min.js"></script>
|
||||
<script src="/assets/js/hyperscript@0.9.14.min.js"></script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue