Vivid-Casper/default.hbs

88 lines
3.5 KiB
Handlebars
Raw Normal View History

<!DOCTYPE html>
<html lang="{{@site.lang}}">
<head>
2017-05-15 20:03:47 +00:00
{{!-- Document Settings --}}
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
2013-09-15 16:50:23 +00:00
2017-05-15 20:03:47 +00:00
{{!-- Base Meta --}}
<title>{{meta_title}}</title>
<meta name="HandheldFriendly" content="True" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
2013-09-15 16:50:23 +00:00
{{!-- Styles'n'Scripts --}}
<link rel="stylesheet" type="text/css" href="{{asset "built/screen.css"}}" />
2017-02-24 05:23:02 +00:00
2017-09-29 12:23:39 +00:00
{{!-- This tag outputs SEO meta+structured data and other important settings --}}
{{ghost_head}}
2017-05-15 20:03:47 +00:00
</head>
<body class="{{body_class}}">
2015-02-27 14:48:15 +00:00
<div class="site-wrapper">
{{!-- All the main content gets inserted here, index.hbs, post.hbs, etc --}}
2015-02-27 14:48:15 +00:00
{{{body}}}
2017-05-15 20:03:47 +00:00
{{!-- The footer at the very bottom of the screen --}}
<footer class="site-footer outer">
<div class="site-footer-content inner">
<section class="copyright"><a href="{{@site.url}}">{{@site.title}}</a> &copy; {{date format="YYYY"}}</section>
2017-05-15 20:03:47 +00:00
<nav class="site-footer-nav">
<a href="{{@site.url}}">Latest Posts</a>
{{#if @site.facebook}}<a href="{{facebook_url @site.facebook}}" target="_blank" rel="noopener">Facebook</a>{{/if}}
{{#if @site.twitter}}<a href="{{twitter_url @site.twitter}}" target="_blank" rel="noopener">Twitter</a>{{/if}}
<a href="https://ghost.org" target="_blank" rel="noopener">Ghost</a>
2017-05-15 20:03:47 +00:00
</nav>
</div>
2015-02-27 14:48:15 +00:00
</footer>
</div>
2017-06-16 09:44:06 +00:00
{{!-- The big email subscribe modal content --}}
2017-06-15 14:03:19 +00:00
{{#if @labs.subscribers}}
<div id="subscribe" class="subscribe-overlay">
<a class="subscribe-overlay-close" href="#"></a>
<div class="subscribe-overlay-content">
{{#if @site.logo}}
<img class="subscribe-overlay-logo" src="{{@site.logo}}" alt="{{@site.title}}" />
2017-06-15 14:03:19 +00:00
{{/if}}
<h1 class="subscribe-overlay-title">Subscribe to {{@site.title}}</h1>
2017-06-15 14:03:19 +00:00
<p class="subscribe-overlay-description">Stay up to date! Get all the latest &amp; greatest posts delivered straight to your inbox</p>
{{subscribe_form placeholder="youremail@example.com"}}
</div>
</div>
{{/if}}
<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%';
})
</script>
2017-05-15 20:03:47 +00:00
{{!-- jQuery + Fitvids, which makes all video embeds responsive --}}
2017-06-08 07:19:22 +00:00
<script
src="https://code.jquery.com/jquery-3.2.1.min.js"
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous">
</script>
<script type="text/javascript" src="{{asset "built/jquery.fitvids.js"}}"></script>
2017-05-15 20:03:47 +00:00
2018-10-12 05:56:54 +00:00
<script src="{{asset "built/infinitescroll.js"}}"></script>
2017-06-08 07:19:22 +00:00
{{!-- The #block helper will pull in data from the #contentFor other template files. In this case, there's some JavaScript which we only want to use in post.hbs, but it needs to be included down here, after jQuery has already loaded. --}}
{{{block "scripts"}}}
2017-05-15 20:03:47 +00:00
{{!-- Ghost outputs important scripts and data with this tag - it should always be the very last thing before the closing body tag --}}
{{ghost_foot}}
</body>
</html>