ghost_leaders_theme/default.hbs

99 lines
3.3 KiB
Handlebars

<!DOCTYPE html>
<html lang="{{@site.locale}}">
<head>
<title>{{meta_title}}</title>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="HandheldFriendly" content="True" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" type="text/css" href="{{asset "built/screen.css"}}" />
{{ghost_head}}
</head>
<body class="bg-zinc-900 text-stone-100 font-sans leading-normal tracking-normal dark {{body_class}}">
<header class="w-full flex flex-col md:flex-row p-5 content-center">
<div class="flex basis-1/3 place-content-center md:place-content-start place-items-center flex-row">
<a class="gh-head-logo" href="{{@site.url}}">
{{#if @site.logo}}
<img src="{{@site.logo}}" alt="{{@site.title}}" />
{{else}}
{{@site.title}}
{{/if}}
</a>
</div>
<nav class="flex basis-1/3 place-content-center place-items-center flex-row">
{{navigation}}
</nav>
<div class="flex basis-1/3 place-content-center md:place-content-end place-items-center flex-row">
{{#if @site.secondary_navigation}}
{{navigation type="secondary"}}
{{/if}}
</div>
</header>
<main class="container m-auto mt-10">
{{{body}}}
</main>
<footer class="container m-auto mt-10 mb-3 text-xs">
<div class="mb-2">
<a class="" href="https://feedly.com/i/subscription/feed/https://piotrkrzyzek.com/rss/" target="_blank" rel="noopener noreferrer" aria-label="RSS">
<i class="fa-duotone fa-rss fa-lg mr-2">
</i>
</a>
<a class="" href="https://github.com/piotrkrzyzek" target="_blank" rel="noopener noreferrer" aria-label="Github">
<i class="fa-brands fa-github fa-lg mr-2">
</i>
</a>
<a class="" href="https://linkedin.com/in/gopeter" target="_blank" rel="noopener noreferrer" aria-label="LinkedIn">
<i class="fa-brands fa-linkedin fa-lg mr-2">
</i>
</a>
<a class="" href="https://instagram.com/piotrkrzyzek" target="_blank" rel="noopener noreferrer" aria-label="Instagram">
<i class="fa-brands fa-instagram fa-lg">
</i>
</a>
</div>
<div class="copyright">
© {{date format="YYYY"}}
<a href="https://piotrkrzyzek.com/">Piotr (Peter) Krzyzek</a>
</div>
</footer>
{{!-- <foot> --}}
<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}}
{{#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 = $("main");
$postContent.fitVids();
});
</script>
{{/is}}
{{ghost_foot}}
{{!-- Outputs important scripts - should always be included before closing body tag --}}
</body>
</html>