浏览代码

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
 
14
 
15
   {foreach $post in $content.posts}
15
   {foreach $post in $content.posts}
16
   <entry>
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
     <title>{$post.title}</title>
18
     <title>{$post.title}</title>
19
     <published>{$post.date}</published>
19
     <published>{$post.date}</published>
20
     <updated>{$post.date}</updated>
20
     <updated>{$post.date}</updated>

+ 5 - 5
themes/hyde/index.tmpl

4
 <h1 class="title">{$index.title}</h1>
4
 <h1 class="title">{$index.title}</h1>
5
 {foreach $post in $index.posts}
5
 {foreach $post in $index.posts}
6
   <div class="article-meta">
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
     <div class="date"> posted on {$post.date}</div>
8
     <div class="date"> posted on {$post.date}</div>
9
     <div class="article">{$post.text |noAutoescape}</div>
9
     <div class="article">{$post.text |noAutoescape}</div>
10
   </div>
10
   </div>
11
 {/foreach}
11
 {/foreach}
12
 <div id="relative-nav">
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
 </div>
15
 </div>
16
 {if $tags}
16
 {if $tags}
17
 <div id="tagsoup">
17
 <div id="tagsoup">
18
   <p>This blog covers
18
   <p>This blog covers
19
     {foreach $tag in $tags}
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
       {if not isLast($tag)},{sp}{/if}
21
       {if not isLast($tag)},{sp}{/if}
22
     {/foreach}
22
     {/foreach}
23
 </div>
23
 </div>
26
 <div id="monthsoup">
26
 <div id="monthsoup">
27
   <p>View posts from
27
   <p>View posts from
28
     {foreach $month in $months}
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
       {if not isLast($month)},{sp}{/if}
30
       {if not isLast($month)},{sp}{/if}
31
     {/foreach}
31
     {/foreach}
32
 </div>
32
 </div>

+ 3 - 3
themes/hyde/post.tmpl

5
   <h1 class="title">{$post.title}</h1>{\n}
5
   <h1 class="title">{$post.title}</h1>{\n}
6
   <div class="tags">{\n}
6
   <div class="tags">{\n}
7
     Tagged as {foreach $tag in $post.tags}
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
                     {if not isLast($tag)},{sp}{/if}
9
                     {if not isLast($tag)},{sp}{/if}
10
               {/foreach}
10
               {/foreach}
11
   </div>{\n}
11
   </div>{\n}
17
   {$post.text |noAutoescape}
17
   {$post.text |noAutoescape}
18
 </div>{\n}
18
 </div>{\n}
19
 <div class="relative-nav">{\n}
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
 </div>{\n}
22
 </div>{\n}
23
 {/template}
23
 {/template}

+ 3 - 3
themes/readable/index.tmpl

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

+ 2 - 2
themes/readable/post.tmpl

14
   {$post.text |noAutoescape}
14
   {$post.text |noAutoescape}
15
   
15
   
16
   <ul class="pager">
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
   </ul>
19
   </ul>
20
 </div>{\n}
20
 </div>{\n}
21
 {/template}
21
 {/template}

+ 2 - 2
themes/rss.tmpl

13
     {foreach $post in $content.posts}
13
     {foreach $post in $content.posts}
14
     <item>
14
     <item>
15
       <title>{$post.title}</title>
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
       <pubDate>{$post.date}</pubDate>
17
       <pubDate>{$post.date}</pubDate>
18
       <author>{$config.author}</author>
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
       {foreach $tag in $post.tags}
20
       {foreach $tag in $post.tags}
21
         <category><![CDATA[ {$tag} ]]></category>
21
         <category><![CDATA[ {$tag} ]]></category>
22
       {/foreach}
22
       {/foreach}