forked from belen-albeza/hikari-no-ghost-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage.hbs
32 lines (25 loc) · 1013 Bytes
/
page.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
{{!< default}}
{{! This is a page template. A page outputs content just like any other post, and has all the same
attributes by default, but you can also customise it to behave differently if you prefer. }}
{{! The big featured header on the homepage, with the site logo }}
<header class="main-header" {{#if @blog.cover}}style="background-image: url({{@blog.cover}})"{{/if}}>
{{#if @blog.logo}}
<p><a href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="logo" /></a></p>
{{else}}
<h1><a href="{{@blog.url}}">{{@blog.title}}</a></h1>
{{/if}}</a></p>
</header>
{{! Comment this if you are not using static pages}}
{{> menu}}
<main>
{{#post}}
<article class="{{post_class}} single">
{{! Each post has the blog logo at the top, with a link back to the home page }}
<header>
<h1>{{{title}}}</h1>
</header>
{{! Everything inside the #post tags pulls data from the post }}
{{content}}
{{/post}}
</article>
</main>