liebling/page.hbs

48 lines
1.6 KiB
Handlebars
Raw Normal View History

2019-04-14 18:41:25 +00:00
{{!--
This template is used for the posts that are marked as pages.
--}}
2020-07-02 20:23:00 +00:00
{{!-- This block loads specific styles for the post page --}}
{{#contentFor "styles"}}
<link rel="stylesheet" type="text/css" href="{{asset "css/post.css"}}" media="screen" rel="preload" as="style" />
2020-07-02 20:23:00 +00:00
{{/contentFor}}
2019-04-14 18:41:25 +00:00
{{!-- The tag below means: insert everything in this file
into the {body} of the default.hbs template --}}
2019-02-27 16:15:35 +00:00
{{!< default}}
2019-04-14 18:41:25 +00:00
{{!-- Everything inside the #post tags pulls data from the post --}}
2019-02-27 16:15:35 +00:00
{{#post}}
2019-03-08 09:47:48 +00:00
<div class="main-wrap">
2019-10-27 16:57:53 +00:00
{{!-- Special header.hbs partial to generate the <header> tag --}}
2019-03-08 09:47:48 +00:00
{{> header background=feature_image}}
2019-04-14 18:41:25 +00:00
{{!-- Inject styles of the hero image to make it responsive --}}
2019-03-08 09:47:48 +00:00
{{> hero background=feature_image}}
2019-02-27 16:15:35 +00:00
<div class="m-hero__content" data-aos="fade-down">
<h1 class="m-hero-title bigger">{{title}}</h1>
2019-05-14 07:52:33 +00:00
{{#if custom_excerpt}}
2020-02-25 16:10:57 +00:00
<p class="m-hero-description">{{custom_excerpt}}</p>
2019-02-27 16:15:35 +00:00
{{/if}}
</div>
2019-10-06 14:14:16 +00:00
</section>
2019-03-12 10:39:01 +00:00
<main>
2019-03-08 09:47:48 +00:00
<article>
2019-03-12 10:39:01 +00:00
<div class="l-content">
2019-03-08 09:47:48 +00:00
<div class="l-wrapper in-post" data-aos="fade-up" data-aos-delay="300">
<div class="l-post-content">
2019-03-12 10:39:01 +00:00
<div class="pos-relative js-post-content">
2019-03-08 09:47:48 +00:00
{{content}}
2019-03-12 10:39:01 +00:00
</div>
2019-03-08 09:47:48 +00:00
</div>
2019-02-27 16:15:35 +00:00
</div>
2019-03-12 10:39:01 +00:00
</div>
2019-03-08 09:47:48 +00:00
</article>
</main>
</div>
2019-02-27 16:15:35 +00:00
{{/post}}
2019-04-14 18:41:25 +00:00
{{!-- The #contentFor helper here will send everything inside it up to the matching #block helper found in default.hbs --}}
2019-02-27 16:15:35 +00:00
{{#contentFor "scripts"}}
<script defer src="{{asset "js/page.js"}}"></script>
{{/contentFor}}