浏览代码

Template linking fix.

Brit Butler 11 年之前
父节点
当前提交
c66703ed19
共有 6 个文件被更改,包括 16 次插入16 次删除
  1. 1 1
      themes/atom.tmpl
  2. 5 5
      themes/hyde/index.tmpl
  3. 3 3
      themes/hyde/post.tmpl
  4. 3 3
      themes/readable/index.tmpl
  5. 2 2
      themes/readable/post.tmpl
  6. 2 2
      themes/rss.tmpl

+ 1 - 1
themes/atom.tmpl

@@ -14,7 +14,7 @@
14 14
 
15 15
   {foreach $post in $content.posts}
16 16
   <entry>
17
-    <link type="text/html" rel="alternate" href="{$config.domain}/posts/{$post.slug}{$config.pageExt}"/>
17
+    <link type="text/html" rel="alternate" href="{$config.domain}/posts/{$post.slug}.{$config.pageExt}"/>
18 18
     <title>{$post.title}</title>
19 19
     <published>{$post.date}</published>
20 20
     <updated>{$post.date}</updated>

+ 5 - 5
themes/hyde/index.tmpl

@@ -4,20 +4,20 @@
4 4
 <h1 class="title">{$index.title}</h1>
5 5
 {foreach $post in $index.posts}
6 6
   <div class="article-meta">
7
-    <a class="article-title" href="{$config.domain}/posts/{$post.slug}{$config.pageExt}">{$post.title}</a>
7
+    <a class="article-title" href="{$config.domain}/posts/{$post.slug}.{$config.pageExt}">{$post.title}</a>
8 8
     <div class="date"> posted on {$post.date}</div>
9 9
     <div class="article">{$post.text |noAutoescape}</div>
10 10
   </div>
11 11
 {/foreach}
12 12
 <div id="relative-nav">
13
-  {if $prev} <a href="{$prev}{$config.pageExt}">Previous</a> {/if}
14
-  {if $next} <a href="{$next}{$config.pageExt}">Next</a> {/if}
13
+  {if $prev} <a href="{$prev}.{$config.pageExt}">Previous</a> {/if}
14
+  {if $next} <a href="{$next}.{$config.pageExt}">Next</a> {/if}
15 15
 </div>
16 16
 {if $tags}
17 17
 <div id="tagsoup">
18 18
   <p>This blog covers
19 19
     {foreach $tag in $tags}
20
-      <a href="{$config.domain}/tag/{$tag.slug}{$config.pageExt}">{$tag.name}</a>{nil}
20
+      <a href="{$config.domain}/tag/{$tag.slug}.{$config.pageExt}">{$tag.name}</a>{nil}
21 21
       {if not isLast($tag)},{sp}{/if}
22 22
     {/foreach}
23 23
 </div>
@@ -26,7 +26,7 @@
26 26
 <div id="monthsoup">
27 27
   <p>View posts from
28 28
     {foreach $month in $months}
29
-      <a href="{$config.domain}/date/{$month}{$config.pageExt}">{$month}</a>{nil}
29
+      <a href="{$config.domain}/date/{$month}.{$config.pageExt}">{$month}</a>{nil}
30 30
       {if not isLast($month)},{sp}{/if}
31 31
     {/foreach}
32 32
 </div>

+ 3 - 3
themes/hyde/post.tmpl

@@ -5,7 +5,7 @@
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.slug}{$config.pageExt}">{$tag.name}</a>{nil}
8
+                <a href="../tag/{$tag.slug}.{$config.pageExt}">{$tag.name}</a>{nil}
9 9
                     {if not isLast($tag)},{sp}{/if}
10 10
               {/foreach}
11 11
   </div>{\n}
@@ -17,7 +17,7 @@
17 17
   {$post.text |noAutoescape}
18 18
 </div>{\n}
19 19
 <div class="relative-nav">{\n}
