-
Notifications
You must be signed in to change notification settings - Fork 13
/
default.hbs
74 lines (73 loc) · 3.45 KB
/
default.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 lang="zh-Hant" class="han-init">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>{{meta_title}}</title>
<meta name="HandheldFriendly" content="True" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="{{asset "favicon.ico"}}">
<link rel="stylesheet" media="all" href="//cdnjs.cloudflare.com/ajax/libs/Han/3.3.0/han.min.css">
<link rel="stylesheet" type="text/css" href="{{asset "css/application.css"}}" />
<link href='https://fonts.googleapis.com/css?family=Lato:300,400,300italic,400italic' rel='stylesheet' type='text/css'>
<link href='//cdnjs.cloudflare.com/ajax/libs/Han/3.3.0/font/han.woff' rel='stylesheet' type='text/css'>
<link href='//cdnjs.cloudflare.com/ajax/libs/Han/3.3.0/font/han.otf' rel='stylesheet' type='text/css'>
{{ghost_head}}
</head>
<body>
{{!-- {{navigation}} --}}
<div class="container">
{{!-- The big featured header --}}
<header class="center">
<div class="blog-title"><a href="{{@blog.url}}">{{@blog.title}}</a></div>
<div class="blog-description">{{@blog.description}}</div>
{{navigation}}
</header>
{{{body}}}
<footer class="center">
{{#if @labs.subscribers}}
<div class="subscribe-form">
{{subscribe_form placeholder="youremail@example.com"}}
</div>
{{/if}}
<p class="small"><a href="{{@blog.url}}">{{@blog.title}}</a> © {{date format="YYYY"}}</p>
<p class="small">Powered by <a href="https://ghost.org" target="_blank">Ghost</a> | Theme - <a href="https://github.com/imgarylai/text" target="_blank">text</a></p>
</footer>
</div>
<script type="text/javascript" src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.4.0/highlight.min.js"></script>
<script type="text/javascript" src="{{asset "js/highlightjs-line-numbers.min.js"}}" ></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/Han/3.3.0/han.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/pangu/3.3.0/pangu.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.4.0/styles/github.min.css">
<script>
hljs.initHighlightingOnLoad();
</script>
<script>
pangu.spacingPage();
</script>
{{! GoogleAnalytics }}
<script>
if (window.ga_id) {
(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', window.ga_id, 'auto');
ga('require', 'linkid', 'linkid.js');
ga('send', 'pageview');
}
</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%';
})
</script>
{{ghost_foot}}
</body>
</html>