img header font shadow, font color option added
This commit is contained in:
parent
4e696f2adb
commit
9ffe2fd965
|
@ -751,7 +751,11 @@ header:
|
|||
-
|
||||
subtitle:
|
||||
-
|
||||
titleColor:
|
||||
titleShadow: false
|
||||
titleFontSize: 44
|
||||
subtitleColor:
|
||||
subtitleCursive: false
|
||||
subtitleFontSize: 16
|
||||
spaceBetweenTitleSubtitle: 20
|
||||
|
||||
|
|
|
@ -744,7 +744,11 @@ header:
|
|||
-
|
||||
subtitle:
|
||||
-
|
||||
titleColor:
|
||||
titleShadow: false
|
||||
titleFontSize: 44
|
||||
subtitleColor:
|
||||
subtitleCursive: false
|
||||
subtitleFontSize: 16
|
||||
spaceBetweenTitleSubtitle: 20
|
||||
|
||||
|
|
|
@ -31,7 +31,11 @@ header:
|
|||
subtitle:
|
||||
- header subtitle1
|
||||
- header subtitle2
|
||||
titleColor:
|
||||
titleShadow: false
|
||||
titleFontSize: 44
|
||||
subtitleColor:
|
||||
subtitleCursive: false
|
||||
subtitleFontSize: 16
|
||||
spaceBetweenTitleSubtitle: 20
|
||||
|
||||
|
|
|
@ -30,7 +30,11 @@ header:
|
|||
-
|
||||
subtitle:
|
||||
-
|
||||
titleColor:
|
||||
titleShadow: false
|
||||
titleFontSize: 44
|
||||
subtitleColor:
|
||||
subtitleCursive: false
|
||||
subtitleFontSize: 16
|
||||
spaceBetweenTitleSubtitle: 20
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
{{ $header := . }}
|
||||
{{ if .title }}
|
||||
{{ range .title }}
|
||||
<div class="site-header__title" style="font-size: {{ $header.titleFontSize }}px;">
|
||||
<div class="site-header__title {{ if $header.titleShadow }}site-header__title--shadow{{ end }}" style="font-size: {{ $header.titleFontSize }}px;">
|
||||
{{ . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
@ -16,7 +16,7 @@
|
|||
{{ end }}
|
||||
{{ if .subtitle }}
|
||||
{{ range .subtitle }}
|
||||
<div class="site-header__subtitle" style="font-size: {{ $header.subtitleFontSize }}px;">
|
||||
<div class="site-header__subtitle" style="font-size: {{ $header.subtitleFontSize }}px; {{ with $header.subtitleColor }}color:{{ . }}{{ end }}" data-cursive="{{ with $header.subtitleCursive }}{{ . }}{{ end }}">
|
||||
{{ . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
Loading…
Reference in New Issue