summaryrefslogtreecommitdiffstats
path: root/themes/default/post.tmpl
diff options
context:
space:
mode:
authorGravatar Tom Willemse2020-12-27 16:04:21 -0800
committerGravatar Tom Willemse2020-12-27 17:12:46 -0800
commitc9d38e16cb736b9692a3e7726ea9f0c00702230e (patch)
tree557439ddd04c4975167d06decea9395ba356ac6e /themes/default/post.tmpl
parent72e6b81dde8f08a249838be8d260b9d87f3466eb (diff)
downloadblog-c9d38e16cb736b9692a3e7726ea9f0c00702230e.tar.gz
blog-c9d38e16cb736b9692a3e7726ea9f0c00702230e.zip
Fix building on latest coleslaw
Diffstat (limited to 'themes/default/post.tmpl')
-rw-r--r--themes/default/post.tmpl27
1 files changed, 27 insertions, 0 deletions
diff --git a/themes/default/post.tmpl b/themes/default/post.tmpl
new file mode 100644
index 0000000..f7b81bc
--- /dev/null
+++ b/themes/default/post.tmpl
@@ -0,0 +1,27 @@
+{namespace coleslaw.theme.hyde}
+
+{template post}
+<div class="article-meta">{\n}
+ <h1 class="title">{$post.title}</h1>{\n}
+ <div class="tags">{\n}
+ {if $post.tags}
+ Tagged as {foreach $tag in $post.tags}
+ <a href="{$config.domain}/{$tag.url}">{$tag.name}</a>{nil}
+ {if not isLast($tag)},{sp}{/if}
+ {/foreach}
+ {/if}
+ </div>{\n}
+ <div class="date">{\n}
+ {if $post.date}
+ Written on {$post.date}
+ {/if}
+ </div>{\n}
+</div>{\n}
+<div class="article-content">{\n}
+ {$post.text |noAutoescape}
+</div>{\n}
+<div class="relative-nav">{\n}
+ {if $prev} <a href="{$config.domain}/{$prev.url}">Previous</a><br> {/if}{\n}
+ {if $next} <a href="{$config.domain}/{$next.url}">Next</a><br> {/if}{\n}
+</div>{\n}
+{/template}