From 9c4ddbcfbb608907b76df7fa7a57c256e9add3ea Mon Sep 17 00:00:00 2001 From: Daniele Tonon Date: Sun, 16 Jul 2023 16:27:53 +0200 Subject: [PATCH] Fix og/twitter meta reverting to the old ones --- templates/note.html | 10 ++++++---- templates/profile.html | 9 ++++----- templates/relay.html | 9 +++++---- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/templates/note.html b/templates/note.html index 220c88d..825f09f 100644 --- a/templates/note.html +++ b/templates/note.html @@ -4,12 +4,14 @@ Nostr Event {{.nevent}} by {{.metadata.Name | escapeString}} - - - + + + {{ if .textImageURL }} + + - + {{ else }} diff --git a/templates/profile.html b/templates/profile.html index e220390..322557d 100644 --- a/templates/profile.html +++ b/templates/profile.html @@ -3,17 +3,16 @@ {{.metadata.Name | escapeString}} on nostr - {{.npub}} - - - + + {{ if .metadata.Picture }} {{end}} {{ if .metadata.About }} - - + {{end}} + diff --git a/templates/relay.html b/templates/relay.html index b9cf01a..961bd44 100644 --- a/templates/relay.html +++ b/templates/relay.html @@ -2,10 +2,10 @@ - Nostr Relay {{.hostname | escapeString}} - - - + Nostr Relay {{.hostname | escapeString}} - {{.info.Name | escapeString}} + + + {{ if .info.Icon }} @@ -14,6 +14,7 @@ {{end}} +