diff --git a/static/styles.css b/static/styles.css
index 7307fbf..f8af5cd 100644
--- a/static/styles.css
+++ b/static/styles.css
@@ -252,6 +252,8 @@ iframe {
top: 2rem;
align-self: flex-start;
flex-basis: 25%;
+ max-width: 25%;
+ word-wrap: break-word;
margin-top: 2rem;
}
@media (max-width: 580px) {
diff --git a/static/styles.scss b/static/styles.scss
index ca748d5..ffa1530 100644
--- a/static/styles.scss
+++ b/static/styles.scss
@@ -293,6 +293,8 @@ iframe {
top: 2rem;
align-self: flex-start;
flex-basis: 25%;
+ max-width: 25%;
+ word-wrap: break-word;
margin-top: 2rem;
@media (max-width: 580px) {
display: flex;
diff --git a/templates/head.html b/templates/head.html
deleted file mode 100644
index bc73fae..0000000
--- a/templates/head.html
+++ /dev/null
@@ -1,72 +0,0 @@
-
- {{if eq .type "profile"}}
- Nostr Public Key {{.npub}}
-
-
-
-
- {{ if .metadata.Picture }}
-
-
- {{end}} {{ if .metadata.About }}
-
- {{end}}
-
- {{end}}
-
- {{ if eq .type "note" }}
- Nostr Event {{.nevent}}
-
-
-
-
-
- {{ if .textImageURL }}
-
-
-
-
- {{ else }}
-
-
- {{ if .image }}
-
-
- {{end}} {{ if .video }}
-
-
-
- {{end}}
-
- {{end}}
-
-
- {{end}}
-
- {{ if eq .type "address" }}
- Nostr Address {{.naddr | escapeString }}
- {{end}}
-
- {{ if eq .type "relay" }}
- Nostr Relay {{.hostname}}
-
- {{end}}
-
- {{ if eq .type "other" }}
- Nostr Event {{.kindID}} - {{.kindDescription | escapeString }}
- {{end}}
-
-
-
-
diff --git a/templates/head_common.html b/templates/head_common.html
new file mode 100644
index 0000000..deb4b01
--- /dev/null
+++ b/templates/head_common.html
@@ -0,0 +1,2 @@
+
+
diff --git a/templates/note.html b/templates/note.html
index 2317e3a..887a3be 100644
--- a/templates/note.html
+++ b/templates/note.html
@@ -1,7 +1,36 @@
- {{template "head.html" .}}
+
+
+ Nostr Event {{.nevent}}
+
+
+
+ {{ if .textImageURL }}
+
+
+ {{ else }}
+
+
+ {{ if .image }}
+
+
+ {{end}} {{ if .video }}
+
+
+
+ {{end}}
+ {{end}}
+ {{ if .description }}
+
+
+ {{end}}
+
+
+
+ {{template "head_common.html" }}
+
{{template "top.html" .}}
diff --git a/templates/other.html b/templates/other.html
index 0c61d99..b1696e6 100644
--- a/templates/other.html
+++ b/templates/other.html
@@ -1,7 +1,16 @@
- {{template "head.html" .}}
+
+ {{ if eq .type "address" }}
+ Nostr Address {{.naddr | escapeString }}
+ {{end}}
+ {{ if eq .type "other" }}
+ Nostr Event {{.kindID}} - {{.kindDescription | escapeString }}
+ {{end}}
+
+ {{template "head_common.html" }}
+
{{template "top.html" .}}
diff --git a/templates/profile.html b/templates/profile.html
index 7d55c47..23bb8df 100644
--- a/templates/profile.html
+++ b/templates/profile.html
@@ -1,7 +1,25 @@
- {{template "head.html" .}}
+
+ {{.metadata.Name | escapeString}} on nostr - {{.npub}}
+
+
+
+ {{ if .metadata.Picture }}
+
+
+ {{end}}
+ {{ if .metadata.About }}
+
+
+ {{end}}
+
+
+
+
+ {{template "head_common.html" }}
+
{{template "top.html" .}}
diff --git a/templates/relay.html b/templates/relay.html
index b5b5bb9..b7d3968 100644
--- a/templates/relay.html
+++ b/templates/relay.html
@@ -1,7 +1,24 @@
- {{template "head.html" .}}
+
+ Nostr Relay {{.hostname | escapeString}}
+
+
+
+ {{ if .info.Icon }}
+
+
+ {{end}}
+ {{ if .info.Description }}
+
+
+ {{end}}
+
+
+
+ {{template "head_common.html" }}
+
{{template "top.html" .}}