2 {{!-- The tag above means: insert everything in this file
3 into the {body} of the default.hbs template --}}
6 {{!-- Everything inside the #post tags pulls data from the post --}}
9 <header class="main content">
10 <span class="date">{{date format="MMMM D, YYYY"}}</span>
12 {{#if custom_excerpt}}
13 <p class="content">{{custom_excerpt}}</p>
18 <div class="image main"><img src="{{img_url feature_image}}" alt="{{title}}" /></div>
25 {{!-- Email subscribe form at the bottom of the page --}}
26 {{#if @labs.subscribers}}
27 <section class="subscribe-form">
28 <h3 class="subscribe-form-title">Subscribe to {{@site.title}}</h3>
29 <p>Get the latest posts delivered right to your inbox</p>
30 {{subscribe_form placeholder="youremail@example.com"}}
34 <footer class="post-footer">
38 <a class="author-box" href="{{url}}">
40 <img class="author-profile-image" src="{{profile_image}}" alt="{{name}}" />
42 <section class="author-box-content">
43 <div class="author-box-label">Author</div>
44 <h5 class="author-box-name">{{name}}</h5>
48 <p>Read more posts by this author.</p>
58 <section class="post-full-comments">
59 If you want to embed comments, this is a good place to do it!
67 var images = document.querySelectorAll('.kg-gallery-image img');
68 images.forEach(function (image) {
69 var container = image.closest('.kg-gallery-image');
70 var width = image.attributes.width.value;
71 var height = image.attributes.height.value;
72 var ratio = width / height;
73 container.style.flex = ratio + ' 1 0%';