diff --git a/src/coleslaw.lisp b/src/coleslaw.lisp index e5b27bf..359a8ce 100644 --- a/src/coleslaw.lisp +++ b/src/coleslaw.lisp @@ -16,13 +16,10 @@ (:documentation "The url to the object, without the domain.")) (defmethod page-url :around ((object t)) - (let ((result (call-next-method)) - (extension (if (string= (page-ext *config*) "/") - "html" - (page-ext *config*)))) + (let ((result (call-next-method))) (if (pathname-type result) result - (make-pathname :type extension :defaults result)))) + (make-pathname :type (page-ext *config*) :defaults result)))) (defun page-path (object) "The path to store OBJECT at once rendered." diff --git a/themes/atom.tmpl b/themes/atom.tmpl index f1604d1..a56cad1 100644 --- a/themes/atom.tmpl +++ b/themes/atom.tmpl @@ -14,7 +14,7 @@ {foreach $post in $content.posts} - + {$post.title} {$post.date} {$post.date} diff --git a/themes/hyde/index.tmpl b/themes/hyde/index.tmpl index 7e5f1a0..4723346 100644 --- a/themes/hyde/index.tmpl +++ b/themes/hyde/index.tmpl @@ -4,20 +4,20 @@

{$index.title}

{foreach $post in $index.posts}
- {$post.title} + {$post.title}
posted on {$post.date}
{$post.text |noAutoescape}
{/foreach}
- {if $prev} Previous {/if} - {if $next} Next {/if} + {if $prev} Previous {/if} + {if $next} Next {/if}
{if $tags}

This blog covers {foreach $tag in $tags} - {$tag.name}{nil} + {$tag.name}{nil} {if not isLast($tag)},{sp}{/if} {/foreach}

@@ -26,7 +26,7 @@

View posts from {foreach $month in $months} - {$month}{nil} + {$month}{nil} {if not isLast($month)},{sp}{/if} {/foreach}

diff --git a/themes/hyde/post.tmpl b/themes/hyde/post.tmpl index 67eeaf2..f9a6ab6 100644 --- a/themes/hyde/post.tmpl +++ b/themes/hyde/post.tmpl @@ -5,7 +5,7 @@

{$post.title}

{\n}
{\n} Tagged as {foreach $tag in $post.tags} - {$tag.name}{nil} + {$tag.name}{nil} {if not isLast($tag)},{sp}{/if} {/foreach}
{\n} @@ -17,7 +17,7 @@ {$post.text |noAutoescape} {\n}
{\n} - {if $prev} Previous
{/if}{\n} - {if $next} Next
{/if}{\n} + {if $prev} Previous
{/if}{\n} + {if $next} Next
{/if}{\n}
{\n} {/template} diff --git a/themes/readable/index.tmpl b/themes/readable/index.tmpl index 1696296..1a1fa13 100644 --- a/themes/readable/index.tmpl +++ b/themes/readable/index.tmpl @@ -4,7 +4,7 @@

{$index.title}

{foreach $post in $index.posts}
-

{$post.title}

+

{$post.title}

posted on {$post.date}

{$post.text |noAutoescape}
@@ -13,7 +13,7 @@

This blog covers {foreach $tag in $tags} - {$tag.name}{nil} + {$tag.name}{nil} {if not isLast($tag)},{sp}{/if} {/foreach}

@@ -23,7 +23,7 @@

View posts from {foreach $month in $months} - {$month}{nil} + {$month}{nil} {if not isLast($month)},{sp}{/if} {/foreach}

diff --git a/themes/readable/post.tmpl b/themes/readable/post.tmpl index cdfbf5d..84be73a 100644 --- a/themes/readable/post.tmpl +++ b/themes/readable/post.tmpl @@ -5,7 +5,7 @@

{$post.title}

{\n}

Tagged as {foreach $tag in $post.tags} - {$tag.name}{nil} + {$tag.name}{nil} {if not isLast($tag)},{sp}{/if} {/foreach}

@@ -14,8 +14,8 @@ {$post.text |noAutoescape}
{\n} {/template} diff --git a/themes/rss.tmpl b/themes/rss.tmpl index 126f7b7..c22260b 100644 --- a/themes/rss.tmpl +++ b/themes/rss.tmpl @@ -13,10 +13,10 @@ {foreach $post in $content.posts} {$post.title} - {$config.domain}/posts/{$post.slug}.html + {$config.domain}/posts/{$post.slug}{$config.pageExt} {$post.date} {$config.author} - {$config.domain}/posts/{$post.slug}.html + {$config.domain}/posts/{$post.slug}{$config.pageExt} {foreach $tag in $post.tags} {/foreach}