|
|
|
@ -53,6 +53,15 @@
|
|
|
|
|
|
|
|
|
|
<meta name="color-scheme" content="{%- if config.extra.theme_switcher -%}light dark{%- elif config.extra.default_theme -%}{{config.extra.default_theme}}{%- else -%}light{%- endif -%}" />
|
|
|
|
|
|
|
|
|
|
{%- if config.extra.browser_theme_color and config.extra.browser_theme_color is iterable -%}
|
|
|
|
|
{# Handle array values: theme_color[0] for light mode, theme_color[1] for dark mode #}
|
|
|
|
|
<meta name="theme-color" media="(prefers-color-scheme: light)" content="{{ config.extra.browser_theme_color[0] }}" />
|
|
|
|
|
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="{{ config.extra.browser_theme_color[1] }}" />
|
|
|
|
|
{%- elif config.extra.browser_theme_color -%}
|
|
|
|
|
{# Handle single value #}
|
|
|
|
|
<meta name="theme-color" content="{{ config.extra.browser_theme_color }}" />
|
|
|
|
|
{%- endif -%}
|
|
|
|
|
|
|
|
|
|
{%- if page.description %}
|
|
|
|
|
<meta name="description" content="{{ page.description | striptags | safe }}" />
|
|
|
|
|
<meta property="og:description" content="{{ page.description | striptags | safe }}" />
|
|
|
|
|