mirror of
https://github.com/TryGhost/Ruby.git
synced 2024-10-29 20:38:33 +02:00
15 lines
503 B
Handlebars
15 lines
503 B
Handlebars
{{#get "posts" limit="3" filter="tags:[{{post.tags}}]+id:-{{post.id}}"
|
|
include="tags,authors" as |related|}}
|
|
{{#if related}}
|
|
<section class="related-posts">
|
|
<h3 class="related-title">
|
|
<span class="text">You might also like...</span>
|
|
</h3>
|
|
<div class="post-feed">
|
|
{{#foreach related visibility="all"}}
|
|
{{> loop}}
|
|
{{/foreach}}
|
|
</div>
|
|
</section>
|
|
{{/if}}
|
|
{{/get}} |