]> sipb.mit.edu Git - ikiwiki.git/blob - doc/todo/Add_space_before_slash_in_parent_links.mdwn
Merge branch 'master' of ssh://git.kitenet.net/srv/git/ikiwiki.info
[ikiwiki.git] / doc / todo / Add_space_before_slash_in_parent_links.mdwn
1 This patch adds a space before the forward-slash in the the parent links. There is already a space after the slash.
2
3 > I intentionally put the space after the slash and not before, because I
4 > like how it looks that way. So I don't plan to apply this patch unless a
5 > lot of people disagree with me or whatever. --[[Joey]]
6
7 >> 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]]
8
9 Before:
10
11     ikiwiki/ todo/ Add space before slash in parent links
12
13 After:
14
15     ikiwiki / todo / Add space before slash in parent links
16
17 Patch:
18
19     diff --git a/templates/misc.tmpl b/templates/misc.tmpl
20     index 184920e..80e6d0b 100644
21     --- a/templates/misc.tmpl
22     +++ b/templates/misc.tmpl
23     @@ -15,7 +15,7 @@
24
25      <div class="header">
26      <span>
27     -<TMPL_VAR INDEXLINK>/ <TMPL_VAR TITLE>
28     +<TMPL_VAR INDEXLINK> / <TMPL_VAR TITLE>
29      </span>
30      </div>
31
32     diff --git a/templates/page.tmpl b/templates/page.tmpl
33     index 3a1ac9e..1978e93 100644
34     --- a/templates/page.tmpl
35     +++ b/templates/page.tmpl
36     @@ -17,7 +17,7 @@
37      <div class="header">
38      <span>
39      <TMPL_LOOP NAME="PARENTLINKS">
40     -<a href="<TMPL_VAR NAME=URL>"><TMPL_VAR NAME=PAGE></a>/
41     +<a href="<TMPL_VAR NAME=URL>"><TMPL_VAR NAME=PAGE></a> /
42      </TMPL_LOOP>
43      <TMPL_VAR TITLE>
44      </span>
45     diff --git a/templates/recentchanges.tmpl b/templates/recentchanges.tmpl
46     index e03482f..4877395 100644
47     --- a/templates/recentchanges.tmpl
48     +++ b/templates/recentchanges.tmpl
49     @@ -15,7 +15,7 @@
50
51      <div class="header">
52      <span>
53     -<TMPL_VAR INDEXLINK>/ <TMPL_VAR TITLE>
54     +<TMPL_VAR INDEXLINK> / <TMPL_VAR TITLE>
55      </span>
56      </div>