Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {{!-- Related posts --}}
- {{#get "posts" filter="tags:[{{tags[*].slug}}]+id:-{{id}}" limit="3" include="tags" as |related_posts|}}
- {{#foreach related_posts}}
- {{#if @first}}
- <section class="read-next inner">
- <h2 class="read-next-title">Read Next</h2>
- {{/if}}
- <article class="{{post_class}}">
- <header class="post-header">
- <div class="post-meta">
- <time class="published" datetime="{{date format='YYYY-MM-DD'}}">{{date format="MMMM DD, YYYY"}}</time>
- ยท {{reading_time}}
- </div><!-- .post-meta -->
- <h3 class="post-title"><a href="{{{url}}}" rel="bookmark">{{title}}</a></h3>
- {{#if tags}}
- <p class="post-tags">{{tags separator=" "}}</p>
- {{/if}}
- </header><!-- .post-header -->
- {{#if feature_image}}
- <a href="{{url}}" class="post-thumbnail"><img src="{{feature_image}}" alt="{{title}}" /></a>
- {{/if}}
- </article><!-- .post -->
- {{#if @last}}
- </section><!-- .read-next -->
- {{/if}}
- {{/foreach}}
- {{/get}}
Add Comment
Please, Sign In to add comment