9e734a8130
wowowowow
69 lines
2.0 KiB
Handlebars
69 lines
2.0 KiB
Handlebars
<!DOCTYPE html>
|
|
<html lang="{{@site.lang}}">
|
|
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="stylesheet" type="text/css" href="{{asset "built/screen.css"}}" />
|
|
<title>{{meta_title}}</title>
|
|
{{!-- Outputs important meta data and settings, should always be in <head> --}}
|
|
{{ghost_head}}
|
|
{{!-- Fonts --}}
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" />
|
|
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap"
|
|
rel="stylesheet">
|
|
{{!-- Simple little js lib --}}
|
|
<script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.8.0/dist/alpine.min.js"></script>
|
|
</head>
|
|
|
|
<body class="{{body_class}} bg-gray-100 dark:bg-gray-800">
|
|
|
|
{{> navbar}}
|
|
|
|
{{{body}}}
|
|
|
|
{{> footer}}
|
|
|
|
|
|
<script src="{{asset "built/jquery-3.4.1.min.js"}}"></script>
|
|
|
|
{{#if pagination.pages}}
|
|
<script>
|
|
var maxPages = parseInt('{{pagination.pages}}');
|
|
</script>
|
|
<script src="{{asset "built/infinitescroll.js"}}"></script>
|
|
{{/if}}
|
|
|
|
<script>
|
|
$(document).ready(function() {
|
|
// Mobile Menu Trigger
|
|
$('.gh-burger').click(function() {
|
|
$('body').toggleClass('gh-head-open');
|
|
});
|
|
});
|
|
</script>
|
|
|
|
{{#is "post, page"}}
|
|
<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() {
|
|
var $postContent = $(".gh-content");
|
|
$postContent.fitVids();
|
|
});
|
|
</script>
|
|
{{/is}}
|
|
{{ghost_foot}}
|
|
{{!-- Outputs important scripts - should always be included before closing body tag --}}
|
|
</body>
|
|
|
|
</html> |