From 85e733bf28820e767478dbbaa6e74544876348ba Mon Sep 17 00:00:00 2001 From: Masataro Asai Date: Mon, 13 Nov 2017 09:25:02 +0900 Subject: [PATCH] Absolute address to root with {$config.domain} is not necessary This is problematic when I preview the generated results with clack clackup <(echo "(lack:builder (:static :path #'identity) #'identity)") All links got broken due to the reference to {$config.domain} --- themes/hyde/base.tmpl | 12 ++++++------ themes/hyde/index.tmpl | 10 +++++----- themes/hyde/post.tmpl | 6 +++--- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/themes/hyde/base.tmpl b/themes/hyde/base.tmpl index 2fdf252..a283f2f 100644 --- a/themes/hyde/base.tmpl +++ b/themes/hyde/base.tmpl @@ -9,8 +9,8 @@ - - + + {if $injections.head} {foreach $injection in $injections.head} {$injection |noAutoescape} @@ -20,12 +20,12 @@ diff --git a/themes/hyde/index.tmpl b/themes/hyde/index.tmpl index 29cbee9..e958a4a 100644 --- a/themes/hyde/index.tmpl +++ b/themes/hyde/index.tmpl @@ -4,20 +4,20 @@

{$index.title}

{foreach $obj in $index.content}
- {$obj.title} + {$obj.title}
posted on {$obj.date}
{$obj.excerpt |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 content from {foreach $month in $months} - {$month.name}{nil} + {$month.name}{nil} {if not isLast($month)},{sp}{/if} {/foreach}

diff --git a/themes/hyde/post.tmpl b/themes/hyde/post.tmpl index f7b81bc..9ca6016 100644 --- a/themes/hyde/post.tmpl +++ b/themes/hyde/post.tmpl @@ -6,7 +6,7 @@
{\n} {if $post.tags} Tagged as {foreach $tag in $post.tags} - {$tag.name}{nil} + {$tag.name}{nil} {if not isLast($tag)},{sp}{/if} {/foreach} {/if} @@ -21,7 +21,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}