💄 style(header): improve formatting for theme scripts

- adjust indentation and spacing for better readability

 feat(header): add webmentions support

- include webmentions partial if enabled in config
This commit is contained in:
Jeremiah Russell 2025-02-11 06:47:36 +00:00
parent 426a50fa7f
commit 324730556d
No known key found for this signature in database
GPG key ID: E576B835ACE207E5

View file

@ -136,10 +136,12 @@
<meta property="og:site_name" content="{{ config.title }}">
{%- if config.extra.theme_switcher and config.extra.theme_switcher == true -%}
{# If JavaScript is disabled, hide the button. #}
<noscript><link rel="stylesheet" href="{{ get_url(path='no_js.css') | safe }}"/></noscript>
<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>
{# If JavaScript is disabled, hide the button. #}
<noscript>
<link rel="stylesheet" href="{{ get_url(path='no_js.css') | safe }}" />
</noscript>
<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 -%}
{%- if config.extra.analytics.service -%}
@ -151,6 +153,11 @@
<meta name="fediverse:creator" content="@{{ config.extra.fediverse_creator["handle"] }}@{{ config.extra.fediverse_creator["domain"]}}" />
{%- endif -%}
{# Webmentions #}
{%- if config.extra.webmentions.enable -%}
{%- include "partials/webmentions.html" -%}
{%- endif -%}
{# Search #}
{%- if config.build_search_index -%}
{%- if config.search.index_format -%}