💄 style(header): streamline HTML formatting

- remove unnecessary line breaks for cleaner HTML structure
- condense noscript and script tags for improved readability
This commit is contained in:
Jeremiah Russell 2025-03-19 14:58:51 +00:00
parent 0351af5dc6
commit 98e8c8eb1e
No known key found for this signature in database
GPG key ID: E576B835ACE207E5

View file

@ -136,12 +136,10 @@
<meta property="og:site_name" content="{{ config.title }}"> <meta property="og:site_name" content="{{ config.title }}">
{%- if config.extra.theme_switcher and config.extra.theme_switcher == true -%} {%- if config.extra.theme_switcher and config.extra.theme_switcher == true -%}
{# If JavaScript is disabled, hide the button. #} {# If JavaScript is disabled, hide the button. #}
<noscript> <noscript><link rel="stylesheet" href="{{ get_url(path='no_js.css') | safe }}"/></noscript>
<link rel="stylesheet" href="{{ get_url(path='no_js.css') | safe }}" /> <script type="text/javascript" src="{{ get_url(path='js/initializeTheme.min.js') | safe }}"></script>
</noscript> <script defer src="{{ get_url(path='js/themeSwitcher.min.js', trailing_slash=false) | safe }}"></script>
<script type="text/javascript" src="{{ get_url(path='js/initializeTheme.min.js') | safe }}"></script>
<script defer src="{{ get_url(path='js/themeSwitcher.min.js', trailing_slash=false) | safe }}"></script>
{%- endif -%} {%- endif -%}
{%- if config.extra.analytics.service -%} {%- if config.extra.analytics.service -%}