-
Notifications
You must be signed in to change notification settings - Fork 8
/
page.hbs
119 lines (100 loc) · 4.67 KB
/
page.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
116
117
118
{{!< default}}
{{! This is a page template. A page outputs content just like any other post, and has all the same
attributes by default, but you can also customise it to behave differently if you prefer. }}
{{! Everything inside the #post tags pulls data from the page }}
{{#post}}
<header class="main-header detail-page image-bg post-head {{#if feature_image}}has-cover" style="background-image: url({{img_url feature_image}}){{else}}no-cover{{/if}}">
<a href="{{@blog.url}}" class="go-home-page" style="background-image:url({{#if @blog.logo}}{{@blog.logo}}{{else}}{{asset "/assets/go-home.png"}}{{/if}}")></a>
<h1 class="page-title"><a href="{{@blog.url}}">{{@blog.title}}</a></h1>
<h2 class="page-description">{{@blog.description}}</h2>
{{navigation}}
</header>
<main class="content" role="main">
<article class="{{post_class}} single-post">
<header class="post-header">
<h1 class="post-title">{{title}}</h1>
</header>
<section class="post-content short-diver">
{{content}}
</section>
<footer class="post-footer">
{{! Everything inside the #author tags pulls data from the author }}
{{#author}}
{{#if profile_image}}
<div class="author-image">
<a class="img image-bg" href="{{url}}" style="background-image: url({{img_url profile_image}})"><span class="hidden">{{name}}'s Picture</span></a>
</div>
{{/if}}
<section class="author short-diver">
<h4 class="author-name"><a href="{{url}}">{{name}}</a></h4>
{{#if bio}}
<p class="author-bio">{{bio}}</p>
{{else}}
<p>Read <a href="{{url}}">more posts</a> by this author.</p>
{{/if}}
<div class="author-meta">
{{#if location}}
<li class="author-location">
<a href="https://www.google.com/maps/search/{{location}}" class="icon-location" title="{{location}}"></a>
</li>
{{/if}}
{{#if website}}
<li class="author-link">
<a class="icon-link" href="{{website}}" title="{{website}}"></a>
</li>
{{/if}}
{{#if twitter}}
<li class="author-twitter">
<a class="icon-twitter" href="{{twitter_url}}" title="{{twitter}}"></a>
</li>
{{/if}}
{{#if facebook}}
<li class="author-facebook">
<a class="icon-facebook" href="{{facebook_url}}" title="{{facebook}}"></a>
</li>
{{/if}}
</div>
</section>
{{/author}}
</footer>
</article>
</main>
{{/post}}
{{> "comment"}}
<!-- Root element of PhotoSwipe. Must have class pswp. -->
<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">
<div class="pswp__bg"></div>
<div class="pswp__scroll-wrap">
<div class="pswp__container">
<div class="pswp__item"></div>
<div class="pswp__item"></div>
<div class="pswp__item"></div>
</div>
<div class="pswp__ui pswp__ui--hidden">
<div class="pswp__top-bar">
<div class="pswp__counter"></div>
<button class="pswp__button pswp__button--close" title="Close (Esc)"></button>
<button class="pswp__button pswp__button--share" title="Share"></button>
<button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>
<button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>
<div class="pswp__preloader">
<div class="pswp__preloader__icn">
<div class="pswp__preloader__cut">
<div class="pswp__preloader__donut"></div>
</div>
</div>
</div>
</div>
<div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
<div class="pswp__share-tooltip"></div>
</div>
<button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)">
</button>
<button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)">
</button>
<div class="pswp__caption">
<div class="pswp__caption__center"></div>
</div>
</div>
</div>
</div>