forked from TryGhost/Alto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault-custom.hbs
27 lines (27 loc) · 1.05 KB
/
default-custom.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
<!DOCTYPE html>
<html lang="{{@site.locale}}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{{@site.title}} — {{meta_title}}</title>
<meta name="HandheldFriendly" content="True">
<meta name="viewport" content="width=device-width, initial-scale=1">
{{>services/google_fonts}}
<link rel="stylesheet" type="text/css" href="{{asset "css/screen.css"}}">
{{#is "post,page"}}
{{{block "background_cover_css"}}}
{{else if @site.cover_image}}
<style>.global-cover{background-image:url({{img_url @site.cover_image size="xl"}})}@media(max-width:480px){.global-cover{background-image:url({{img_url @site.cover_image size="l"}})}}</style>
{{/is}}
{{ghost_head}}
</head>
<body class="custom-page{{#get "tags" limit="all" filter="visibility:internal"}}{{#foreach tags visibility="internal"}} global-{{slug}}{{/foreach}}{{/get}}">
{{#is "post,page"}}
{{{block "background_cover"}}}
{{else}}
{{>images/background_cover [email protected]_image}}
{{/is}}
{{{body}}}
{{ghost_foot}}
</body>
</html>