canvas layout styling
This commit is contained in:
parent
c09023b4da
commit
03f315fde2
5 changed files with 48 additions and 34 deletions
28
post.hbs
28
post.hbs
|
@ -3,25 +3,25 @@
|
|||
{{#post}}
|
||||
<article class="gh-post {{post_class}}">
|
||||
|
||||
<header class="gh-post-header">
|
||||
<header class="gh-post-header gh-canvas">
|
||||
<h1 class="gh-post-title">{{title}}</h1>
|
||||
|
||||
{{#if custom_excerpt}}
|
||||
<p class="gh-post-excerpt">{{custom_excerpt}}</p>
|
||||
{{/if}}
|
||||
|
||||
{{#if feature_image}}
|
||||
<div class="gh-post-image">
|
||||
<img class="kg-image" src="{{feature_image}}" alt="{{title}}" />
|
||||
</div>
|
||||
{{/if}}
|
||||
</header>
|
||||
|
||||
{{#if custom_excerpt}}
|
||||
<p class="gh-post-excerpt">{{custom_excerpt}}</p>
|
||||
{{/if}}
|
||||
|
||||
{{#if feature_image}}
|
||||
<div class="gh-post-image">
|
||||
<img class="kg-image" src="{{feature_image}}" alt="{{title}}" />
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div class="gh-post-body">
|
||||
<div class="gh-content-body gh-canvas">
|
||||
{{content}}
|
||||
</div>
|
||||
|
||||
<footer class="gh-post-footer">
|
||||
<footer class="gh-post-footer gh-canvas">
|
||||
|
||||
<div class="gh-post-authors">
|
||||
Written by {{#foreach authors}}<a href="{{url}}">{{name}}</a>{{/foreach}}
|
||||
|
@ -52,4 +52,4 @@ images.forEach(function (image) {
|
|||
</script>
|
||||
{{/contentFor}}
|
||||
|
||||
{{!-- The #contentFor helper sends everything in it to the matching #block helper in default.hbs --}}
|
||||
{{!-- The #contentFor helper sends everything in it to the matching #block helper in default.hbs --}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue