This commit is contained in:
Sodbileg Gansukh
2023-07-26 16:03:19 +08:00
parent 93bce3d338
commit fa133aa6ad
8 changed files with 193 additions and 26 deletions

View File

@@ -0,0 +1,12 @@
<section class="gh-cta gh-outer">
<div class="gh-cta-inner gh-inner">
<div class="gh-cta-content">
<h2 class="gh-cta-title is-title">{{@custom.footer_signup_header}}</h2>
<p class="gh-cta-description is-body">{{@custom.footer_signup_subhead}}</p>
</div>
<form class="gh-header-form">
<input class="gh-header-input" type="email" placeholder="jamie@example.com">
<button class="gh-button" type="submit">Subscribe</button>
</form>
</div>
</section>

View File

@@ -1,5 +1,5 @@
{{#if showFeatured}}
{{#get "posts" filter="featured:true" include="authors" limit="4" as |featured|}}
{{#get "posts" filter="featured:true" include="authors" limit=limit as |featured|}}
{{#if featured}}
<section class="gh-featured gh-outer">
<div class="gh-featured-inner gh-inner">

View File

@@ -35,9 +35,20 @@
{{!-- Highlight layout --}}
{{#match headerStyle "Highlight"}}
{{#foreach posts limit="4"}}
{{> "loop"}}
{{/foreach}}
{{#if @custom.show_featured}}
<div class="gh-header-left">
{{#foreach posts limit="4"}}
{{> "loop"}}
{{/foreach}}
</div>
<div class="gh-header-right">
{{> "components/featured" showFeatured=@custom.show_featured limit=6}}
</div>
{{else}}
{{#foreach posts limit="4"}}
{{> "loop"}}
{{/foreach}}
{{/if}}
{{/match}}
{{!-- Landing layout --}}