2013-05-11 06:16:11 -04:00
|
|
|
{{!< default}}
|
2017-05-15 16:03:47 -04:00
|
|
|
{{!-- The tag above means: insert everything in this file
|
|
|
|
into the {body} of the default.hbs template --}}
|
2013-08-20 12:53:02 -04:00
|
|
|
|
2021-03-03 20:22:45 -05:00
|
|
|
<div class="site-header-content">
|
|
|
|
{{#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=""
|
|
|
|
/>
|
|
|
|
{{/if}}
|
|
|
|
<h1 class="site-title">
|
|
|
|
{{#if @site.logo}}
|
|
|
|
<img class="site-logo" src="{{img_url @site.logo size="m"}}" alt="{{@site.title}}" />
|
|
|
|
{{else}}
|
|
|
|
{{@site.title}}
|
2021-03-03 15:44:25 -05:00
|
|
|
{{/if}}
|
2021-03-03 20:22:45 -05:00
|
|
|
</h1>
|
|
|
|
<p>{{@site.description}}</p>
|
2021-10-30 12:41:08 -04:00
|
|
|
{{#unless @member}}
|
|
|
|
<a class="header-cta-button" href="#/portal">
|
|
|
|
<div>Enter your email</div>
|
|
|
|
<span>Subscribe</span>
|
|
|
|
</a>
|
|
|
|
{{/unless}}
|
2021-03-03 20:22:45 -05:00
|
|
|
</div>
|
2013-08-20 12:53:02 -04:00
|
|
|
|
2017-05-15 16:03:47 -04:00
|
|
|
{{!-- The main content area --}}
|
2018-04-17 16:19:05 -04:00
|
|
|
<main id="site-main" class="site-main outer">
|
2019-10-21 01:43:34 -04:00
|
|
|
<div class="inner posts">
|
2013-08-10 09:06:01 -04:00
|
|
|
|
2017-06-12 05:01:00 -04:00
|
|
|
<div class="post-feed">
|
2021-03-03 23:20:10 -05:00
|
|
|
{{#foreach posts}}
|
2017-06-12 05:01:00 -04:00
|
|
|
|
2022-01-30 06:03:49 -05:00
|
|
|
{{!-- Insert a banner at the 5th position --}}
|
|
|
|
{{#has index="4"}}
|
|
|
|
<div class="post-card post-card-large post-card-callout">
|
|
|
|
<a class="post-card-callout-link" href="https://fund.snipettemag.com" target="_blank">
|
|
|
|
<div class="post-card-excerpt" style="text-align: center; color: white;">
|
|
|
|
<img src="https://fund.snipettemag.com/img/header.png" class="post-card-callout-image"/>
|
|
|
|
<p>Snipette in print can become cheaper! But we need 1000 subscribers.</p>
|
|
|
|
<p class="gh-banner-button">
|
|
|
|
<span>Become one of them</span>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{{/has}}
|
|
|
|
|
2017-06-12 05:01:00 -04:00
|
|
|
{{!-- The tag below includes the markup for each post - partials/post-card.hbs --}}
|
|
|
|
{{> "post-card"}}
|
|
|
|
|
|
|
|
{{/foreach}}
|
|
|
|
</div>
|
2013-09-01 11:02:37 -04:00
|
|
|
|
2017-05-15 16:03:47 -04:00
|
|
|
</div>
|
2015-02-28 07:34:58 -05:00
|
|
|
</main>
|