Second pass 2.0

This commit is contained in:
John O'Nolan
2017-05-31 19:09:50 +01:00
parent ad9cb81a06
commit bc9e5a0b2e
11 changed files with 186 additions and 71 deletions

View File

@@ -1,13 +1,15 @@
{{!< 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 tag above means: insert everything in this file
into the {body} of the default.hbs template --}}
{{!-- The big featured header, it uses blog cover image as a BG if available --}}
<header class="site-header outer {{#if @blog.cover_image}}" style="background-image: url({{@blog.cover_image}}){{else}}no-cover{{/if}}">
<header class="site-header outer">
<div class="inner">
<nav class="site-nav">
<div class="site-nav-left">
{{#if @blog.logo}}
<a class="site-nav-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="{{@blog.title}}" /></a>
{{/if}}
{{#if @blog.navigation}}
{{!-- The blog navigation links from /ghost/settings/design --}}
{{navigation}}
@@ -32,21 +34,30 @@
</div>
</header>
{{!-- Everything inside the #post tags pulls data from the page --}}
{{!-- Everything inside the #post tags pulls data from the post --}}
{{#post}}
<main id="site-main" class="site-main outer" role="main">
<div class="inner">
<main class="content" role="main">
<article class="{{post_class}}">
<article class="post-full {{post_class}}">
<header class="post-header">
<h1 class="post-title">{{title}}</h1>
</header>
<header class="post-full-header">
<h1 class="post-full-title">{{title}}</h1>
</header>
<section class="post-content">
{{content}}
</section>
{{#if feature_image}}
<figure class="post-full-image" style="background-image: url({{feature_image}})">
</figure>
{{/if}}
</article>
<section class="post-full-content">
{{content}}
</section>
</article>
</div>
</main>
{{/post}}