Ghost_Ruby_Theme/post.hbs

61 lines
2.6 KiB
Handlebars
Raw Normal View History

2019-04-30 18:00:55 +03:00
{{!< default}}
<div class="container">
2020-09-24 05:25:42 +03:00
<div class="row">
2022-02-04 07:31:47 +02:00
<div class="content-column col-lg-6">
2020-09-24 05:25:42 +03:00
<div class="content-area">
<main class="site-main">
{{#post}}
2022-02-04 07:31:47 +02:00
<article class="{{post_class}}{{#unless feature_image}} no-image{{/unless}} single u-shadow">
2020-09-24 05:25:42 +03:00
{{> post-header tag="h1" hide_link=true}}
<div class="post-meta">
2022-02-04 07:31:47 +02:00
<time class="post-meta-date" datetime="{{date format="YYYY-MM-DD"}}">
2020-09-24 05:25:42 +03:00
{{date published_at}}
</time>
2022-02-04 07:31:47 +02:00
<span class="post-meta-length">{{reading_time}}</span>
2020-09-24 05:25:42 +03:00
</div>
2021-07-08 07:07:20 +03:00
{{> post-media with_caption=true}}
2020-09-24 05:25:42 +03:00
<div class="post-wrapper">
<div class="post-content gh-content">
2020-09-24 05:25:42 +03:00
{{content}}
</div>
{{> tags}}
2021-11-05 10:21:16 +02:00
{{#if @custom.show_share_links}}
{{> share}}
{{/if}}
2020-09-24 05:25:42 +03:00
</div>
</article>
2021-11-05 10:21:16 +02:00
{{#if @custom.show_author}}
{{> author}}
{{/if}}
2020-09-24 05:25:42 +03:00
{{> post-navigation}}
2020-09-24 05:27:14 +03:00
{{> comment}}
2020-09-24 05:25:42 +03:00
{{/post}}
</main>
</div>
</div>
2022-02-04 07:31:47 +02:00
{{#get "posts" limit="3" filter="tags:[{{post.tags}}]+id:-{{post.id}}" include="tags,authors" as |related|}}
{{#if related}}
{{#if @custom.show_related_posts}}
<div class="related-column col-lg-3 hidden-xs hidden-sm hidden-md">
<section class="related-posts">
<h3 class="related-title">
<span class="text">You might also like...</span>
</h3>
<div class="post-feed">
{{#foreach related}}
{{> loop}}
{{/foreach}}
</div>
</section>
</div>
{{/if}}
{{/if}}
{{/get}}
2021-11-05 10:21:16 +02:00
{{#if @custom.show_sidebar_on_post}}
2022-02-04 07:31:47 +02:00
<div class="sidebar-column col-lg-3 hidden-xs hidden-sm hidden-md">
2021-11-05 10:21:16 +02:00
{{> widgets/widgets}}
</div>
{{/if}}
2019-04-30 18:00:55 +03:00
</div>
</div>