Use correct language, locale, and use hreflang tags

This commit is contained in:
djoate 2019-11-24 21:28:50 +00:00
parent 8add822670
commit 4bc6e4397a
No known key found for this signature in database
GPG Key ID: E8366E2E207EFB0E
2 changed files with 3 additions and 2 deletions

View File

@ -10,6 +10,7 @@
<meta name="msapplication-config" content="/assets/img/favicons/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<link rel="canonical" href="{{ site.production_url }}{{ page.url | replace:'index.html',''}}">
{% hreflang %}
<!-- title -->
{% if page.title %}
@ -23,7 +24,7 @@
<meta property="og:url" content="{{ page.permalink | prepend: site.url }}" />
<meta property="og:image" content="{{ site.production_url }}/assets/img/layout/ogimage.jpg" />
<meta property="og:description" content="{% if page.description %}{{ page.description }}{% else %}{{ site.description }}{% endif %}"/>
<meta property="og:locale" content="en_GB" />
<meta property="og:locale" content="{{ page.language | default: "en_GB" }}" />
<meta property="og:site_name" content="{{ site.name }}" />
{% if page.url == "/" or page.url == "/about/" %}

View File

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="{{ page.language | replace: "_", "-" | default: "en" }}">
{% include head.html %}
<body data-spy="scroll" data-target="#navbar">
<script src="/assets/js/applytheme.js?v=1"></script>