header image text color option added

This commit is contained in:
zzossig 2020-01-13 09:10:27 +09:00
parent 9ffe2fd965
commit 9da7f779ac
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@
{{ $header := . }}
{{ if .title }}
{{ range .title }}
<div class="site-header__title {{ if $header.titleShadow }}site-header__title--shadow{{ end }}" 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; {{ with $header.titleColor }}color:{{ . }}{{ end }};">
{{ . }}
</div>
{{ end }}
@ -19,7 +19,7 @@
<div class="site-header__subtitle" style="font-size: {{ $header.subtitleFontSize }}px; {{ with $header.subtitleColor }}color:{{ . }}{{ end }}" data-cursive="{{ with $header.subtitleCursive }}{{ . }}{{ end }}">
{{ . }}
</div>
{{ end }}
{{ end }}
{{ end }}
</div>
{{ end }}

View File

@ -5,7 +5,7 @@
{{ $header := . }}
{{ if .title }}
{{ range .title }}
<div class="site-header__title {{ if $header.titleShadow }}site-header__title--shadow{{ end }}" style="font-size: {{ $header.titleFontSize }}px; {{ with $header.titleColor }}color:{{ . }}{{ end }}">
<div class="site-header__title {{ if $header.titleShadow }}site-header__title--shadow{{ end }}" style="font-size: {{ $header.titleFontSize }}px; {{ with $header.titleColor }}color:{{ . }}{{ end }};">
{{ . }}
</div>
{{ end }}