You've already forked Ghost-Theme-Casper
closes #1 - removing featured
- changed post.hbs to list-post.hbs and refactored code - changed featured.hbs to full-post.hbs and refactored code - index.hbs now selects first post and extends full-post then list-post on remaining posts - single.hbs now extends full-post
This commit is contained in:
17
partials/full-post.hbs
Normal file
17
partials/full-post.hbs
Normal file
@@ -0,0 +1,17 @@
|
||||
<article class="post type-post status-publish format-standard hentry">
|
||||
{{#if image}}
|
||||
<figure class="post-thumb">
|
||||
<img width="550" height="250" src="/content/images/{{image}}" class="attachment-post-thumbnail wp-post-image" alt="ghostpost">
|
||||
</figure>
|
||||
{{/if}}
|
||||
<div class="wrap">
|
||||
<header>
|
||||
<h2 class="entry-title h1"><a href="/{{slug}}" rel="bookmark">{{title}}</a></h2>
|
||||
<span class="entry-meta">Published on <time class="updated" datetime="{{dateFormat created_at format='YYYY-MM-DD'}}">{{dateFormat created_at format='DD MMMM YYYY'}}</time></span>
|
||||
</header>
|
||||
|
||||
<section class="entry-content">
|
||||
{{{content_html}}}
|
||||
</section>
|
||||
</div>
|
||||
</article>
|
||||
Reference in New Issue
Block a user