about summary refs log tree commit diff homepage
path: root/atom.xslt
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2023-01-27 22:10:16 +0900
committerNguyễn Gia Phong <mcsinyx@disroot.org>2023-01-27 22:10:16 +0900
commit6954e559a2bff00e839f052ced2747c63674f5f9 (patch)
tree21c8e3e668f3838ccc701cfaaa23709ef0fe4a10 /atom.xslt
parent61fc04a1f1c6cb676df3aa42aee1bd22bf79a61d (diff)
downloadpx-6954e559a2bff00e839f052ced2747c63674f5f9.tar.gz
Preserve hyphens in titles
Diffstat (limited to 'atom.xslt')
-rw-r--r--atom.xslt4
1 files changed, 2 insertions, 2 deletions
diff --git a/atom.xslt b/atom.xslt
index 3d65467..2ed6e5b 100644
--- a/atom.xslt
+++ b/atom.xslt
@@ -14,12 +14,12 @@
       <xsl:variable name="url">
         <xsl:value-of select="$base"/>
         <xsl:text>#</xsl:text>
-        <xsl:value-of select="@id"/>
+        <xsl:value-of select="translate(@title, ' ', '-')"/>
       </xsl:variable>
       <entry>
         <link rel="alternate" type="application/xhtml+xml" href="{$url}"/>
         <id><xsl:value-of select="$url"/></id>
-        <title><xsl:value-of select="translate(@id, '-', ' ')"/></title>
+        <title><xsl:value-of select="@title"/></title>
         <content type="xhtml">
           <div xmlns="http://www.w3.org/1999/xhtml">
             <xsl:for-each select="picture">