summaryrefslogtreecommitdiff
path: root/tools/xml-to-html.xsl
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2024-02-03 13:35:25 +0300
committerdefanor <defanor@uberspace.net>2024-02-03 13:35:25 +0300
commit5e8080a223d8414814032c7e3fde4e9547eacbc0 (patch)
tree6dd055a25437b3859a2778c43c6fe011cb3a7195 /tools/xml-to-html.xsl
parent9b7934e51dbc04e6908f05b223e5b775ae0a2de2 (diff)
Treat .xsl files as sources, mirror to thunix
Whenever the XSLTs change, the affected pages should be regenerated.
Diffstat (limited to 'tools/xml-to-html.xsl')
-rw-r--r--tools/xml-to-html.xsl19
1 files changed, 15 insertions, 4 deletions
diff --git a/tools/xml-to-html.xsl b/tools/xml-to-html.xsl
index ef950b2..5785c7e 100644
--- a/tools/xml-to-html.xsl
+++ b/tools/xml-to-html.xsl
@@ -68,10 +68,14 @@
<!-- The rest is fixed metadata -->
<link property="dc:creator schema:creator foaf:maker sioc:has_creator"
href="https://defanor.uberspace.net/about.xhtml#me" />
+ <link property="dc:creator schema:creator foaf:maker sioc:has_creator"
+ href="https://www.thunix.net/~defanor/about.xhtml#me" />
<link property="dc:license schema:license"
href="https://creativecommons.org/licenses/by-sa/4.0/" />
<link property="dc:isPartOf schema:isPartOf sioc:has_container"
href="https://defanor.uberspace.net/" />
+ <link property="dc:isPartOf schema:isPartOf sioc:has_container"
+ href="https://www.thunix.net/~defanor/" />
<meta name="robots" content="noarchive" />
</head>
<body>
@@ -79,10 +83,17 @@
<xsl:apply-templates mode="body" select="xhtml:body/*" />
<footer>
<xsl:if test="not(//notes) and @created and @modified">
- <a href="https://defanor.uberspace.net/">defanor</a>,
- <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a>,
- <time><xsl:copy-of select="substring(@created,0,8)" /></time>
- <xsl:if test="substring(@created,0,8) != substring(@modified,0,8)"> to <time><xsl:copy-of select="substring(@modified,0,8)" /></time></xsl:if>
+ defanor, <a
+ href="https://creativecommons.org/licenses/by-sa/4.0/">CC
+ BY-SA 4.0</a>, <time><xsl:copy-of
+ select="substring(@created,0,8)" /></time> <xsl:if
+ test="substring(@created,0,8) !=
+ substring(@modified,0,8)"> to <time><xsl:copy-of
+ select="substring(@modified,0,8)" /></time></xsl:if>, at
+ <a
+ href="https://defanor.uberspace.net/">defanor.uberspace.net</a>
+ or <a
+ href="https://www.thunix.net/~defanor/">thunix.net/~defanor</a>
</xsl:if>
</footer>
</body>