20
-  {if $prev} <a href="{$config.domain}/posts/{$prev.slug}{$config.pageExt}">Previous</a><br> {/if}{\n}
21
-  {if $next} <a href="{$config.domain}/posts/{$next.slug}{$config.pageExt}">Next</a><br> {/if}{\n}
20
+  {if $prev} <a href="{$config.domain}/posts/{$prev.slug}.{$config.pageExt}">Previous</a><br> {/if}{\n}
21
+  {if $next} <a href="{$config.domain}/posts/{$next.slug}.{$config.pageExt}">Next</a><br> {/if}{\n}
22 22
 </div>{\n}
23 23
 {/template}

+ 3 - 3
themes/readable/index.tmpl

@@ -4,7 +4,7 @@
4 4
 <h1 class="page-header">{$index.title}</h1>
5 5
 {foreach $post in $index.posts}
6 6
   <div class="row-fluid">
7
-    <h1><a href="{$config.domain}/posts/{$post.slug}{$config.pageExt}">{$post.title}</a></h1>
7
+    <h1><a href="{$config.domain}/posts/{$post.slug}.{$config.pageExt}">{$post.title}</a></h1>
8 8
     <p class="date-posted">posted on {$post.date}</p>
9 9
     {$post.text |noAutoescape}
10 10
   </div>
@@ -13,7 +13,7 @@
13 13
 <div class="row-fluid">
14 14
   <p>This blog covers
15 15
     {foreach $tag in $tags}
16
-      <a href="{$config.domain}/tag/{$tag.slug}{$config.pageExt}">{$tag.name}</a>{nil}
16
+      <a href="{$config.domain}/tag/{$tag.slug}.{$config.pageExt}">{$tag.name}</a>{nil}
17 17
       {if not isLast($tag)},{sp}{/if}
18 18
     {/foreach}
19 19
   </p>
@@ -23,7 +23,7 @@
23 23
 <div class="row-fluid">
24 24
   <p>View posts from
25 25
     {foreach $month in $months}
26
-      <a href="{$config.domain}/date/{$month}{$config.pageExt}">{$month}</a>{nil}
26
+      <a href="{$config.domain}/date/{$month}.{$config.pageExt}">{$month}</a>{nil}
27 27
       {if not isLast($month)},{sp}{/if}
28 28
     {/foreach}
29 29
   </p>

+ 2 - 2
themes/readable/post.tmpl

@@ -14,8 +14,8 @@
14 14
   {$post.text |noAutoescape}
15 15
   
16 16
   <ul class="pager">
17
-    {if $prev}<li class="previous"><a href="{$config.domain}/posts/{$prev.slug}{$config.pageExt}">&larr; Previous</a></li>{/if}{\n}
18
-    {if $next}<li class="next"><a href="{$config.domain}/posts/{$next.slug}{$config.pageExt}">Next &rarr;</a></li>{/if}{\n}
17
+    {if $prev}<li class="previous"><a href="{$config.domain}/posts/{$prev.slug}.{$config.pageExt}">&larr; Previous</a></li>{/if}{\n}
18
+    {if $next}<li class="next"><a href="{$config.domain}/posts/{$next.slug}.{$config.pageExt}">Next &rarr;</a></li>{/if}{\n}
19 19
   </ul>
20 20
 </div>{\n}
21 21
 {/template}

+ 2 - 2
themes/rss.tmpl

@@ -13,10 +13,10 @@
13 13
     {foreach $post in $content.posts}
14 14
     <item>
15 15
       <title>{$post.title}</title>
16
-      <link>{$config.domain}/posts/{$post.slug}{$config.pageExt}</link>
16
+      <link>{$config.domain}/posts/{$post.slug}.{$config.pageExt}</link>
17 17
       <pubDate>{$post.date}</pubDate>
18 18
       <author>{$config.author}</author>
19
-      <guid isPermaLink="true">{$config.domain}/posts/{$post.slug}{$config.pageExt}</guid>
19
+      <guid isPermaLink="true">{$config.domain}/posts/{$post.slug}.{$config.pageExt}</guid>
20 20
       {foreach $tag in $post.tags}
21 21
         <category><![CDATA[ {$tag} ]]></category>
22 22
       {/foreach}