From 7ce788f4515d0e48f20c0814b40ab3f217f17414 Mon Sep 17 00:00:00 2001
From: Steven Clontz
Date: Tue, 7 Apr 2026 12:15:40 -0500
Subject: [PATCH 1/8] first pass at social metas
---
xsl/pretext-html.xsl | 126 ++++++++++++++++++++++++++++++++++++-------
1 file changed, 107 insertions(+), 19 deletions(-)
diff --git a/xsl/pretext-html.xsl b/xsl/pretext-html.xsl
index 467ca7a15..4d721ec89 100644
--- a/xsl/pretext-html.xsl
+++ b/xsl/pretext-html.xsl
@@ -454,7 +454,7 @@ along with MathBook XML. If not, see .
-
+
@@ -11146,7 +11146,7 @@ along with MathBook XML. If not, see .
-
+
@@ -11464,17 +11464,18 @@ along with MathBook XML. If not, see .
-
+
+
-
-
+
+
-
+
@@ -11489,9 +11490,10 @@ along with MathBook XML. If not, see .
-
+
+
-
+
@@ -11502,23 +11504,79 @@ along with MathBook XML. If not, see .
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Document Logo
+
+
+
+
+
+
+ Document Logo
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
@@ -11527,19 +11585,49 @@ along with MathBook XML. If not, see .
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ summary_large_image
+
+
-
+
+
-
-
- :
-
-
+
+
+
+ :
+
+
+
+
+
+
+ :
+
+
+
From 857c31120d4855fdce4e475db11bb94ead4377c1 Mon Sep 17 00:00:00 2001
From: Steven Clontz
Date: Tue, 7 Apr 2026 19:15:52 +0000
Subject: [PATCH 2/8] fix xsl:if
---
xsl/pretext-html.xsl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/xsl/pretext-html.xsl b/xsl/pretext-html.xsl
index 4d721ec89..6d2102647 100644
--- a/xsl/pretext-html.xsl
+++ b/xsl/pretext-html.xsl
@@ -11614,14 +11614,14 @@ along with MathBook XML. If not, see .
-
+
:
-
+
:
From baf880beaebf2cbc960c69c4d441c329afa246fc Mon Sep 17 00:00:00 2001
From: Steven Clontz
Date: Tue, 7 Apr 2026 19:28:01 +0000
Subject: [PATCH 3/8] use subtitle as backup description, normalize spacing for
blurb
---
xsl/pretext-html.xsl | 44 ++++++++++++++++++++++++++++++--------------
1 file changed, 30 insertions(+), 14 deletions(-)
diff --git a/xsl/pretext-html.xsl b/xsl/pretext-html.xsl
index 6d2102647..ab3b4949a 100644
--- a/xsl/pretext-html.xsl
+++ b/xsl/pretext-html.xsl
@@ -11558,20 +11558,36 @@ along with MathBook XML. If not, see .
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
From f8b92762e35bd9c18a8c8bcdca946f54016a83dc Mon Sep 17 00:00:00 2001
From: Steven Clontz
Date: Tue, 7 Apr 2026 19:32:52 +0000
Subject: [PATCH 4/8] revert to title-plain, add subtitle if blurb exists
---
xsl/pretext-html.xsl | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
diff --git a/xsl/pretext-html.xsl b/xsl/pretext-html.xsl
index ab3b4949a..86acc01ce 100644
--- a/xsl/pretext-html.xsl
+++ b/xsl/pretext-html.xsl
@@ -11537,14 +11537,22 @@ along with MathBook XML. If not, see .
-
+
+
+ :
+
+
-
+
+
+ :
+
+
@@ -11552,7 +11560,11 @@ along with MathBook XML. If not, see .
-
+
+
+ :
+
+
From 4e7b6b056627740e4f1c725e6d32d02cc1965a37 Mon Sep 17 00:00:00 2001
From: Steven Clontz
Date: Tue, 7 Apr 2026 19:34:46 +0000
Subject: [PATCH 5/8] add blurb to sample-article
---
examples/sample-article/sample-article.xml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/examples/sample-article/sample-article.xml b/examples/sample-article/sample-article.xml
index 2d5012e48..0c3450b23 100644
--- a/examples/sample-article/sample-article.xml
+++ b/examples/sample-article/sample-article.xml
@@ -197,6 +197,11 @@ along with MathBook XML. If not, see .
+
+
+ This is a simple string (no markup is allowed) that describes
+ this document, a sample article for the PreTeXt markup language.
+
-
+
This is a simple string (no markup is allowed) that describes
this document, a sample article for the PreTeXt markup language.
From b867072143c9aad233917367b9c565ef0186e4ff Mon Sep 17 00:00:00 2001
From: Steven Clontz
Date: Mon, 13 Apr 2026 15:52:04 +0000
Subject: [PATCH 8/8] DRY up code, fix twitter card type when no image exists
---
xsl/pretext-html.xsl | 162 ++++++++++++++-----------------------------
1 file changed, 52 insertions(+), 110 deletions(-)
diff --git a/xsl/pretext-html.xsl b/xsl/pretext-html.xsl
index 66cbe4a49..a5b7436ad 100644
--- a/xsl/pretext-html.xsl
+++ b/xsl/pretext-html.xsl
@@ -11476,7 +11476,7 @@ along with MathBook XML. If not, see .
-
+
@@ -11490,11 +11490,11 @@ along with MathBook XML. If not, see .
-
-
+
+
@@ -11504,37 +11504,21 @@ along with MathBook XML. If not, see .
-
-
-
-
-
-
-
-
-
-
-
-
+
+
Document Logo
-
-
-
-
- Document Logo
-
-
-
-
+
+
+
@@ -11544,35 +11528,11 @@ along with MathBook XML. If not, see .
-
-
-
-
-
-
- :
-
-
-
-
-
-
-
-
-
-
-
- :
-
-
-
-
-
-
-
+
+
@@ -11585,81 +11545,63 @@ along with MathBook XML. If not, see .
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
- summary_large_image
+
+
+ summary_large_image
+
+
+ summary
+
+
-
-
+
+
+
-
-
-
+
+
+
+ twitter:
+
+
+
+
+
+
+
+
+
-
- :
+ og:
-
-
-
-
- :
-
+
+
-
-
-
-
-
+
+
+
+
+
+ book:
+
+
+
+
+
+
+