You've already forked Ghost-Theme-Source
Post meta
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{{#if showFeatured}}
|
||||
{{#get "posts" filter="featured:true" limit="4" as |featured|}}
|
||||
{{#get "posts" filter="featured:true" include="authors" limit="4" as |featured|}}
|
||||
{{#if featured}}
|
||||
<section class="gh-featured gh-outer">
|
||||
<div class="gh-featured-inner gh-inner">
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<section class="gh-container is-{{#match @custom.post_list_style "List"}}list{{else}}grid{{/match}}{{#if @custom.show_sidebar}} has-sidebar{{/if}} gh-outer">
|
||||
<section class="gh-container is-{{#match @custom.post_list_style "List"}}list{{else}}grid{{/match}}{{#if @custom.show_sidebar}} has-sidebar{{/if}}{{#if @custom.hide_images}} no-image{{/if}} gh-outer">
|
||||
<div class="gh-container-inner gh-inner">
|
||||
|
||||
<main class="gh-main">
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user