blog_theme/post.hbs

51 lines
2.4 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">
2021-11-05 10:21:16 +02:00
<div class="content-column col-lg-8{{#if @custom.show_sidebar_on_post}}{{#if @custom.show_related_posts}} col-lg-6{{/if}}{{/if}}{{#unless @custom.show_sidebar_on_post}}{{#unless @custom.show_related_posts}} shift{{/unless}}{{/unless}}">
2020-09-24 05:25:42 +03:00
<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>
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 u-text-format">
{{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>
2021-11-05 10:21:16 +02:00
{{#if @custom.show_related_posts}}
<div class="related-column {{#unless @custom.show_sidebar_on_post}}col-lg-4{{else}}col-lg-3{{/unless}} hidden-xs hidden-sm hidden-md">
{{> related}}
</div>
{{/if}}
{{#if @custom.show_sidebar_on_post}}
<div class="sidebar-column {{#unless @custom.show_related_posts}}col-lg-4{{else}}col-lg-3{{/unless}} hidden-xs hidden-sm hidden-md">
{{> widgets/widgets}}
</div>
{{/if}}
2019-04-30 18:00:55 +03:00
</div>
</div>