You've already forked Ghost-Theme-Casper
Settings cleanup
This commit is contained in:
34
index.hbs
34
index.hbs
@@ -4,18 +4,20 @@ into the {body} of the default.hbs template --}}
|
||||
|
||||
<div class="site-header-content outer{{#match @custom.about_section "Vertical"}} vertical{{/match}}">
|
||||
|
||||
{{#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 @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}}
|
||||
{{/if}}
|
||||
|
||||
{{#match @custom.about_section "!=" "None"}}
|
||||
@@ -27,7 +29,13 @@ into the {body} of the default.hbs template --}}
|
||||
{{/if}}
|
||||
<div class="site-header-wrapper">
|
||||
{{#match @custom.about_section "Horizontal"}}
|
||||
<h1 class="site-title">{{@site.title}}</h1>
|
||||
{{#if @site.logo}}
|
||||
<h1 class="site-title">{{@site.title}}</h1>
|
||||
{{else}}
|
||||
{{#if @custom.include_logo_in_about_section}}
|
||||
<h1 class="site-title">{{@site.title}}</h1>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{else}}
|
||||
{{#if @custom.include_logo_in_about_section}}
|
||||
{{#unless @site.logo}}
|
||||
|
||||
Reference in New Issue
Block a user