61 lines
1.7 KiB
Handlebars
61 lines
1.7 KiB
Handlebars
{{!< default}}
|
|
|
|
{{#post}}
|
|
|
|
<article class="{{post_class}} prose prose-lg prose-invert max-w-5xl m-auto">
|
|
|
|
<header class="gh-header gh-canvas">
|
|
<h1 class="gh-title">{{title}}</h1>
|
|
|
|
<span class="gh-post-meta"><time datetime="{{date format="YYYY-MM-DD"}}">{{date format="D MMM YYYY"}}</time> <span class="bull">•</span> {{reading_time}}</span>
|
|
|
|
{{#if custom_excerpt}}
|
|
<p class="gh-excerpt">{{custom_excerpt}}</p>
|
|
{{/if}}
|
|
|
|
{{#if feature_image}}
|
|
<div class="">{{> "article/tags" }}</div>
|
|
<img class="w-full mb-5"
|
|
data-srcset="{{> srcset}}"
|
|
data-sizes="auto"
|
|
src="{{img_url feature_image size="m"}}"
|
|
srcset="{{> srcset}}"
|
|
sizes="auto"
|
|
alt="{{#if feature_image_alt}}{{feature_image_alt}}{{else}}{{/if}}">
|
|
{{/if}}
|
|
</header>
|
|
|
|
<div class="">
|
|
{{content}}
|
|
</div>
|
|
|
|
<footer class="gh-footer gh-canvas">
|
|
|
|
<div class="gh-post-authors">
|
|
Written by {{#foreach authors}}<a href="{{url}}">{{name}}</a>{{/foreach}}
|
|
</div>
|
|
|
|
{{!--
|
|
<section class="gh-post-comments">
|
|
If you want to embed comments, this is a good place to do it!
|
|
</section>
|
|
--}}
|
|
|
|
</footer>
|
|
|
|
</article>
|
|
|
|
<aside class="gh-readmore">
|
|
<div class="gh-readmore-inner gh-container">
|
|
<div class="gh-readmore-next">
|
|
{{#next_post}}<a href="{{url}}">{{> "icons/arrow-left"}} <h4>{{title}}</h4></a>{{/next_post}}
|
|
</div>
|
|
<div class="gh-readmore-prev">
|
|
{{#prev_post}}<a href="{{url}}">
|
|
<h4>{{title}}</h4> {{> "icons/arrow-right"}}
|
|
</a>{{/prev_post}}
|
|
</div>
|
|
</div>
|
|
</aside>
|
|
|
|
{{/post}} |