Post meta

This commit is contained in:
Sodbileg Gansukh
2023-07-10 14:03:07 +08:00
parent 05eefe6aeb
commit 42781d56ef
7 changed files with 47 additions and 5 deletions

View File

@@ -15,8 +15,16 @@
</figure>
{{/if}}
<div class="gh-card-wrapper">
<h2 class="gh-card-title">{{title}}</h2>
<h3 class="gh-card-title">{{title}}</h3>
<p class="gh-card-excerpt">{{excerpt}}</p>
<footer class="gh-card-meta">
{{#if @custom.show_author}}
<span class="gh-card-author">By {{#foreach authors}}{{#if @first}}{{name}}{{else}}, {{name}}{{/if}}{{/foreach}}</span>
{{/if}}
{{#if @custom.show_post_date}}
<time class="gh-card-date" datetime="{{date format="YYYY-MM-DD"}}">{{date}}</time>
{{/if}}
</footer>
</div>
</a>
</article>