52 lines
1.5 KiB
Handlebars
52 lines
1.5 KiB
Handlebars
{{!< default}} <main id="gh-main" class="gh-main">
|
|
|
|
{{#post}}
|
|
|
|
<article class="gh-article {{post_class}}">
|
|
|
|
<header class="gh-article-header gh-canvas">
|
|
{{#match @custom.mode "Image-based"}}
|
|
{{> common/feature-image}}
|
|
{{/match}}
|
|
|
|
<h1 class="gh-article-title">{{title}}</h1>
|
|
|
|
{{#if custom_excerpt}}
|
|
<p class="gh-article-excerpt">{{custom_excerpt}}</p>
|
|
{{/if}}
|
|
|
|
<span class="gh-article-meta">
|
|
{{#if primary_tag}}
|
|
<a class="gh-article-tag" href="{{primary_tag.url}}">{{primary_tag.name}}</a>
|
|
·
|
|
{{/if}}
|
|
<span>{{reading_time}}</span>
|
|
·
|
|
<time datetime="{{date format="YYYY-MM-DD"}}">{{date}}</time>
|
|
</span>
|
|
|
|
{{#match @custom.mode "Text-based"}}
|
|
{{> common/feature-image}}
|
|
{{/match}}
|
|
</header>
|
|
|
|
<div class="gh-content gh-canvas">
|
|
{{content}}
|
|
</div>
|
|
|
|
{{> common/comments}}
|
|
|
|
<footer class="gh-article-footer{{#match @custom.mode "Text-based"}} gh-canvas{{/match}}{{#unless @member}}
|
|
no-border{{/unless}}{{#unless access}} no-border{{/unless}}">
|
|
{{#match @custom.mode "Text-based"}}
|
|
{{> text/more}}
|
|
{{else}}
|
|
{{> image/more}}
|
|
{{/match}}
|
|
</footer>
|
|
|
|
</article>
|
|
{{/post}}
|
|
|
|
</main>
|