From 463fd47f01ab439caed8b0788265ea7e085a6689 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 68174807ef50..7854c961bd43 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 9db1c1fedeb5..c38e050adcf5 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 eb62a874d010..4e94867df655 100644 --- a/_layouts/archive-taxonomy.html +++ b/_layouts/archive-taxonomy.html @@ -20,7 +20,7 @@
    {% 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 84c285bc5032..83e109b58cb4 100644 --- a/_layouts/archive.html +++ b/_layouts/archive.html @@ -19,7 +19,7 @@
    {% 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 55ecf104c8c6..1270b1f8ac76 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 9e661a364b04..da8784350fd6 100644 --- a/_layouts/search.html +++ b/_layouts/search.html @@ -17,7 +17,7 @@
    {% 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 a36bfa8c6c5f..1e42e3f6b8a4 100644 --- a/_layouts/single.html +++ b/_layouts/single.html @@ -21,7 +21,7 @@
    {% 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 2116502402a3..394209d8c512 100644 --- a/_layouts/splash.html +++ b/_layouts/splash.html @@ -9,7 +9,7 @@ {% endif %}
    -
    +
    {% if page.title %}{% endif %} {% if page.excerpt %}{% endif %} {% if page.date %}{% endif %}