forked from TryGhost/Casper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtag.hbs
115 lines (110 loc) · 5.78 KB
/
tag.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{{!< default}}
{{!-- The tag above means - insert everything in this file into the {body} of the default.hbs template --}}
<section class="outer">
<div class="tag-heading">
{{#tag}}
<div class="post-card-content">
<div class="post-card-content-link">
<header class="post-card-header">
<div class="post-card-primary-tag">Tagged</div>
<h2 class="post-card-title">{{name}}</h2>
</header>
<div class="post-card-excerpt">
<p>
{{#if description}}
{{description}}
{{else}}
A collection of {{plural ../pagination.total empty='zero posts' singular='% post' plural='% posts'}}
{{/if}}
</p>
</div>
</div>
</div>{{!--/.post-card-content--}}
{{#if feature_image}}
<div class="post-card-image-link">
{{!-- This is a responsive image, it loads different sizes depending on device
https://medium.freecodecamp.org/a-guide-to-responsive-images-with-ready-to-use-templates-c400bd65c433 --}}
<img class="post-card-image"
srcset="{{img_url feature_image size="s"}} 300w,
{{img_url feature_image size="m"}} 600w,
{{img_url feature_image size="l"}} 1000w,
{{img_url feature_image size="xl"}} 2000w"
sizes="(max-width: 1000px) 400px, 800px"
src="{{img_url feature_image size="m"}}"
alt="{{title}}"
loading="lazy"
/>
</div>
{{/if}}
{{/tag}}
</div>
<div class="inner posts">
<div class="post-container">
<div class="post-feed-column">
<div class="post-feed">
{{#foreach posts}}
{{!-- The tag below includes the markup for each post - partials/post-card.hbs --}}
{{> "post-card"}}
{{/foreach}}
</div>
{{ pagination }}
</div>
{{!-- Sidebar with menu --}}
<aside class="sidebar">
<div class="sidebar-content">
<div class="sidebar-box subscribe-box">
{{!--
<div class="sidebar-subscription">
<h3>Subscribe to our blog</h3>
<p>Get the latest posts right to your inbox</p>
<button class="btn-primary" type="button">Subscribe</button>
</div>
--}}
<div class="sidebar-banner">
<a href="https://tmetric.com/registration">{{> "icons/trial-banner"}}</a>
</div>
<a class="site-nav-search-button" href="/search" title="Search">{{> "icons/search"}} Search</a>
{{!--
<div class="sidebar-banner">
<a href="https://tmetric.com">{{> "icons/empower-your-team-banner"}}</a>
</div>
--}}
</div>
<div class="sidebar-box social-box">
<div class="social">
<h4>Social</h4>
<div class="social-list">
{{#if @site.facebook}}<a href="{{facebook_url @site.facebook}}" target="_blank" rel="noopener">{{> "icons/icon-facebook"}}</a>{{/if}}
{{#if @site.twitter}}<a href="{{twitter_url @site.twitter}}" target="_blank" rel="noopener">{{> "icons/icon-twitter"}}</a>{{/if}}
<a href="https://www.linkedin.com/company/tmetric-time-tracking-app" target="_blank" rel="noopener">{{> "icons/icon-linkedin"}}</a>
<a href="https://www.youtube.com/channel/UCPmbWbH2xUKdmVwVcQMOxaw" target="_blank" rel="noopener">{{> "icons/icon-youtube"}}</a>
<a href="https://discord.gg/x9wKqhcfaG" target="_blank" rel="noopener">{{> "icons/icon-discord"}}</a>
</div>
</div>
</div>
<h3 class="mobile-menu-opener">Categories <span class="icon">{{> "icons/arrow-down"}}</span></h3>
<div class="sidebar-menu">
<div class="sidebar-box">
<div class="categories">
<h4>Categories:</h4>
<ul class="nav tags">
{{#get 'tags' limit='all' include='count.posts' order='count.posts desc'}}
{{#foreach tags}}
<li>
<a href="{{ url }}">
<span>{{ name }}</span>
<span class="counter">{{ count.posts }}</span>
</a>
</li>
{{/foreach}}
{{/get}}
</ul>
{{navigation}}
</div>
</div>
</div>
</div>
</aside>
</div>
</div>
</section>