mirror of
https://github.com/aljazceru/Journal-ghost.git
synced 2025-12-28 18:44:22 +01:00
123 lines
5.2 KiB
Handlebars
123 lines
5.2 KiB
Handlebars
{{!< default}}
|
|
|
|
<main id="gh-main" class="gh-main gh-outer">
|
|
<div class="gh-inner">
|
|
{{^is "paged"}}
|
|
{{#get "posts" limit="1"}}
|
|
{{#foreach posts}}
|
|
<article class="gh-latest gh-card {{post_class}}">
|
|
<a class="gh-card-link" href="{{url}}">
|
|
<header class="gh-card-header">
|
|
<div class="gh-article-meta">
|
|
<span class="gh-card-date">Latest — <time datetime="{{date format="YYYY-MM-DD"}}">{{date}}</time></span>
|
|
</div>
|
|
|
|
<h2 class="gh-article-title gh-card-title">{{title}}</h2>
|
|
</header>
|
|
|
|
<p class="gh-article-excerpt">{{excerpt}}</p>
|
|
|
|
<footer class="gh-card-meta">
|
|
<span class="gh-card-meta-wrapper">
|
|
<span class="gh-card-duration">{{reading_time}}</span>
|
|
|
|
{{^has visibility="public"}}
|
|
{{> icons/star}}
|
|
{{/has}}
|
|
</span>
|
|
</footer>
|
|
</a>
|
|
</article>
|
|
{{/foreach}}
|
|
{{/get}}
|
|
{{/is}}
|
|
|
|
<div class="gh-wrapper">
|
|
<section class="gh-section">
|
|
<h2 class="gh-section-title">More issues</h2>
|
|
|
|
<div class="gh-feed">
|
|
{{#foreach posts from="2"}}
|
|
{{> loop}}
|
|
{{/foreach}}
|
|
</div>
|
|
|
|
{{#match posts.length "=" 1}}
|
|
Additional issues will be published soon.
|
|
{{/match}}
|
|
|
|
<button class="gh-loadmore gh-btn">Load more issues</button>
|
|
</section>
|
|
|
|
<aside class="gh-sidebar">
|
|
<section class="gh-section">
|
|
<h2 class="gh-section-title">About</h2>
|
|
|
|
<div class="gh-about">
|
|
{{#if @site.icon}}
|
|
<img class="gh-about-icon" src="{{@site.icon}}" alt="{{@site.title}}">
|
|
{{/if}}
|
|
|
|
<section class="gh-about-wrapper">
|
|
<h3 class="gh-about-title">{{@site.title}}</h3>
|
|
|
|
{{#if @site.description}}
|
|
<p class="gh-about-description">{{@site.description}}</p>
|
|
{{/if}}
|
|
</section>
|
|
</div>
|
|
|
|
{{^if @member.paid}}
|
|
<div class="gh-signup">
|
|
{{^if @member}}
|
|
<p class="gh-signup-description">Sign up now to get access to the library of members-only issues.</p>
|
|
|
|
<a class="gh-subscribe-input" href="#/portal/signup" data-portal="signup">
|
|
<div class="gh-subscribe-input-text">
|
|
{{> icons/email}}
|
|
jamie@example.com
|
|
</div>
|
|
<div class="gh-subscribe-input-btn">Subscribe</div>
|
|
</a>
|
|
{{else}}
|
|
<p class="gh-signup-description">Upgrade to a paid account to get full access.</p>
|
|
<a class="gh-signup-btn gh-btn gh-primary-btn" href="#/portal/account/plans" data-portal="account/plans">Upgrade now</a>
|
|
{{/if}}
|
|
</div>
|
|
{{/if}}
|
|
</section>
|
|
|
|
{{#get "posts" filter="featured:true" limit="all" as |featured|}}
|
|
{{#if featured}}
|
|
<section class="gh-section">
|
|
<h3 class="gh-section-title">Featured</h3>
|
|
|
|
<div class="gh-featured gh-feed">
|
|
{{#foreach featured}}
|
|
{{> loop}}
|
|
{{/foreach}}
|
|
</div>
|
|
</section>
|
|
{{/if}}
|
|
{{/get}}
|
|
|
|
{{#get "tags" include="count.posts" limit="all" as |topic|}}
|
|
<section class="gh-section">
|
|
<h3 class="gh-section-title">Topics</h3>
|
|
|
|
<div class="gh-topic">
|
|
{{#foreach topic}}
|
|
<a class="gh-topic-item" href="{{url}}">
|
|
<h3 class="gh-topic-name">{{name}}</h3>
|
|
<span class="gh-topic-count">
|
|
{{plural count.posts empty="0 issues" singular="% issue" plural="% issues"}}
|
|
</span>
|
|
</a>
|
|
{{/foreach}}
|
|
</div>
|
|
</section>
|
|
{{/get}}
|
|
</aside>
|
|
</div>
|
|
</div>
|
|
</main> |