about summary refs log tree commit diff homepage
path: root/xhtml.xslt
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2023-03-18 04:28:55 +0900
committerNguyễn Gia Phong <mcsinyx@disroot.org>2023-03-18 04:28:55 +0900
commit38972ae499826bc61e56f52fa74ced447c5dd056 (patch)
tree41d999d3c96986a58a7871ca9015fb1ffe3236dd /xhtml.xslt
parent5b56f1c5e757fc7165efac2b0c9e14583095ad81 (diff)
downloadsite-38972ae499826bc61e56f52fa74ced447c5dd056.tar.gz
Automate generation process
Diffstat (limited to 'xhtml.xslt')
-rw-r--r--xhtml.xslt19
1 files changed, 19 insertions, 0 deletions
diff --git a/xhtml.xslt b/xhtml.xslt
new file mode 100644
index 0000000..2bdb370
--- /dev/null
+++ b/xhtml.xslt
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                xmlns:xhtml="http://www.w3.org/1999/xhtml"
+                xmlns="http://www.w3.org/1999/xhtml"
+                exclude-result-prefixes="xhtml">
+  <xsl:output method="xml" indent="yes" encoding="UTF-8"/>
+  <xsl:strip-space elements="*"/>
+  <xsl:template match="/xhtml:html">
+    <html lang="en">
+      <head>
+        <meta name="color-scheme" content="dark light"/>
+        <meta name="viewport" content="width=device-width,initial-scale=1.0"/>
+        <link rel="icon" href="data:,"/>
+        <title><xsl:value-of select="(//xhtml:h1)[1]"/></title>
+      </head>
+      <xsl:copy-of select="xhtml:body"/>
+    </html>
+  </xsl:template>
+</xsl:stylesheet>