mind-overflow-website-ghost.../partials/posts-card-small.hbs
Lorenzo Dellacà 67344effd0 Begin CSS refactoring for improved organization
CSS code was divided in multiple files, however this was not practical
for organization since different pages needed different CSS classes one
 another, that were in most of those CSS files.

This commit brings (mostly) everything in one file with a table of
contents on top.

An exception is made for fonts, that are now in a separate "fonts.css"
file, since they contain fundamentally different things.

Classes organization is not yet complete, however a great part was done.
Next commits will finalize this organization and finish moving classes.

Signed-off-by: Lorenzo Dellacà <lorenzo.dellaca@mind-overflow.net>
2020-08-18 18:20:39 +02:00

17 lines
766 B
Handlebars

{{#get "posts" limit="3" filter="tags:[{{post.tags}}]+id:-{{post.id}}" include="tags" as |related|}}
<h4>Similar posts</h4>
{{#foreach related}}
<article class="{{post_class}}">
<a class="mind-post-card-sidebar_main" href="{{url}}">
<img class="mind-post-card-sidebar_feature-image" src="{{img_url feature_image size="s"}}" />
<header class="mind-post-card-sidebar_header">
<p class="mind-post-card-sidebar_meta"><span class="mind-post-card-sidebar_tag">{{primary_tag.name}}</span> • <time class="post-date" datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMMM YYYY"}}</time></p>
<h5>{{title}}</h5>
</header>
</a>
</article>
{{/foreach}}
{{else}}
<h4>No related posts</h4>
{{/get}}