Page template integrated 👍🏼

This commit is contained in:
Eduardo Gomez 2019-02-27 17:15:35 +01:00
parent 9659e310c6
commit 6540ac76cc
4 changed files with 37 additions and 4 deletions

File diff suppressed because one or more lines are too long

View file

@ -5,8 +5,10 @@
{{> hero background=feature_image}}
<div class="m-hero__content" data-aos="fade-down">
<h1 class="m-hero-title">{{title}}</h1>
<p class="m-hero-description">{{excerpt}}</p>
<h1 class="m-hero-title bigger">{{title}}</h1>
{{#if excerpt}}
<p class="m-hero-description">{{excerpt}}</p>
{{/if}}
</div>
</header>
<main role="main">

31
page.hbs Normal file
View file

@ -0,0 +1,31 @@
{{!< default}}
{{#post}}
{{> header background=feature_image}}
{{> hero background=feature_image}}
<div class="m-hero__content" data-aos="fade-down">
<h1 class="m-hero-title bigger">{{title}}</h1>
{{#if excerpt}}
<p class="m-hero-description">{{excerpt}}</p>
{{/if}}
</div>
</header>
<main role="main">
<article>
<section class="l-content">
<div class="l-wrapper in-post" data-aos="fade-up" data-aos-delay="300">
<div class="l-post-content">
<section class="pos-relative js-post-content">
{{content}}
</section>
</div>
</div>
</section>
</article>
</main>
{{/post}}
{{#contentFor "scripts"}}
<script defer src="{{asset "js/page.js"}}"></script>
{{/contentFor}}

View file

@ -5,7 +5,7 @@
{{> hero background=feature_image}}
<div class="m-hero__content" data-aos="fade-down">
<h1 class="m-hero-title">{{name}}</h1>
<h1 class="m-hero-title bigger">{{name}}</h1>
<p class="m-heading__description">
{{plural ../pagination.total empty="No posts" singular="% post" plural="% posts"}} with this tag
</p>