mind-overflow-website-ghost.../post.hbs

69 lines
2.9 KiB
Handlebars
Raw Normal View History

2020-10-30 00:19:49 +01:00
{{!< default}}
<div class="mind-post-header unselectable">
{{#post}}
2020-10-30 00:19:49 +01:00
<div>
<h1>{{title}}</h1>
<p><a class="mind-post-header_tag" href="{{primary_tag.url}}">{{primary_tag.name}}</a> •
<time class="post-date" datetime="{{date published_at format='YYYY-MM-DD'}}">{{date published_at format="DD MMMM YYYY"}}</time>
</p>
</div>
{{/post}}
<i class="mind-global-header_arrow-down mind-global-header_arrow-down-mid"></i>
2020-10-30 00:19:49 +01:00
</div>
<main>
<div class="mind-content_main">
<div class="mind-post_main">
<aside class="mind-post_sidebar unselectable">
<div class="mind-post_sidebar-content" id="mind-post_sidebar-left">
<h4>Paragraphs</h4>
{{!-- This gets automatically filled by the sidebar script! --}}
</div>
</aside>
{{#post}}
<div class="mind-post_central-column">
<div class="mind-post_content">
<div class="mind-post_content-header">
{{#if feature_image}}
<img class="mind-post_feature-image"
srcset="
{{img_url feature_image size="s"}} 300w,
{{img_url feature_image size="m"}} 600w,
{{img_url feature_image size="l"}} 1200w,
{{img_url feature_image size="xl"}} 1600w,
{{img_url feature_image size="xxl"}} 2000w"
src="{{img_url feature_image size="l"}}"
alt="Feature Image"/>
{{/if}}
</div>
{{content}}
<hr>
<i>Last update: <time class="post-date" datetime="{{date updated_at format='YYYY-MM-DD'}}">{{date updated_at format="DD MMMM YYYY"}}</time></i>
<br />
<i>Author: {{primary_author.name}}</i>
{{#if tags}}
<br />
<i>Tags:
{{#foreach tags}} {{!-- TODO: NOT WORKING --}}
<a href="{{url}}" title="{{name}}" class="tag tag-{{id}} {{slug}}">{{name}}</a>
{{/foreach}}
{{/if}}
</i>
<hr>
</div>
<h3>Comments</h3>
<div id="remark42"></div>
</div>
{{/post}}
<aside class="mind-post_sidebar unselectable">
<div class="mind-post_sidebar-content">
{{> "post-card-small"}}
</div>
</aside>
2020-10-30 00:19:49 +01:00
</div>
</div>
</main>