-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
tag.leaf
76 lines (64 loc) · 3.21 KB
/
tag.leaf
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
#extend("base")
#export("head") {
<title>Posts Tagged With #(tag.name) | Blog | SteamPress</title>
<meta name="description" content="All of the SteamPress Blog Posts tagged with #(tag.name). These are the blog posts written under the tags and topics of #(tag.name)">
<meta property="og:title" content="Posts Tagged With #(tag.name)">
<meta property="og:type" content="website">
<meta property="og:url" content="#(uri)">
<meta property="og:description" content="All of the SteamPress Blog Posts tagged with #(tag.name). These are the blog posts written under the tags and topics of #(tag.name)">
<meta property="og:site_name" content="SteamPress">
<meta name="twitter:card" content="summary">
#if(site_twitter_handle) {
<meta name="twitter:site" content="@#(site_twitter_handle)">
}
<!-- Syntax Highlighting -->
<link rel="stylesheet" href="/static/css/prismHighlighting.css">
}
#export("scripts") {
<script src="/static/js/prismHighlighting.js"></script>
#if(disqus_name) {
<script id="dsq-count-scr" src="https://#(disqus_name).disqus.com/count.js" async></script>
}
}
#export("body") {
<div class="container mt-3">
<h1 class="text-center d-flex align-items-center justify-content-center">Posts Tagged With <span id="tag-title-badge" class="badge badge-default">#(tag.name)</span></h1>
<h2 class="h5 text-center"><small class="text-muted">#equal(tag.post_count, "1") {#(tag.post_count) post} ##else() {#(tag.post_count) posts}</small></h2>
<div id="tag-posts" class="mt-3">
<div id="blog-posts" class="mb-4">
#if(posts) {
#loop(posts.data, "post") {
<div class="blog-post card mb-3">
<div class="card-block">
<h1 class="post-title card-title text-center display-4">#(post.title)</h1>
<h6 class="card-subtitle mb-2 text-muted text-center">#(post.created_date) by <a href="/blog/authors/#(post.author_username)/">#(post.author_name)</a></h6>
<div class="post-contents card-text mt-3">
#markdown(post.long_snippet)
</div>
<div class="d-flex justify-content-center">
<a href="/blog/posts/#(post.slug_url)/" class="card-link">Continue Reading</a>
</div>
</div>
<div class="card-footer text-muted text-center">
<div class="post-tags">
<h5>
#loop(post.tags, "tag") {
<span class="badge badge-default"><a href="/blog/tags/#(tag.url_encoded_name)/">#(tag.name)</a></span>
}
</h5>
</div>
#if(disqus_name) {
<a href="/blog/posts/#(post.slug_url)#()disqus_thread" data-disqus-identifier="#(post.id)">0 Comments</a>
}
</div>
</div>
}
#paginator(posts)
}
##else() {
<p class="mb-4">There haven't been any blog posts yet!</p>
}
</div>
</div>
</div>
}