liebling/page.hbs

55 lines
1.7 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-07 15:13:29 +00:00
{{!-- This block preloads specific assets for the post page --}}
{{#contentFor "preload"}}
<link rel="preload" href="{{asset "css/post.css"}}" as="style" />
<link rel="preload" href="{{asset "js/page.js"}}" as="script" />
{{/contentFor}}
2020-07-02 20:23:00 +00:00
{{!-- This block loads specific styles for the post page --}}
{{#contentFor "styles"}}
2020-07-07 15:13:29 +00:00
<link rel="stylesheet" type="text/css" href="{{asset "css/post.css"}}" media="screen" />
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}}
2020-07-07 15:13:29 +00:00
{{!-- Special header.hbs partial to generate the <header> tag --}}
2019-02-27 16:15:35 +00:00
{{#post}}
2020-07-07 15:13:29 +00:00
{{> header background=feature_image}}
{{/post}}
<main class="main-wrap">
{{!-- Everything inside the #post tags pulls data from the post --}}
{{#post}}
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>
2020-07-07 15:13:29 +00:00
<article>
<div class="l-content">
<div class="l-wrapper in-post" data-aos="fade-up" data-aos-delay="300">
<div class="l-post-content">
<div class="pos-relative js-post-content">
{{content}}
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>
2020-07-07 15:13:29 +00:00
</div>
</article>
{{/post}}
</main>
2019-02-27 16:15:35 +00:00
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}}