Ghost/core/client/templates/posts/post.hbs

22 lines
886 B
Handlebars
Raw Normal View History

2014-08-16 20:40:52 +04:00
<header class="post-preview-header">
{{#link-to "posts" tagName="button" class="btn btn-default btn-back"}}Back{{/link-to}}
2014-08-16 20:40:52 +04:00
<button type="button" {{bind-attr class="featured:featured:unfeatured"}} title="Feature this post" {{action "toggleFeatured"}}>
<span class="hidden">Star</span>
</button>
<small>
<span class="status">{{#if isPublished}}Published{{else}}Written{{/if}}</span>
<span class="normal">by</span>
<span class="author">{{#if author.name}}{{author.name}}{{else}}{{author.email}}{{/if}}</span>
</small>
<section class="post-controls">
{{#link-to "editor.edit" this class="btn btn-default post-edit"}} Edit{{/link-to}}
</section>
</header>
{{#view "content-preview-content-view" tagName="section"}}
<div class="wrapper">
<h1>{{title}}</h1>
{{gh-format-html html}}
</div>
{{/view}}