]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - templates/titlepage.tmpl
Optimise use of gettext, and avoid ugly warnings if Locale::gettext is not available.
[git.ikiwiki.info.git] / templates / titlepage.tmpl
index 0676a098e9b0cc7ed4a16549cc81348e093312f5..8a11e693ebfe08602a003f01bda55ff8dec316bf 100644 (file)
@@ -1 +1,7 @@
-<p><a href="<TMPL_VAR PAGEURL>"><TMPL_VAR TITLE ESCAPE=HTML></a></p>
+<p>
+<TMPL_IF NAME="PERMALINK">
+<a href="<TMPL_VAR PERMALINK>"><TMPL_VAR TITLE></a>
+<TMPL_ELSE>
+<a href="<TMPL_VAR PAGEURL>"><TMPL_VAR TITLE></a>
+</TMPL_IF>
+</p>