-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.hbs
More file actions
65 lines (52 loc) · 5.18 KB
/
Copy pathdefault.hbs
File metadata and controls
65 lines (52 loc) · 5.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!doctype html>
<html class="no-js" lang="en">
<head>
{{! Document Settings }}
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
{{! Page Meta }}
<title>Rob Pickering: {{meta_title}}</title>
<meta name="description" content="">
<meta name="HandheldFriendly" content="True" />
<meta name="viewport" content="width=device-width, initial-scale=1">
{{! Place favicon.ico in the asset directory }}
<link rel="shortcut icon" href="{{asset "/favicon.ico"}}">
<link rel="apple-touch-icon" sizes="180x180" href="{{asset "/apple-touch-icon.png"}}">
<link rel="icon" type="image/png" href="{{asset "/favicon-32x32.png"}}" sizes="32x32">
<link rel="icon" type="image/png" href="{{asset "/favicon-16x16.png"}}" sizes="16x16">
<link rel="manifest" href="{{asset "/manifest.json"}}">
<link rel="mask-icon" href="{{asset "/safari-pinned-tab.svg"}}" color="#5bbad5">
<meta name="msapplication-config" content="{{asset "/browserconfig.xml"}}">
{{! Styles'n'Scripts }}
<link rel="stylesheet" href="{{asset "css/main.min.css"}}">
<link href="//fonts.googleapis.com/css?family=Vollkorn:400,400italic,700,700italic" rel="stylesheet" type="text/css">
<link href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.1/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-hQpvDQiCJaD2H465dQfA717v7lu5qHWtDbWNPvaTJ0ID5xnPUlVXnKzq7b8YUkbN" crossorigin="anonymous">
{{! Ghost outputs important style and meta data with this tag }}
{{ghost_head}}
<script type="text/javascript">(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create', 'UA-21738838-1', 'auto');ga('send', 'pageview');</script>
</head>
<body class="{{body_class}}">
{{! Everything else gets inserted here }}
<div id="container">
{{{body}}}
</div>
{{! Footer }}
<footer id="footer">
{{! Footer - Subscription }}
{{> footer-subscription-block}}
{{! Footer - Colons info }}
{{> footer-info-block}}
{{! Footer - info }}
<div class="footer_info_block container">
<div class="footer_info wrap">
<div class="footer_socialIcons">
{{> social-icons}}
</div>
</div>
</div>
</footer>
{{! Ghost outputs important scripts and data with this tag }}
{{ghost_foot}}
<script type="text/javascript">!function(s){"use strict";function e(s){return new RegExp("(^|\\s+)"+s+"(\\s+|$)")}function n(s,e){var n=a(s,e)?c:t;n(s,e)}var a,t,c;"classList"in document.documentElement?(a=function(s,e){return s.classList.contains(e)},t=function(s,e){s.classList.add(e)},c=function(s,e){s.classList.remove(e)}):(a=function(s,n){return e(n).test(s.className)},t=function(s,e){a(s,e)||(s.className=s.className+" "+e)},c=function(s,n){s.className=s.className.replace(e(n)," ")});var i={hasClass:a,addClass:t,removeClass:c,toggleClass:n,has:a,add:t,remove:c,toggle:n};"function"==typeof define&&define.amd?define(i):s.classie=i}(window);!function(){function e(){n()}function n(){d.addEventListener("click",t),i&&i.addEventListener("click",t),o.addEventListener("click",function(e){var n=e.target;u&&n!==d&&t()})}function t(){u?classie.remove(c,"show-menu"):classie.add(c,"show-menu"),u=!u}var c=document.body,o=document.querySelector("#container"),d=document.getElementById("open-button"),i=document.getElementById("close-button"),u=!1;e()}();function _dmBootstrap(e){var t=document.createElement("script");t.type="text/javascript",t.async=!0,t.src=("https:"==document.location.protocol?"https://":"http://")+e,(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(t)}function _dmFollowup(e){"undefined"==typeof DMAds&&_dmBootstrap("cdn2.DeveloperMedia.com/a.min.js")}function showUnsponsored(){document.getElementById("message_contents").innerHTML="<a href='/sponsorship'><strong>Sponsored by:</strong> I'm unsponsored today, click to learn more</a>",function(){_dmBootstrap("cdn1.DeveloperMedia.com/a.min.js"),setTimeout(_dmFollowup,2e3)}()}function showSponsor(e){document.getElementById("message_contents").innerHTML='<a href="'+e.campaignUrl+'" target="_blank" rel="noopener"><strong>Sponsored by:</strong> '+e.message+' <i class="fa fa-external-link" aria-hidden="true"></i></a>',[].forEach.call(document.querySelectorAll(".ad"),function(e){e.style.display="none"})}var xmlhttp=new XMLHttpRequest,url="https://bloghelpers.robpickering.com/api/CurrentSponsor";xmlhttp.onreadystatechange=function(){if(4===this.readyState&&200===this.status){var e=JSON.parse(this.responseText);null==e?showUnsponsored():showSponsor(e)}else 4===this.readyState&&200!==this.status&&showUnsponsored()},xmlhttp.open("GET",url,!0),xmlhttp.send();var disqus_shortname="robpickering";!function(){var e=document.createElement("script");e.async=!0,e.type="text/javascript",e.src="//"+disqus_shortname+".disqus.com/count.js",(document.getElementsByTagName("HEAD")[0]||document.getElementsByTagName("BODY")[0]).appendChild(e)}();</script>
</body>
</html>