Template linking fix.

This commit is contained in:
Brit Butler 2014-04-15 19:33:25 -04:00
parent f2bd0ff0ef
commit c66703ed19
6 changed files with 16 additions and 16 deletions

View file

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

View file

@ -4,20 +4,20 @@
<h1 class="title">{$index.title}</h1> <h1 class="title">{$index.title}</h1>
{foreach $post in $index.posts} {foreach $post in $index.posts}
<div class="article-meta"> <div class="article-meta">
<a class="article-title" href="{$config.domain}/posts/{$post.slug}{$config.pageExt}">{$post.title}</a> <a class="article-title" href="{$config.domain}/posts/{$post.slug}.{$config.pageExt}">{$post.title}</a>
<div class="date"> posted on {$post.date}</div> <div class="date"> posted on {$post.date}</div>
<div class="article">{$post.text |noAutoescape}</div> <div class="article">{$post.text |noAutoescape}</div>
</div> </div>
{/foreach} {/foreach}
<div id="relative-nav"> <div id="relative-nav">
{if $prev} <a href="{$prev}{$config.pageExt}">Previous</a> {/if} {if $prev} <a href="{$prev}.{$config.pageExt}">Previous</a> {/if}
{if $next} <a href="{$next}{$config.pageExt}">Next</a> {/if} {if $next} <a href="{$next}.{$config.pageExt}">Next</a> {/if}
</div> </div>
{if $tags} {if $tags}
<div id="tagsoup"> <div id="tagsoup">
<p>This blog covers <p>This blog covers
{foreach $tag in $tags} {foreach $tag in $tags}
<a href="{$config.domain}/tag/{$tag.slug}{$config.pageExt}">{$tag.name}</a>{nil} <a href="{$config.domain}/tag/{$tag.slug}.{$config.pageExt}">{$tag.name}</a>{nil}
{if not isLast($tag)},{sp}{/if} {if not isLast($tag)},{sp}{/if}
{/foreach} {/foreach}
</div> </div>
@ -26,7 +26,7 @@
<div id="monthsoup"> <div id="monthsoup">
<p>View posts from <p>View posts from
{foreach $month in $months} {foreach $month in $months}
<a href="{$config.domain}/date/{$month}{$config.pageExt}">{$month}</a>{nil} <a href="{$config.domain}/date/{$month}.{$config.pageExt}">{$month}</a>{nil}
{if not isLast($month)},{sp}{/if} {if not isLast($month)},{sp}{/if}
{/foreach} {/foreach}
</div> </div>

View file

@ -5,7 +5,7 @@
<h1 class="title">{$post.title}</h1>{\n} <h1 class="title">{$post.title}</h1>{\n}
<div class="tags">{\n} <div class="tags">{\n}
Tagged as {foreach $tag in $post.tags} Tagged as {foreach $tag in $post.tags}
<a href="../tag/{$tag.slug}{$config.pageExt}">{$tag.name}</a>{nil} <a href="../tag/{$tag.slug}.{$config.pageExt}">{$tag.name}</a>{nil}
{if not isLast($tag)},{sp}{/if} {if not isLast($tag)},{sp}{/if}
{/foreach} {/foreach}
</div>{\n} </div>{\n}
@ -17,7 +17,7 @@
{$post.text |noAutoescape} {$post.text |noAutoescape}
</div>{\n} </div>{\n}
<div class="relative-nav">{\n} <div class="relative-nav">{\n}
{if $prev} <a href="{$config.domain}/posts/{$prev.slug}{$config.pageExt}">Previous</a><br> {/if}{\n} {if $prev} <a href="{$config.domain}/posts/{$prev.slug}.{$config.pageExt}">Previous</a><br> {/if}{\n}
{if $next} <a href="{$config.domain}/posts/{$next.slug}{$config.pageExt}">Next</a><br> {/if}{\n} {if $next} <a href="{$config.domain}/posts/{$next.slug}.{$config.pageExt}">Next</a><br> {/if}{\n}
</div>{\n} </div>{\n}
{/template} {/template}

View file

@ -4,7 +4,7 @@
<h1 class="page-header">{$index.title}</h1> <h1 class="page-header">{$index.title}</h1>
{foreach $post in $index.posts} {foreach $post in $index.posts}
<div class="row-fluid"> <div class="row-fluid">
<h1><a href="{$config.domain}/posts/{$post.slug}{$config.pageExt}">{$post.title}</a></h1> <h1><a href="{$config.domain}/posts/{$post.slug}.{$config.pageExt}">{$post.title}</a></h1>
<p class="date-posted">posted on {$post.date}</p> <p class="date-posted">posted on {$post.date}</p>
{$post.text |noAutoescape} {$post.text |noAutoescape}
</div> </div>
@ -13,7 +13,7 @@
<div class="row-fluid"> <div class="row-fluid">
<p>This blog covers <p>This blog covers
{foreach $tag in $tags} {foreach $tag in $tags}
<a href="{$config.domain}/tag/{$tag.slug}{$config.pageExt}">{$tag.name}</a>{nil} <a href="{$config.domain}/tag/{$tag.slug}.{$config.pageExt}">{$tag.name}</a>{nil}
{if not isLast($tag)},{sp}{/if} {if not isLast($tag)},{sp}{/if}
{/foreach} {/foreach}
</p> </p>
@ -23,7 +23,7 @@
<div class="row-fluid"> <div class="row-fluid">
<p>View posts from <p>View posts from
{foreach $month in $months} {foreach $month in $months}
<a href="{$config.domain}/date/{$month}{$config.pageExt}">{$month}</a>{nil} <a href="{$config.domain}/date/{$month}.{$config.pageExt}">{$month}</a>{nil}
{if not isLast($month)},{sp}{/if} {if not isLast($month)},{sp}{/if}
{/foreach} {/foreach}
</p> </p>

View file

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

View file

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