Start implementing basic index structure
This commit is contained in:
50
index.hbs
50
index.hbs
@@ -7,35 +7,41 @@
|
||||
|
||||
<main>
|
||||
|
||||
<div>
|
||||
<div class="ptheme-content_main">
|
||||
|
||||
{{!-- Looping through every post --}}
|
||||
{{#foreach posts}}
|
||||
<article>
|
||||
<a href="{{url}}">
|
||||
<article class="ptheme-index-post_article">
|
||||
<a class="ptheme-index-post_article_link" href="{{url}}">
|
||||
|
||||
{{#if feature_image}}
|
||||
<img src="{{img_url feature_image size="m"}}" alt="{{title}}"/>
|
||||
{{/if}}
|
||||
<div>
|
||||
{{#if feature_image}}
|
||||
<img class="ptheme-index-post_feature-image" src="{{img_url feature_image size="m"}}" alt="{{title}}"/>
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
<header >
|
||||
<p><span>{{primary_tag.name}}</span>
|
||||
•
|
||||
<time datetime="{{date published_at format='YYYY-MM-DD'}}">{{date published_at format="DD MMMM YYYY"}}</time>
|
||||
</p>
|
||||
<h3>{{title}}</h3>
|
||||
</header>
|
||||
<div>
|
||||
<header>
|
||||
<p><span>{{primary_tag.name}}</span>
|
||||
•
|
||||
<time datetime="{{date published_at format='YYYY-MM-DD'}}">{{date published_at format="DD MMMM YYYY"}}</time>
|
||||
</p>
|
||||
<h3>{{title}}</h3>
|
||||
</header>
|
||||
|
||||
<section>
|
||||
<p>{{excerpt words="26"}}</p>
|
||||
</section>
|
||||
<section>
|
||||
<p>{{excerpt words="26"}}</p>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
{{primary_author.name}}
|
||||
{{#if primary_author.profile_image}}
|
||||
<img src="{{img_url primary_author.profile_image size="xxs"}}"
|
||||
alt="{{title}}"/>{{/if}}
|
||||
</footer>
|
||||
<div>
|
||||
<footer>
|
||||
{{primary_author.name}}
|
||||
{{#if primary_author.profile_image}}
|
||||
<img src="{{img_url primary_author.profile_image size="xxs"}}"
|
||||
alt="{{title}}"/>{{/if}}
|
||||
</footer>
|
||||
</div>
|
||||
</a>
|
||||
</article>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user