mirror of
https://github.com/ViViDboarder/Vivid-Casper.git
synced 2024-12-22 19:47:38 +00:00
Removed concept of partials from Casper. For now.
This commit is contained in:
parent
820b222f8e
commit
9ca4564cb2
11
index.hbs
11
index.hbs
@ -2,13 +2,12 @@
|
||||
<section class="content">
|
||||
<ul class="hfeed">
|
||||
{{#foreach posts}}
|
||||
{{#if @first}}
|
||||
<li class="featured">
|
||||
{{> full-post}}
|
||||
<li class="wrap">
|
||||
<article class="post type-post status-publish format-standard hentry">
|
||||
<h2 class="entry-title"><a href="/{{slug}}" rel="bookmark">{{title}}</a></h2>
|
||||
<time class="updated" datetime="2012-05-03">{{dateFormat published_at format="MMMM DD, YYYY"}}</time>
|
||||
</article>
|
||||
</li>
|
||||
{{else}}
|
||||
{{> list-post}}
|
||||
{{/if}}
|
||||
{{/foreach}}
|
||||
</ul>
|
||||
{{pagination}}
|
||||
|
@ -1,17 +0,0 @@
|
||||
<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="{{date published_at format='YYYY-MM-DD'}}">{{date published_at format='DD MMMM YYYY'}}</time></span>
|
||||
</header>
|
||||
|
||||
<section class="entry-content">
|
||||
{{content}}
|
||||
</section>
|
||||
</div>
|
||||
</article>
|
@ -1,6 +0,0 @@
|
||||
<li class="wrap">
|
||||
<article class="post type-post status-publish format-standard hentry">
|
||||
<h2 class="entry-title"><a href="/{{slug}}" rel="bookmark">{{title}}</a></h2>
|
||||
<time class="updated" datetime="2012-05-03">{{date published_at format="MMMM DD, YYYY"}}</time>
|
||||
</article>
|
||||
</li>
|
20
post.hbs
20
post.hbs
@ -1,6 +1,24 @@
|
||||
{{!< default}}
|
||||
<section class="content">
|
||||
{{#post}}
|
||||
{{> full-post}}
|
||||
|
||||
<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 published_at format='YYYY-MM-DD'}}">{{dateFormat published_at format='DD MMMM YYYY'}}</time></span>
|
||||
</header>
|
||||
|
||||
<section class="entry-content">
|
||||
{{content}}
|
||||
</section>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
{{/post}}
|
||||
</section>
|
Loading…
Reference in New Issue
Block a user