You've already forked Ghost-Theme-Source
CTA
This commit is contained in:
12
partials/components/cta.hbs
Normal file
12
partials/components/cta.hbs
Normal 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>
|
||||
@@ -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">
|
||||
|
||||
@@ -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 --}}
|
||||
|
||||
Reference in New Issue
Block a user