about summary refs log tree commit diff homepage
path: root/page.xslt
diff options
context:
space:
mode:
Diffstat (limited to 'page.xslt')
-rw-r--r--page.xslt9
1 files changed, 6 insertions, 3 deletions
diff --git a/page.xslt b/page.xslt
index a739083..2b529b1 100644
--- a/page.xslt
+++ b/page.xslt
@@ -19,9 +19,12 @@
         </nav>
 
         <xsl:for-each select="post">
-          <article id="{@id}">
-            <h2><a href="#{@id}">
-              <xsl:value-of select="translate(@id, '-', ' ')"/>
+          <xsl:variable name="id">
+            <xsl:value-of select="translate(@title, ' ', '-')"/>
+          </xsl:variable>
+          <article id="{$id}">
+            <h2><a href="#{$id}">
+              <xsl:value-of select="@title"/>
             </a></h2>
             <xsl:for-each select="picture">
               <a href="{@filename}.jpg">