Add image variant
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -1,21 +1,5 @@
|
||||
<div class="post-feed gh-feed">
|
||||
{{#foreach posts}}
|
||||
<article class="gh-card {{post_class}}">
|
||||
<a class="gh-card-link" href="{{url}}">
|
||||
<header class="gh-card-header">
|
||||
<h2 class="gh-card-title">{{title}}</h2>
|
||||
</header>
|
||||
|
||||
<div class="gh-card-excerpt">{{excerpt}}</div>
|
||||
|
||||
<footer class="gh-card-meta">
|
||||
<time class="gh-card-date" datetime="{{date format=" YYYY-MM-DD"}}">{{date}}</time>
|
||||
<span class="gh-card-duration">{{reading_time}}</span>
|
||||
{{^has visibility="public"}}
|
||||
{{> icons/star}}
|
||||
{{/has}}
|
||||
</footer>
|
||||
</a>
|
||||
</article>
|
||||
{{> text/loop}}
|
||||
{{/foreach}}
|
||||
</div>
|
||||
|
17
partials/text/loop.hbs
Normal file
17
partials/text/loop.hbs
Normal file
@@ -0,0 +1,17 @@
|
||||
<article class="gh-card {{post_class}}">
|
||||
<a class="gh-card-link" href="{{url}}">
|
||||
<header class="gh-card-header">
|
||||
<h2 class="gh-card-title">{{title}}</h2>
|
||||
</header>
|
||||
|
||||
<div class="gh-card-excerpt">{{excerpt}}</div>
|
||||
|
||||
<footer class="gh-card-meta">
|
||||
<time class="gh-card-date" datetime="{{date format="YYYY-MM-DD"}}">{{date}}</time>
|
||||
<span class="gh-card-duration">{{reading_time}}</span>
|
||||
{{^has visibility="public"}}
|
||||
{{> icons/star}}
|
||||
{{/has}}
|
||||
</footer>
|
||||
</a>
|
||||
</article>
|
@@ -2,7 +2,7 @@
|
||||
<div class="gh-navigation-previous">
|
||||
{{#prev_post}}
|
||||
<a class="gh-navigation-link" href="{{url}}">
|
||||
<span class="gh-navigation-label">{{> icons/arrow-left}} Previous issue</span>
|
||||
<span class="gh-navigation-label">{{> icons/arrow-left}} Previous post</span>
|
||||
<h4 class="gh-navigation-title">{{title}}</h4>
|
||||
</a>
|
||||
{{/prev_post}}
|
||||
@@ -13,7 +13,7 @@
|
||||
<div class="gh-navigation-next">
|
||||
{{#next_post}}
|
||||
<a class="gh-navigation-link" href="{{url}}">
|
||||
<span class="gh-navigation-label">Next issue {{> icons/arrow-right}}</span>
|
||||
<span class="gh-navigation-label">Next post {{> icons/arrow-right}}</span>
|
||||
<h4 class="gh-navigation-title">{{title}}</h4>
|
||||
</a>
|
||||
{{/next_post}}
|
||||
|
Reference in New Issue
Block a user