mirror of
https://github.com/aljazceru/Journal-ghost.git
synced 2025-12-29 02:54:22 +01:00
45 lines
1.3 KiB
Handlebars
45 lines
1.3 KiB
Handlebars
{{!< default}}
|
|
|
|
<main class="gh-main gh-canvas">
|
|
<section class="gh-pagehead">
|
|
<header class="gh-pagehead-content">
|
|
<h1 class="gh-pagehead-title">Archive</h1>
|
|
|
|
<div class="gh-pagehead-description">
|
|
{{#if description}}
|
|
{{description}}
|
|
{{else}}
|
|
A collection of {{plural pagination.total empty='zero issues' singular='% issue' plural='% issues'}}
|
|
{{/if}}
|
|
</div>
|
|
</header>
|
|
</section>
|
|
|
|
{{#get "posts" filter="featured:true" limit="all" as |featured|}}
|
|
{{#if featured}}
|
|
<section class="gh-section gh-section-featured">
|
|
<h3 class="gh-section-title"><span>Featured</span></h3>
|
|
|
|
<div class="gh-featured">
|
|
{{#foreach featured}}
|
|
{{> loop}}
|
|
{{/foreach}}
|
|
</div>
|
|
</section>
|
|
{{/if}}
|
|
{{/get}}
|
|
|
|
<section class="gh-section">
|
|
<h3 class="gh-section-title"><span>Latest</span></h3>
|
|
|
|
<div class="gh-feed">
|
|
{{#get "posts" limit="all"}}
|
|
{{#foreach posts}}
|
|
{{> loop}}
|
|
{{/foreach}}
|
|
{{/get}}
|
|
</div>
|
|
</section>
|
|
|
|
{{!-- <button class="gh-loadmore">Load more</button> --}}
|
|
</main> |