diff --git a/htmgo-site/assets/public/apple-touch-icon.png b/htmgo-site/assets/public/apple-touch-icon.png index d10e9fe..9430f21 100644 Binary files a/htmgo-site/assets/public/apple-touch-icon.png and b/htmgo-site/assets/public/apple-touch-icon.png differ diff --git a/htmgo-site/assets/public/favicon-96x96.png b/htmgo-site/assets/public/favicon-96x96.png new file mode 100644 index 0000000..df16ca9 Binary files /dev/null and b/htmgo-site/assets/public/favicon-96x96.png differ diff --git a/htmgo-site/assets/public/favicon.ico b/htmgo-site/assets/public/favicon.ico index 040cccf..1022b26 100644 Binary files a/htmgo-site/assets/public/favicon.ico and b/htmgo-site/assets/public/favicon.ico differ diff --git a/htmgo-site/assets/public/favicon.svg b/htmgo-site/assets/public/favicon.svg new file mode 100644 index 0000000..024a9b4 --- /dev/null +++ b/htmgo-site/assets/public/favicon.svg @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/htmgo-site/assets/public/icon-192-maskable.png b/htmgo-site/assets/public/icon-192-maskable.png deleted file mode 100644 index d4d6efb..0000000 Binary files a/htmgo-site/assets/public/icon-192-maskable.png and /dev/null differ diff --git a/htmgo-site/assets/public/icon-192.png b/htmgo-site/assets/public/icon-192.png deleted file mode 100644 index f533435..0000000 Binary files a/htmgo-site/assets/public/icon-192.png and /dev/null differ diff --git a/htmgo-site/assets/public/icon-512-maskable.png b/htmgo-site/assets/public/icon-512-maskable.png deleted file mode 100644 index db61f3d..0000000 Binary files a/htmgo-site/assets/public/icon-512-maskable.png and /dev/null differ diff --git a/htmgo-site/assets/public/icon-512.png b/htmgo-site/assets/public/icon-512.png deleted file mode 100644 index ba0665d..0000000 Binary files a/htmgo-site/assets/public/icon-512.png and /dev/null differ diff --git a/htmgo-site/assets/public/site.webmanifest b/htmgo-site/assets/public/site.webmanifest new file mode 100644 index 0000000..7eaf1ee --- /dev/null +++ b/htmgo-site/assets/public/site.webmanifest @@ -0,0 +1,21 @@ +{ + "name": "htmgo", + "short_name": "htmgo", + "icons": [ + { + "src": "/public/web-app-manifest-192x192.png", + "sizes": "192x192", + "type": "image/png", + "purpose": "maskable" + }, + { + "src": "/public/web-app-manifest-512x512.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "maskable" + } + ], + "theme_color": "#ffffff", + "background_color": "#ffffff", + "display": "standalone" +} diff --git a/htmgo-site/assets/public/web-app-manifest-192x192.png b/htmgo-site/assets/public/web-app-manifest-192x192.png new file mode 100644 index 0000000..dd5087d Binary files /dev/null and b/htmgo-site/assets/public/web-app-manifest-192x192.png differ diff --git a/htmgo-site/assets/public/web-app-manifest-512x512.png b/htmgo-site/assets/public/web-app-manifest-512x512.png new file mode 100644 index 0000000..2b0a1c4 Binary files /dev/null and b/htmgo-site/assets/public/web-app-manifest-512x512.png differ diff --git a/htmgo-site/pages/base/root.go b/htmgo-site/pages/base/root.go index a522438..84e2c93 100644 --- a/htmgo-site/pages/base/root.go +++ b/htmgo-site/pages/base/root.go @@ -80,6 +80,17 @@ func ConfigurableRootPage(ctx *h.RequestContext, props RootPageProps) *h.Page { ) } +func RootPageWithTitle(ctx *h.RequestContext, title string, children ...h.Ren) *h.Page { + return ConfigurableRootPage( + ctx, + RootPageProps{ + Title: title, + Description: "build simple and scalable systems with go + htmx", + Children: h.Fragment(children...), + }, + ) +} + func RootPage(ctx *h.RequestContext, children ...h.Ren) *h.Page { return ConfigurableRootPage( ctx, diff --git a/htmgo-site/pages/examples/index.go b/htmgo-site/pages/examples/index.go index 98f5575..c826b16 100644 --- a/htmgo-site/pages/examples/index.go +++ b/htmgo-site/pages/examples/index.go @@ -8,8 +8,9 @@ import ( func Index(ctx *h.RequestContext) *h.Page { snippet := GetSnippet(ctx) - return base.RootPage( + return base.RootPageWithTitle( ctx, + "Examples", h.Div( h.Class("flex h-full"), h.Aside(