Kaynağa Gözat

Merge pull request #18 from woudshoo/comma-space-issue

Fixed issue with " ," rendered instead of ", "
Brit Butler 12 yıl önce
ebeveyn
işleme
3a21bd10e1
2 değiştirilmiş dosya ile 6 ekleme ve 6 silme
  1. 4 4
      themes/hyde/index.tmpl
  2. 2 2
      themes/hyde/post.tmpl

+ 4 - 4
themes/hyde/index.tmpl

@@ -17,8 +17,8 @@
17 17
 <div id="tagsoup">
18 18
   <p>This blog covers
19 19
     {foreach $tag in $tags}
20
-      <a href="{$config.domain}/tag/{$tag}.html">{$tag}</a>
21
-      {if not isLast($tag)}, {/if}
20
+      <a href="{$config.domain}/tag/{$tag}.html">{$tag}</a>{nil}
21
+      {if not isLast($tag)},{sp}{/if}
22 22
     {/foreach}
23 23
 </div>
24 24
 {/if}
@@ -26,8 +26,8 @@
26 26
 <div id="monthsoup">
27 27
   <p>View posts from
28 28
     {foreach $month in $months}
29
-      <a href="{$config.domain}/date/{$month}.html">{$month}</a>
30
-      {if not isLast($month)}, {/if}
29
+      <a href="{$config.domain}/date/{$month}.html">{$month}</a>{nil}
30
+      {if not isLast($month)},{sp}{/if}
31 31
     {/foreach}
32 32
 </div>
33 33
 {/if}

+ 2 - 2
themes/hyde/post.tmpl

@@ -5,8 +5,8 @@
5 5
   <h1 class="title">{$post.title}</h1>{\n}
6 6
   <div class="tags">{\n}
7 7
     Tagged as {foreach $tag in $post.tags}
8
-                <a href="../tag/{$tag}.html">{$tag}</a>
9
-                    {if not isLast($tag)}, {/if}
8
+                <a href="../tag/{$tag}.html">{$tag}</a>{nil}
9
+                    {if not isLast($tag)},{sp}{/if}
10 10
               {/foreach}
11 11
   </div>{\n}
12 12
   <div class="date">{\n}