Global templates and 404

This commit is contained in:
John O'Nolan 2019-11-08 18:04:38 +07:00
parent 5e970154fa
commit 9fac3beb29
10 changed files with 149 additions and 152 deletions

View file

@ -1,7 +1,7 @@
{{!< default}}
{{#post}}
<article class="gh-post {{post_class}}">
<article class="{{post_class}}">
<header class="gh-header gh-canvas">
{{#if feature_image}}
@ -19,7 +19,7 @@
{{content}}
</div>
<footer class="gh-post-footer gh-canvas">
<footer class="gh-footer gh-canvas">
<div class="gh-post-authors">
Written by {{#foreach authors}}<a href="{{url}}">{{name}}</a>{{/foreach}}
@ -35,26 +35,3 @@
</article>
{{/post}}
{{#contentFor "scripts"}}
<script src="{{asset "built/jquery.fitvids.js"}}"></script>
<script>
var images = document.querySelectorAll('.kg-gallery-image img');
images.forEach(function (image) {
var container = image.closest('.kg-gallery-image');
var width = image.attributes.width.value;
var height = image.attributes.height.value;
var ratio = width / height;
container.style.flex = ratio + ' 1 0%';
});
$(document).ready(function () {
// FitVids - start
var $postContent = $(".gh-content");
$postContent.fitVids();
});
</script>
{{/contentFor}}
{{!-- The #contentFor helper sends everything in it to the matching #block helper in default.hbs --}}