From 617b70890d54f00165593a01d98627874b3adc77 Mon Sep 17 00:00:00 2001 From: Guus der Kinderen Date: Wed, 1 Apr 2026 11:33:08 +0200 Subject: [PATCH 1/4] Add Open Graph and social metadata for richer link previews Introduce Open Graph and Twitter metadata in generated XEP HTML so links render better across social platforms and consumers. --- xep.xsl | 92 +++++++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 73 insertions(+), 19 deletions(-) diff --git a/xep.xsl b/xep.xsl index 5c7b6a2cb..aea4a5bb9 100644 --- a/xep.xsl +++ b/xep.xsl @@ -170,6 +170,25 @@ OR OTHER DEALINGS IN THE SOFTWARE. + + + + + + https://xmpp.org/extensions/attic/xep- + + - + + .html + + + https://xmpp.org/extensions/xep- + + .html + + + XEP-<xsl:value-of select='/xep/header/number'/>:<xsl:text> </xsl:text><xsl:value-of select='/xep/header/title' /> @@ -191,6 +210,16 @@ content: "XEP-"; viewport width=device-width, initial-scale=1.0 + + + title + XEP-: + + + description + + + DC.Title @@ -234,6 +263,50 @@ content: "XEP-"; + + + og:type + website + + + og:url + + + + og:title + XEP-: + + + og:description + + + + og:image + https://xmpp.org/images/london.jpg + + + + + twitter:card + summary + + + twitter:url + + + + twitter:title + XEP-: + + + twitter:description + + + + twitter:image + https://xmpp.org/images/logos/xmpp-logo.svg + + @@ -539,25 +612,6 @@ content: "XEP-"; - - - - - - https://xmpp.org/extensions/attic/xep- - - - - - .html - - - https://xmpp.org/extensions/xep- - - .html - - -
 
 @report{,

From 79e9f0071e0b2ed584dfdff61521367a7c0fd34e Mon Sep 17 00:00:00 2001
From: Guus der Kinderen 
Date: Wed, 1 Apr 2026 12:02:57 +0200
Subject: [PATCH 2/4] xep.xsl: rename `bibtext-url` variable to `canonical-url`

The variable is now used not only for BibTeX entries, but also for Open Graph data. Renaming the variable to better reflect its broader usage.
---
 xep.xsl | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/xep.xsl b/xep.xsl
index aea4a5bb9..b052f3f5c 100644
--- a/xep.xsl
+++ b/xep.xsl
@@ -170,7 +170,7 @@ OR OTHER DEALINGS IN THE SOFTWARE.
   
 
   
-    
+    
       
         
         
       

From b389b4f42763eeac4af9c89f3b5ffffeeeeb6331 Mon Sep 17 00:00:00 2001
From: Guus der Kinderen 
Date: Wed, 1 Apr 2026 18:46:09 +0200
Subject: [PATCH 4/4] xep.xsl: Switch link preview image, additional OG
 attributes

Per review feedback of @cal0pteryx:
- Switched to the dedicated image for link previews (which is also used on xmpp.org)
- Added additional Open Graph attributes
---
 xep.xsl | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/xep.xsl b/xep.xsl
index 1ee4e28ef..d4cca7541 100644
--- a/xep.xsl
+++ b/xep.xsl
@@ -282,7 +282,19 @@ content: "XEP-";
         
         
           og:image
-          https://xmpp.org/images/london.jpg
+          https://xmpp.org/images/logos/xmpp-logo-text-banner.jpg
+        
+        
+          og:image:alt
+          XMPP (Extensible Messaging and Presence Protocol) Logo
+        
+        
+          og:image:width
+          1200
+        
+        
+          og:image:height
+          630
         
         
         
@@ -304,7 +316,7 @@ content: "XEP-";
         
         
           twitter:image
-          https://xmpp.org/images/logos/xmpp-logo-text-black.png
+          https://xmpp.org/images/logos/xmpp-logo-text-banner.jpg