-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathamp.hbs
74 lines (59 loc) · 12 KB
/
amp.hbs
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
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<html ⚡>
<head>
{{!-- Document Settings --}}
<meta charset="utf-8">
{{!-- Page Meta --}}
<title>{{meta_title}}</title>
{{!-- Mobile Meta --}}
<meta name="HandheldFriendly" content="True" />
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
{{!-- Brand icon --}}
<link rel="shortcut icon" href="{{asset "favicon.ico"}}">
{{amp_ghost_head}}
{{!-- Styles'n'Scripts --}}
<link href="https://fonts.googleapis.com/css?family=Cardo:400,400i,700" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Fira+Sans:400,500,700" rel="stylesheet">
<style amp-custom>article,aside,details,figcaption,figure,footer,header,hr,main,menu,nav,section,summary{display:block}amp-img,hr,img,legend{border:0}body,html{max-height:100%;height:100%}a,body{color:#212226}body,dl,h1,h2,h3,h4,h5,h6,ol,p,ul{text-rendering:geometricPrecision}dl dt,svg:not(:root){overflow:hidden}dl dd,dl dt{margin-bottom:1em}body,li li{margin:0}hr,legend,pre code,pre tt,td,th{padding:0}blockquote small,kbd{display:inline-block}a,table{background-color:transparent}mark,table th{color:#000}.blog-title,.main-header,sub,sup{position:relative}.blog-title a,.post-meta a,.post-title a{text-decoration:none}html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,blockquote cite,optgroup,strong{font-weight:700}dfn{font-style:italic}mark{background:#fdffb6}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0}sup{top:-.5em}sub{bottom:-.25em}figure{margin:1em 40px}hr{box-sizing:content-box;margin:1.75em 0;height:1px;border-top:#efefef 1px solid}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{margin:0;color:inherit;font:inherit}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{cursor:pointer;-webkit-appearance:button}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{margin:0 2px;padding:.35em .625em .75em;border:1px solid silver}html{font-size:62.5%;-webkit-tap-highlight-color:transparent}body{background:#fff;letter-spacing:.01rem;font-family:Cardo,serif;font-size:1.8rem;line-height:1.75em;-webkit-font-feature-settings:"kern" 1;-moz-font-feature-settings:"kern" 1;-o-font-feature-settings:"kern" 1}::-moz-selection{background:#d6edff}::selection{background:#d6edff}h1,h2,h3,h4,h5,h6{margin:0 0 .3em;color:#2e2e2e;font-family:'Fira Sans',sans-serif;line-height:1.15em;-webkit-font-feature-settings:"dlig" 1,"liga" 1,"lnum" 1,"kern" 1;-moz-font-feature-settings:"dlig" 1,"liga" 1,"lnum" 1,"kern" 1;-o-font-feature-settings:"dlig" 1,"liga" 1,"lnum" 1,"kern" 1}code,pre,tt{border:1px solid #e5e4e1;background:#faf9f7;font-family:Inconsolata,monospace,sans-serif}h1{text-indent:-2px;letter-spacing:-1px;font-size:2.6rem}h2{letter-spacing:0;font-size:2.4rem}h3{letter-spacing:-.6px;font-size:2.1rem}h4{font-size:1.9rem}h5,h6{font-size:1.8rem}a:hover{color:#111}dl,ol,p,ul{margin:0 0 2em;font-size:1.5rem;-webkit-font-feature-settings:"liga" 1,"onum" 1,"kern" 1;-moz-font-feature-settings:"liga" 1,"onum" 1,"kern" 1;-o-font-feature-settings:"liga" 1,"onum" 1,"kern" 1}ol,ul{padding-left:1em}ol ol,ol ul,ul ol,ul ul{margin:0 0 .4em;padding-left:2em}dl dt{float:left;clear:left;width:180px;text-align:right;text-overflow:ellipsis;white-space:nowrap;font-weight:700}dl dd{margin-left:200px}li{margin:.4em 0}blockquote{box-sizing:border-box;-moz-box-sizing:border-box;margin:2em auto;padding:2px 1em;border-left:.25em solid #e5e4e1;color:#45484d;background:#faf9f7}pre,table{box-sizing:border-box;width:100%}blockquote p{margin:.8em 0;font-style:italic}blockquote small{margin:.8em 0 .8em 1.5em;color:#ccc;font-size:.9em}blockquote small:before{content:"\2014 \00A0"}blockquote cite a{font-weight:400}code,tt{padding:2px 4px;margin:0 .334em;white-space:pre-wrap;font-size:.85em;font-feature-settings:"liga" 0;-webkit-font-feature-settings:"liga" 0;-moz-font-feature-settings:"liga" 0}pre{overflow:auto;margin:0 0 1.75em;padding:10px;border-radius:1px;white-space:pre;font-size:.9em;-moz-box-sizing:border-box}pre code,pre tt{border:none;background:0 0;white-space:pre-wrap;font-size:inherit}kbd{margin-bottom:.4em;padding:1px 8px;border:1px solid #ccc;background:#f4f4f4;border-radius:4px;box-shadow:0 1px 0 rgba(0,0,0,.2),0 1px 0 0 #fff inset;color:#666;text-shadow:#fff 0 1px 0;font-size:.9em;font-weight:700}table{border-spacing:0;border-collapse:collapse;margin:1.75em 0;max-width:100%;-moz-box-sizing:border-box}table td,table th{padding:8px;border-top:#efefef 1px solid;vertical-align:top;text-align:left;line-height:20px}table caption+thead tr:first-child td,table caption+thead tr:first-child th,table colgroup+thead tr:first-child td,table colgroup+thead tr:first-child th,table thead:first-child tr:first-child td,table thead:first-child tr:first-child th{border-top:0}table tbody+tbody{border-top:#efefef 2px solid}table table table{background-color:#fff}table tbody>tr:nth-child(odd)>td,table tbody>tr:nth-child(odd)>th{background-color:#f6f6f6}table.plain tbody>tr:nth-child(odd)>td,table.plain tbody>tr:nth-child(odd)>th{background:0 0}.fluid-width-video-wrapper,amp-iframe,iframe{display:block;margin:1.75em 0}.fluid-width-video-wrapper amp-iframe,.fluid-width-video-wrapper iframe{margin:0}input,select,textarea{margin:0 0 5px;padding:6px 9px;width:260px;outline:0;border:1px solid #e7eef2;background:#fff;border-radius:4px;box-shadow:none;font-family:Cardo,serif;font-size:1.6rem;line-height:1.4em;font-weight:100;-webkit-appearance:none}textarea{overflow:auto;min-width:250px;min-height:80px;max-width:340px;width:100%;height:auto}input[type=text]:focus,input[type=email]:focus,input[type=tel]:focus,input[type=url]:focus,input[type=password]:focus,input[type=date]:focus,input[type=month]:focus,input[type=week]:focus,input[type=time]:focus,input[type=datetime]:focus,input[type=datetime-local]:focus,input[type=number]:focus,input[type=search]:focus,textarea:focus{outline:0;border:1px solid #bbc7cc;background:#fff}select{width:270px;height:30px;line-height:30px}.clearfix:after,.clearfix:before{content:" ";display:table}.clearfix:after{clear:both}.clearfix{zoom:1}.main-header{display:table;overflow:hidden;box-sizing:border-box;width:100%;height:50px;background:center center no-repeat #000;background-size:cover;text-align:left;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.content{background:#fff;padding-top:2em}.blog-title,.content{margin:auto;max-width:600px}.blog-title{padding:4em 0 1.5em;text-align:center;background-image:url('{{img_url @site.cover_image}}');background-size:cover;background-repeat:no-repeat;background-position:center top}.blog-title:after{position:absolute;width:100%;height:4em;left:0;bottom:0;z-index:8;content:'';background:linear-gradient(to bottom,transparent 0,rgba(0,0,0,.9) 100%)}.blog-title .blog-description,.blog-title a{color:#fff;display:block;padding-right:16px;padding-left:16px;z-index:9;position:relative}.blog-title a{font-family:'Fira Sans',sans-serif;font-size:1.8em;font-weight:600;line-height:1}.blog-title .blog-description{font-size:.8em;line-height:1.2;margin:10px auto 0;max-width:320px}.blog-title .blog-description a{font-size:.8em;display:inline-block;padding:0;font-family:Cardo,serif;font-weight:400;border-bottom:1px solid #fff}.post-meta,.site-footer{font-family:'Fira Sans',sans-serif}.post{position:relative;margin-top:0;margin-right:16px;margin-left:16px;padding-bottom:0;max-width:100%;border-bottom:#ebf2f6 1px solid;word-wrap:break-word;font-size:.95em;line-height:1.65em}.post-header{margin-bottom:1rem}.post-title{margin-bottom:0}.post-meta{display:block;margin:3px 0 0;color:#9eabb3;font-size:1.3rem;line-height:2.2rem}.post-meta a{color:#9eabb3}.post-meta a:hover{text-decoration:underline}.footnotes p a:last-child,.post-content a,.site-footer a{text-decoration:none}.post-meta .author{margin:0;font-size:1.3rem;line-height:1.3em;display:inline-block}.post-date{display:inline-block;white-space:nowrap;font-size:1.2rem;line-height:1.2em}.post-image{margin:0;padding-top:3rem;padding-bottom:30px;border-top:1px #E8E8E8 solid}.post-content{padding-top:10px}.post-content a{border-bottom:1px solid #f26a3d}.post-content amp-anim,.post-content amp-img{position:relative;margin-bottom:2em;left:50%;display:block;padding:0;min-width:0;max-width:112%;width:calc(100% + 32px);height:auto;transform:translateX(-50%);-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%)}.copyright,.poweredby{display:block;width:45%}.footnotes{font-size:1.3rem;line-height:1.6em;font-style:italic}.footnotes li{margin:.6rem 0}.footnotes p{margin:0}.site-footer{position:relative;margin:0 auto 20px;padding:1rem 15px;max-width:600px;color:rgba(0,0,0,.5);font-size:1.1rem;line-height:1.75em}.site-footer a{color:rgba(0,0,0,.5);font-weight:700}.site-footer a:hover{border-bottom:#bbc7cc 1px solid}.poweredby{float:right;text-align:right}.copyright{float:left}.post-share{margin-left: -10px;height:50px;}</style>
{{!-- The AMP boilerplate --}}
<style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
<script async src="https://cdn.ampproject.org/v0.js"></script>
{{!-- amp_components helper renders the necessary script tags for AMP depending on the HTML in the content --}}
{{amp_components}}
<script async custom-element="amp-addthis" src="https://cdn.ampproject.org/v0/amp-addthis-0.1.js"></script>
</head>
<body class="amp-template">
{{#post}}
<header class="main-header">
<nav class="blog-title">
<a href="{{@site.url}}">{{@site.title}}</a>
{{#if @site.description}}
<span class="blog-description">Entrepreneur and founder of <a href="https://elmah.io/?utm_source=thomasardal&utm_campaign=thomasardal&utm_medium=blog">elmah.io</a></span>
{{/if}}
</nav>
</header>
<main class="content" role="main">
<article class="post">
<header class="post-header">
<h1 class="post-title">{{title}}</h1>
<section class="post-meta">
{{#primary_author}}
<p class="author"><a href="{{url}}">{{name}}</a></p> |
{{/primary_author}}
<time class="post-date" datetime="{{date format="YYYY-MM-DD"}}">{{date format="DD MMM YYYY"}}</time>
</section>
<section class="post-share">
<amp-addthis width="320" height="92" data-pub-id="ra-5c5d5f2e84d03347" data-widget-id="q4pk"></amp-addthis>
</section>
</header>
<section class="post-content">
{{amp_content}}
</section>
</article>
</main>
{{/post}}
<footer class="site-footer clearfix">
<section class="copyright"><a href="{{@site.url}}">{{@site.title}}</a> © {{date format="YYYY"}}</section>
</footer>
</body>
</html>