2007-12-21 17:04:26 +01:00
This patch adds a space before the forward-slash in the the parent links. There is already a space after the slash.
2007-12-21 22:21:50 +01:00
> I intentionally put the space after the slash and not before, because I
> like how it looks that way. So I don't plan to apply this patch unless a
> lot of people disagree with me or whatever. --[[Joey]]
2008-03-18 10:47:14 +01:00
>> Couldn't we export what's put between the links to a variable? For instance, I might actually want to set it to ' : ' or '→'. --[[madduck]]
2008-04-09 08:36:12 +02:00
>>> Yes, please. This seems to be something a lot of people want to customize. (I certainly do -- a forward slash only looks natural to Unix users) --[[sabr]]
2007-12-21 17:04:26 +01:00
Before:
ikiwiki/ todo/ Add space before slash in parent links
After:
ikiwiki / todo / Add space before slash in parent links
Patch:
diff --git a/templates/misc.tmpl b/templates/misc.tmpl
2007-12-21 17:31:48 +01:00
index 184920e..80e6d0b 100644
2007-12-21 17:04:26 +01:00
--- a/templates/misc.tmpl
+++ b/templates/misc.tmpl
@@ -15,7 +15,7 @@
<div class="header">
<span>
2007-12-21 17:31:48 +01:00
-<TMPL_VAR INDEXLINK>/ <TMPL_VAR TITLE>
+<TMPL_VAR INDEXLINK> / <TMPL_VAR TITLE>
2007-12-21 17:04:26 +01:00
</span>
</div>
diff --git a/templates/page.tmpl b/templates/page.tmpl
2007-12-21 17:31:48 +01:00
index 3a1ac9e..1978e93 100644
2007-12-21 17:04:26 +01:00
--- a/templates/page.tmpl
+++ b/templates/page.tmpl
@@ -17,7 +17,7 @@
<div class="header">
<span>
<TMPL_LOOP NAME="PARENTLINKS">
2007-12-21 17:31:48 +01:00
-<a href="<TMPL_VAR NAME=URL>"><TMPL_VAR NAME=PAGE></a>/
+<a href="<TMPL_VAR NAME=URL>"><TMPL_VAR NAME=PAGE></a> /
2007-12-21 17:04:26 +01:00
</TMPL_LOOP>
<TMPL_VAR TITLE>
</span>
diff --git a/templates/recentchanges.tmpl b/templates/recentchanges.tmpl
2007-12-21 17:31:48 +01:00
index e03482f..4877395 100644
2007-12-21 17:04:26 +01:00
--- a/templates/recentchanges.tmpl
+++ b/templates/recentchanges.tmpl
@@ -15,7 +15,7 @@
<div class="header">
<span>
2007-12-21 17:31:48 +01:00
-<TMPL_VAR INDEXLINK>/ <TMPL_VAR TITLE>
+<TMPL_VAR INDEXLINK> / <TMPL_VAR TITLE>
2007-12-21 17:04:26 +01:00
</span>
</div>