Vivid-Casper/index.hbs

60 lines
2.2 KiB
Handlebars
Raw Normal View History

{{!< default}}
2017-05-15 20:03:47 +00:00
{{!-- The tag above means: insert everything in this file
into the {body} of the default.hbs template --}}
2013-08-20 16:53:02 +00:00
2022-05-16 11:33:11 +00:00
<div class="site-header-content outer{{#match @custom.about_section "Vertical"}} vertical{{/match}}">
2022-05-06 06:12:11 +00:00
{{#if @site.cover_image}}
{{!-- This is a responsive image, it loads different sizes depending on device
https://medium.freecodecamp.org/a-guide-to-responsive-images-with-ready-to-use-templates-c400bd65c433 --}}
<img class="site-header-cover"
srcset="{{img_url @site.cover_image size="s"}} 300w,
{{img_url @site.cover_image size="m"}} 600w,
{{img_url @site.cover_image size="l"}} 1000w,
{{img_url @site.cover_image size="xl"}} 2000w"
sizes="100vw"
src="{{img_url @site.cover_image size="xl"}}"
2022-05-14 05:23:02 +00:00
alt="{{@site.title}}"
2022-05-06 06:12:11 +00:00
/>
{{/if}}
2022-05-16 11:33:11 +00:00
{{#match @custom.about_section "!=" "None"}}
2022-05-14 05:23:02 +00:00
<section class="site-header-inner inner">
2022-05-16 11:33:11 +00:00
{{#if @custom.include_logo_in_about_section}}
{{#if @site.logo}}
<img class="site-logo" src="{{@site.logo}}" alt="{{@site.title}}">
{{/if}}
2022-05-14 05:23:02 +00:00
{{/if}}
<div class="site-header-wrapper">
2022-05-16 11:33:11 +00:00
{{#match @custom.about_section "Horizontal"}}
2022-05-14 05:23:02 +00:00
<h1 class="site-title">{{@site.title}}</h1>
2022-05-16 11:33:11 +00:00
{{else}}
{{#if @custom.include_logo_in_about_section}}
{{#unless @site.logo}}
<h1 class="site-title">{{@site.title}}</h1>
{{/unless}}
{{/if}}
2022-05-14 05:23:02 +00:00
{{/match}}
2022-05-16 11:33:11 +00:00
{{#if @site.description}}
<p class="site-description">{{@site.description}}</p>
{{/if}}
2022-05-14 05:23:02 +00:00
</div>
</section>
{{/match}}
2022-05-06 06:12:11 +00:00
</div>
2013-08-20 16:53:02 +00:00
2017-05-15 20:03:47 +00:00
{{!-- The main content area --}}
<main id="site-main" class="site-main outer">
2022-05-16 11:33:11 +00:00
<div class="inner posts">
2022-05-16 11:33:11 +00:00
<div class="post-feed{{#match @custom.feed_layout "List"}} list{{/match}}">
{{#foreach posts}}
{{!-- The tag below includes the markup for each post - partials/post-card.hbs --}}
{{> "post-card"}}
{{/foreach}}
2017-05-15 20:03:47 +00:00
</div>
2022-05-16 11:33:11 +00:00
</div>
2015-02-28 12:34:58 +00:00
</main>