From b82680b103d5d52b73ac5d3de9802c5885aa699c Mon Sep 17 00:00:00 2001 From: Steffen Uhlig Date: Sat, 15 Jun 2024 11:51:28 +0200 Subject: [PATCH] Allow overriding HTML lang on a per-page basis (#4862) The W3C [recommends](https://www.w3.org/International/questions/qa-html-language-declarations) to specify language using identifiers as per [RFC 5646](https://tools.ietf.org/html/rfc5646) which uses dashes. --- _includes/archive-single.html | 2 +- _includes/breadcrumbs.html | 2 +- _layouts/archive-taxonomy.html | 2 +- _layouts/archive.html | 2 +- _layouts/default.html | 2 +- _layouts/search.html | 2 +- _layouts/single.html | 2 +- _layouts/splash.html | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/_includes/archive-single.html b/_includes/archive-single.html index 68174807..7854c961 100644 --- a/_includes/archive-single.html +++ b/_includes/archive-single.html @@ -11,7 +11,7 @@ {% endif %}
-
+
{% if include.type == "grid" and teaser %}
diff --git a/_includes/breadcrumbs.html b/_includes/breadcrumbs.html index 8ad29df9..929725ef 100644 --- a/_includes/breadcrumbs.html +++ b/_includes/breadcrumbs.html @@ -26,7 +26,7 @@ {{ site.data.ui-text[site.locale].breadcrumb_separator | default: "/" }} {% endif %} {% if forloop.last %} -
  • {{ page.title }}
  • +
  • {{ page.title }}
  • {% else %} {% assign i = i | plus: 1 %}
  • diff --git a/_layouts/archive-taxonomy.html b/_layouts/archive-taxonomy.html index eb62a874..4e94867d 100644 --- a/_layouts/archive-taxonomy.html +++ b/_layouts/archive-taxonomy.html @@ -20,7 +20,7 @@ author_profile: false
    {% unless page.header.overlay_color or page.header.overlay_image %} -

    {{ page.title }}

    +

    {{ page.title }}

    {% endunless %} {% for post in page.posts %} {% include archive-single.html %} diff --git a/_layouts/archive.html b/_layouts/archive.html index 84c285bc..83e109b5 100644 --- a/_layouts/archive.html +++ b/_layouts/archive.html @@ -19,7 +19,7 @@ layout: default
    {% unless page.header.overlay_color or page.header.overlay_image %} -

    {{ page.title }}

    +

    {{ page.title }}

    {% endunless %} {{ content }}
    diff --git a/_layouts/default.html b/_layouts/default.html index 55ecf104..1270b1f8 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -3,7 +3,7 @@ {% include copyright.html %} - + {% include head.html %} {% include head/custom.html %} diff --git a/_layouts/search.html b/_layouts/search.html index 9e661a36..da878435 100644 --- a/_layouts/search.html +++ b/_layouts/search.html @@ -17,7 +17,7 @@ layout: default
    {% unless page.header.overlay_color or page.header.overlay_image %} -

    {{ page.title }}

    +

    {{ page.title }}

    {% endunless %} {{ content }} diff --git a/_layouts/single.html b/_layouts/single.html index a36bfa8c..1e42e3f6 100644 --- a/_layouts/single.html +++ b/_layouts/single.html @@ -21,7 +21,7 @@ layout: default
    {% include sidebar.html %} -
    +
    {% if page.title %}{% endif %} {% if page.excerpt %}{% endif %} {% if page.date %}{% endif %} diff --git a/_layouts/splash.html b/_layouts/splash.html index 21165024..394209d8 100644 --- a/_layouts/splash.html +++ b/_layouts/splash.html @@ -9,7 +9,7 @@ layout: default {% endif %}
    -
    +
    {% if page.title %}{% endif %} {% if page.excerpt %}{% endif %} {% if page.date %}{% endif %}