SHX-Theme/snippets/shx-header-subtitle.liquid

21 lines
635 B
Plaintext

{% liquid
capture shx_current_page
render "shx-get-current-page"
endcapture
assign shx_subtitle_color = "#AF9363"
if shx_current_page contains "texte"
assign shx_subtitle_color = settings.color_schemes["scheme-shx-texte"]["settings"]["background"]
endif
%}
<script>
console.log("shx_subtitle_color", {{ shx_subtitle_color }})
</script>
<div style="text-align: center; padding-left: 20px; padding-right: 20px">
<span style="color: {{ shx_subtitle_color }}; font-size: 24px; hyphens: auto;">{{ subtitle }}</span>
<h1 style="font-size: 38px; font-weight: bold; margin: 0; hyphens: auto;">{{ title }}</h1>
</div>