-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom-magazine.hbs
executable file
·50 lines (46 loc) · 1.75 KB
/
custom-magazine.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{{!< default}} {{#post}} <main class="site-main ">
<article class="{{post_class}}">
{{#match @page.show_title_and_feature_image}}
<header class="gh-article-header gh-canvas">
<h1 class="gh-article-title">{{title}}</h1>
{{> "post-image"}}
</header>
{{/match}}
<div class="post-content gh-content gh-canvas">
{{content}}
</div>
</article>
<div class="gh-inner">
<header class="topic-header">
<h2 class="topic-name" id="work">
<a href="{{url}}/#work">Published in Untold.Town:</a>
</h2>
</header>
<section class="topic-feed">
{{#get "posts" order="published_at asc" filter="tag:magazine"}}
{{#foreach posts}}
<div>
<figure class="post-media">
<div class="u-placeholder same-height horizontal">
<a class="post-image-link" href="{{url}}">
{{#if feature_image}}
<img class="post-image u-object-fit" src="{{img_url feature_image size=" l"}}"
alt="{{title}}">
{{/if}}
</a>
</div>
</figure>
<li class="topic-article">
<h3 class="topic-article-title">
<a class="topic-article-link" href="{{url}}">
{{> "icons/chevron-right"}} {{title}}
</a>
</h3>
<small>{{tags}}</small>
</li>
</div>
{{/foreach}}
{{/get}}
</section>
</main>
{{/post}}