Skip to content

Commit

Permalink
Mark HTML lang tag on websites and individual posts
Browse files Browse the repository at this point in the history
  • Loading branch information
precondition committed Feb 23, 2024
1 parent 68c7a43 commit 96e712d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
markdown: kramdown
highlighter: rouge
paginate: 100 # it will paginate after this number
language: 'en-uk'
language: 'en'

# edit baseurl to simply '/' if using as your personal page (instead of a project page)
baseurl: /
Expand Down
2 changes: 1 addition & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang={{ site.language }}>
<head>

<!-- Document Settings -->
Expand Down
4 changes: 3 additions & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
disqus: false
giscus: true
pinned: false
language: en
---

<!-- default -->
Expand All @@ -20,7 +21,8 @@

<!-- Everything inside the #post tags pulls data from the post -->
<!-- #post -->
<main id="site-main" class="site-main outer" role="main">
<main id="site-main" class="site-main outer" role="main"
lang="{{ page.language | default: site.language }}">
<div class="inner">

<article class="post-full {% if page.tags.size > 0 %}{% for tag in page.tags %} tag-{{ tag | slugify: "latin" }}{% endfor %}{% endif %} {{ page.subclass }} {% unless page.cover %}no-image{% endunless %}">
Expand Down

0 comments on commit 96e712d

Please sign in to comment.