You've already forked Ghost-Theme-Source
Article meta
This commit is contained in:
26
post.hbs
26
post.hbs
@@ -8,6 +8,7 @@
|
||||
<article class="gh-article {{post_class}}">
|
||||
|
||||
<header class="gh-article-header gh-canvas">
|
||||
|
||||
{{#if primary_tag}}
|
||||
<a class="gh-article-tag" href="{{primary_tag.url}}">{{primary_tag.name}}</a>
|
||||
{{/if}}
|
||||
@@ -15,7 +16,32 @@
|
||||
{{#if custom_excerpt}}
|
||||
<p class="gh-article-excerpt is-body">{{custom_excerpt}}</p>
|
||||
{{/if}}
|
||||
|
||||
<div class="gh-article-meta">
|
||||
<div class="gh-article-author-image">
|
||||
{{#foreach authors}}
|
||||
{{#if profile_image}}
|
||||
<a href="{{url}}">
|
||||
<img class="author-profile-image" src="{{img_url profile_image size="xs"}}" alt="{{name}}" />
|
||||
</a>
|
||||
{{else}}
|
||||
<a href="{{url}}">{{> "icons/avatar"}}</a>
|
||||
{{/if}}
|
||||
{{/foreach}}
|
||||
</div>
|
||||
<div class="gh-article-meta-wrapper">
|
||||
<h4 class="gh-article-author-name">{{authors}}</h4>
|
||||
<div class="gh-article-meta-content">
|
||||
<time class="gh-article-meta-date" datetime="{{date format="YYYY-MM-DD"}}">{{date}}</time>
|
||||
{{#if reading_time}}
|
||||
<span class="gh-article-meta-length"><span class="bull">—</span> {{reading_time}}</span>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{> "feature-image"}}
|
||||
|
||||
</header>
|
||||
|
||||
<section class="gh-content gh-canvas is-body">
|
||||
|
||||
Reference in New Issue
Block a user