diff --git a/.air.toml b/.air.toml index 77e9cfa..915a6e4 100644 --- a/.air.toml +++ b/.air.toml @@ -14,7 +14,7 @@ tmp_dir = "tmp" follow_symlink = false full_bin = "" include_dir = [] - include_ext = ["go", "tpl", "tmpl", "html", "scss", "js", "xml"] + include_ext = ["go", "tpl", "tmpl", "html", "scss", "js", "xml", "png"] include_file = [] kill_delay = "0s" log = "build-errors.log" diff --git a/static/favicon.svg b/static/favicon.svg new file mode 100644 index 0000000..fbe5d8b --- /dev/null +++ b/static/favicon.svg @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + + + + + diff --git a/static/favicon/android-chrome-192x192.png b/static/favicon/android-chrome-192x192.png new file mode 100644 index 0000000..b38c037 Binary files /dev/null and b/static/favicon/android-chrome-192x192.png differ diff --git a/static/favicon/android-chrome-512x512.png b/static/favicon/android-chrome-512x512.png new file mode 100644 index 0000000..4a0d465 Binary files /dev/null and b/static/favicon/android-chrome-512x512.png differ diff --git a/static/favicon/event/apple-touch-icon.png b/static/favicon/event/apple-touch-icon.png new file mode 100644 index 0000000..625c5b8 Binary files /dev/null and b/static/favicon/event/apple-touch-icon.png differ diff --git a/static/favicon/event/favicon-16x16.png b/static/favicon/event/favicon-16x16.png new file mode 100644 index 0000000..f7112e7 Binary files /dev/null and b/static/favicon/event/favicon-16x16.png differ diff --git a/static/favicon/event/favicon-32x32.png b/static/favicon/event/favicon-32x32.png new file mode 100644 index 0000000..5333730 Binary files /dev/null and b/static/favicon/event/favicon-32x32.png differ diff --git a/static/favicon/event/favicon.ico b/static/favicon/event/favicon.ico new file mode 100644 index 0000000..451cf41 Binary files /dev/null and b/static/favicon/event/favicon.ico differ diff --git a/static/favicon/profile/apple-touch-icon.png b/static/favicon/profile/apple-touch-icon.png new file mode 100644 index 0000000..ab2e223 Binary files /dev/null and b/static/favicon/profile/apple-touch-icon.png differ diff --git a/static/favicon/profile/favicon-16x16.png b/static/favicon/profile/favicon-16x16.png new file mode 100644 index 0000000..7eb078c Binary files /dev/null and b/static/favicon/profile/favicon-16x16.png differ diff --git a/static/favicon/profile/favicon-32x32.png b/static/favicon/profile/favicon-32x32.png new file mode 100644 index 0000000..d680b95 Binary files /dev/null and b/static/favicon/profile/favicon-32x32.png differ diff --git a/static/favicon/profile/favicon.ico b/static/favicon/profile/favicon.ico new file mode 100644 index 0000000..0169a0b Binary files /dev/null and b/static/favicon/profile/favicon.ico differ diff --git a/static/favicon/site.webmanifest b/static/favicon/site.webmanifest new file mode 100644 index 0000000..bc4cde1 --- /dev/null +++ b/static/favicon/site.webmanifest @@ -0,0 +1,19 @@ +{ + "name": "", + "short_name": "", + "icons": [ + { + "src": "/favicon/android-chrome-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "/favicon/android-chrome-512x512.png", + "sizes": "512x512", + "type": "image/png" + } + ], + "theme_color": "#e42a6d", + "background_color": "#ffffff", + "display": "standalone" +} diff --git a/templates/archive.html b/templates/archive.html index b185e48..e907256 100644 --- a/templates/archive.html +++ b/templates/archive.html @@ -4,7 +4,7 @@ {{.title}} - {{template "head_common.html" }} + {{template "head_common.html" .}} diff --git a/templates/head_common.html b/templates/head_common.html index 6670e57..8d6bfff 100644 --- a/templates/head_common.html +++ b/templates/head_common.html @@ -1,2 +1,14 @@ + +{{if eq .type "profile"}} + + + +{{else}} + + + +{{end}} + + \ No newline at end of file diff --git a/templates/homepage.html b/templates/homepage.html index 8a1926b..f6044ad 100644 --- a/templates/homepage.html +++ b/templates/homepage.html @@ -5,7 +5,7 @@ njump - the nostr static gateway - {{template "head_common.html" }} + {{template "head_common.html" .}} diff --git a/templates/note.html b/templates/note.html index 4eb95ab..5b895a5 100644 --- a/templates/note.html +++ b/templates/note.html @@ -58,7 +58,7 @@ type="text/xml+oembed" href="{{.oembed}}&format=xml" /> - {{ end }} {{template "head_common.html"}} + {{ end }} {{template "head_common.html" .}} diff --git a/templates/other.html b/templates/other.html index 77dbf63..ebacd3c 100644 --- a/templates/other.html +++ b/templates/other.html @@ -9,7 +9,7 @@ Nostr Event {{.kindID}} - {{.kindDescription | escapeString }} {{end}} - {{template "head_common.html" }} + {{template "head_common.html" .}} diff --git a/templates/profile.html b/templates/profile.html index 78ac887..e540365 100644 --- a/templates/profile.html +++ b/templates/profile.html @@ -37,7 +37,7 @@ href="/{{.npub | escapeString}}.xml" /> - {{template "head_common.html" }} + {{template "head_common.html" .}} diff --git a/templates/relay.html b/templates/relay.html index 51834a6..5df72c0 100644 --- a/templates/relay.html +++ b/templates/relay.html @@ -18,7 +18,7 @@ - {{template "head_common.html" }} + {{template "head_common.html" .}}