mirror of
https://github.com/TryGhost/Ruby.git
synced 2024-10-29 20:38:33 +02:00
61 lines
2.6 KiB
Handlebars
61 lines
2.6 KiB
Handlebars
{{!< default}}
|
|
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="content-column col-lg-6">
|
|
<div class="content-area">
|
|
<main class="site-main">
|
|
{{#post}}
|
|
<article class="{{post_class}}{{#unless feature_image}} no-image{{/unless}} single u-shadow">
|
|
{{> post-header tag="h1" hide_link=true}}
|
|
<div class="post-meta">
|
|
<time class="post-meta-date" datetime="{{date format="YYYY-MM-DD"}}">
|
|
{{date published_at}}
|
|
</time>
|
|
<span class="post-meta-length">{{reading_time}}</span>
|
|
</div>
|
|
{{> post-media with_caption=true}}
|
|
<div class="post-wrapper">
|
|
<div class="post-content gh-content">
|
|
{{content}}
|
|
</div>
|
|
{{> tags}}
|
|
{{#if @custom.show_share_links}}
|
|
{{> share}}
|
|
{{/if}}
|
|
</div>
|
|
</article>
|
|
{{#if @custom.show_author}}
|
|
{{> author}}
|
|
{{/if}}
|
|
{{> post-navigation}}
|
|
{{> comment}}
|
|
{{/post}}
|
|
</main>
|
|
</div>
|
|
</div>
|
|
{{#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}}
|
|
{{#if @custom.show_sidebar_on_post}}
|
|
<div class="sidebar-column col-lg-3 hidden-xs hidden-sm hidden-md">
|
|
{{> widgets/widgets}}
|
|
</div>
|
|
{{/if}}
|
|
</div>
|
|
</div> |