ghost-theme-sd.ai/partials/components/post-list.hbs

48 lines
1.9 KiB
Handlebars
Raw Normal View History

2023-07-10 07:03:07 +01:00
<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">
2023-07-10 04:58:34 +01:00
<div class="gh-container-inner gh-inner">
<h2 class="gh-container-title">Latest</h2>
2023-07-10 05:17:54 +01:00
2023-07-10 04:58:34 +01:00
<main class="gh-main">
<div class="gh-feed">
2023-07-31 10:26:56 +01:00
{{#match @custom.header_style "Highlight"}}
{{#foreach posts from="11" limit="9"}}
{{> "post-card"}}
{{/foreach}}
{{else match @custom.header_style "Magazine"}}
{{#foreach posts from="8" limit="9"}}
{{> "post-card"}}
{{/foreach}}
{{else}}
{{#foreach posts limit="9"}}
{{> "post-card"}}
{{/foreach}}
{{/match}}
2023-07-10 04:58:34 +01:00
</div>
</main>
2023-07-10 05:17:54 +01:00
{{#if @custom.show_sidebar}}
<aside class="gh-sidebar">
<section class="gh-about">
{{#if @site.icon}}
<img class="gh-about-icon" src="{{@site.icon}}" alt="{{@site.title}}">
{{/if}}
<h3 class="gh-about-title is-title">{{@site.title}}</h3>
2023-07-10 05:17:54 +01:00
{{#if @site.description}}
<p class="gh-about-description is-body">{{@site.description}}</p>
2023-07-10 05:17:54 +01:00
{{/if}}
{{#if @site.members_enabled}}
{{#unless @member}}
2023-07-10 07:27:31 +01:00
<button class="gh-button">Subscribe</button>
2023-07-10 05:17:54 +01:00
{{/unless}}
{{/if}}
</section>
</aside>
{{/if}}
2023-08-03 06:18:34 +01:00
<div class="gh-more is-title">
2023-07-31 10:26:56 +01:00
<a href="/page/2">See all →</a>
</div>
2023-07-10 04:58:34 +01:00
</div>
</section>