summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2021-01-09 08:41:44 +0300
committerdefanor <defanor@uberspace.net>2021-01-09 08:41:44 +0300
commit3fd41ca76d84c96b22e58666eefbe863b81b4f89 (patch)
tree148835d014c5b7c7da995e43d190afada5df972d
parent0e777ddcf2e9982f0092f964d76c8e4b79410428 (diff)
Copy <body/> attributes
-rwxr-xr-xtools/publish.sh2
-rw-r--r--tools/xml-to-html.xsl3
2 files changed, 3 insertions, 2 deletions
diff --git a/tools/publish.sh b/tools/publish.sh
index e57bee6..90ed8e2 100755
--- a/tools/publish.sh
+++ b/tools/publish.sh
@@ -38,4 +38,4 @@ find "${SOURCES}" -name '*.xhtml' |
# upload
rsync --exclude '.*' --exclude '*.org' --exclude 'src/' \
--exclude 'tools/' --exclude 'build/' \
- -avz . uberspace.net:homepage/web/
+ -avz . tart.uberspace.net:public_html/
diff --git a/tools/xml-to-html.xsl b/tools/xml-to-html.xsl
index c895bf2..f6aac5b 100644
--- a/tools/xml-to-html.xsl
+++ b/tools/xml-to-html.xsl
@@ -73,6 +73,7 @@
<meta name="robots" content="noarchive" />
</head>
<body>
+ <xsl:apply-templates mode="body" select="xhtml:body/@*" />
<xsl:apply-templates mode="body" select="xhtml:body/*" />
<footer>
<xsl:if test="not(//notes) and @created and @modified">
@@ -132,7 +133,7 @@
</xsl:copy>
</xsl:template>
- <xsl:template mode="body" match="node()" priority="0">
+ <xsl:template mode="body" match="@* | node()" priority="0">
<xsl:copy>
<xsl:copy-of select="@*" />
<xsl:apply-templates mode="body" />