add favicon / public folder to template and htmgo-site
BIN
htmgo-site/assets/public/apple-touch-icon.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
htmgo-site/assets/public/favicon.ico
Normal file
|
After Width: | Height: | Size: 5.1 KiB |
BIN
htmgo-site/assets/public/icon-192-maskable.png
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
BIN
htmgo-site/assets/public/icon-192.png
Normal file
|
After Width: | Height: | Size: 6.9 KiB |
BIN
htmgo-site/assets/public/icon-512-maskable.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
htmgo-site/assets/public/icon-512.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
|
|
@ -17,6 +17,8 @@ func RootPage(ctx *h.RequestContext, children ...h.Ren) *h.Element {
|
|||
h.Head(
|
||||
h.Meta("viewport", "width=device-width, initial-scale=1"),
|
||||
h.Meta("title", title),
|
||||
h.Link("/public/favicon.ico", "icon"),
|
||||
h.Link("/public/apple-touch-icon.png", "apple-touch-icon"),
|
||||
h.Meta("charset", "utf-8"),
|
||||
h.Meta("author", "htmgo"),
|
||||
h.Meta("description", description),
|
||||
|
|
|
|||
BIN
templates/starter/assets/public/apple-touch-icon.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
templates/starter/assets/public/favicon.ico
Normal file
|
After Width: | Height: | Size: 5.1 KiB |
BIN
templates/starter/assets/public/icon-192-maskable.png
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
BIN
templates/starter/assets/public/icon-192.png
Normal file
|
After Width: | Height: | Size: 6.9 KiB |
BIN
templates/starter/assets/public/icon-512-maskable.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
templates/starter/assets/public/icon-512.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
|
|
@ -8,6 +8,17 @@ func RootPage(children ...h.Ren) h.Ren {
|
|||
return h.Html(
|
||||
h.HxExtension(h.BaseExtensions()),
|
||||
h.Head(
|
||||
h.Meta("viewport", "width=device-width, initial-scale=1"),
|
||||
h.Link("/public/favicon.ico", "icon"),
|
||||
h.Link("/public/apple-touch-icon.png", "apple-touch-icon"),
|
||||
h.Meta("title", "htmgo template"),
|
||||
h.Meta("charset", "utf-8"),
|
||||
h.Meta("author", "htmgo"),
|
||||
h.Meta("description", "this is a template"),
|
||||
h.Meta("og:title", "htmgo template"),
|
||||
h.Meta("og:url", "https://htmgo.dev"),
|
||||
h.Link("canonical", "https://htmgo.dev"),
|
||||
h.Meta("og:description", "this is a template"),
|
||||
h.Link("/public/main.css", "stylesheet"),
|
||||
h.Script("/public/htmgo.js"),
|
||||
),
|
||||
|
|
|
|||