mnts.dev/index.hbs

53 lines
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
<div class="site-header-content outer{{#match @custom.header_style "Left aligned"}} left-aligned{{/match}}{{#unless @custom.show_publication_cover}}{{#match @custom.header_style "Hidden"}} no-content{{/match}}{{/unless}}">
2022-05-06 06:12:11 +00:00
2022-05-18 10:35:58 +00:00
{{#if @custom.show_publication_cover}}
{{#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"}}"
alt="{{@site.title}}"
/>
{{/if}}
2022-05-06 06:12:11 +00:00
{{/if}}
2022-05-19 12:33:24 +00:00
{{#match @custom.header_style "!=" "Hidden"}}
<div class="site-header-inner inner">
{{#unless @custom.show_logo_in_navigation}}
2022-05-16 11:33:11 +00:00
{{#if @site.logo}}
<img class="site-logo" src="{{@site.logo}}" alt="{{@site.title}}">
{{else}}
2022-05-19 12:33:24 +00:00
<h1 class="site-title">{{@site.title}}</h1>
2022-05-16 11:33:11 +00:00
{{/if}}
{{/unless}}
2022-05-19 12:33:24 +00:00
{{#if @site.description}}
<p class="site-description">{{@site.description}}</p>
{{/if}}
</div>
2022-05-14 05:23:02 +00:00
{{/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-18 02:48:08 +00:00
<div class="post-feed">
2022-05-16 11:33:11 +00:00
{{#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>