]> sipb.mit.edu Git - ikiwiki.git/blob - doc/todo/Add_space_before_slash_in_parent_links.mdwn
rename
[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 >>> 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]]
10
11 Before:
12
13     ikiwiki/ todo/ Add space before slash in parent links
14
15 After:
16
17     ikiwiki / todo / Add space before slash in parent links
18
19 Patch:
20
21     diff --git a/templates/misc.tmpl b/templates/misc.tmpl
22     index 184920e..80e6d0b 100644
23     --- a/templates/misc.tmpl
24     +++ b/templates/misc.tmpl
25     @@ -15,7 +15,7 @@
26
27      <div class="header">
28      <span>
29     -<TMPL_VAR INDEXLINK>/ <TMPL_VAR TITLE>
30     +<TMPL_VAR INDEXLINK> / <TMPL_VAR TITLE>
31      </span>
32      </div>
33
34     diff --git a/templates/page.tmpl b/templates/page.tmpl
35     index 3a1ac9e..1978e93 100644
36     --- a/templates/page.tmpl
37     +++ b/templates/page.tmpl
38     @@ -17,7 +17,7 @@
39      <div class="header">
40      <span>
41      <TMPL_LOOP NAME="PARENTLINKS">
42     -<a href="<TMPL_VAR NAME=URL>"><TMPL_VAR NAME=PAGE></a>/
43     +<a href="<TMPL_VAR NAME=URL>"><TMPL_VAR NAME=PAGE></a> /
44      </TMPL_LOOP>
45      <TMPL_VAR TITLE>
46      </span>
47     diff --git a/templates/recentchanges.tmpl b/templates/recentchanges.tmpl
48     index e03482f..4877395 100644
49     --- a/templates/recentchanges.tmpl
50     +++ b/templates/recentchanges.tmpl
51     @@ -15,7 +15,7 @@
52
53      <div class="header">
54      <span>
55     -<TMPL_VAR INDEXLINK>/ <TMPL_VAR TITLE>
56     +<TMPL_VAR INDEXLINK> / <TMPL_VAR TITLE>
57      </span>
58      </div>