mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-18 18:33:42 +00:00
Use correct language codes in multi-language sites (#170)
This commit is contained in:
parent
278e160f4d
commit
3359ee33f5
@ -1,5 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ config.language }}">
|
||||
<html lang="{{ page.lang }}">
|
||||
<head>
|
||||
{{ partial('_partials/head/head.njk', {}, {cache: theme.cache.enable}) }}
|
||||
{%- include '_partials/head/head-unique.njk' -%}
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
{# Gallery support #}
|
||||
{{ post_gallery(post.photos) }}
|
||||
|
||||
<article itemscope itemtype="http://schema.org/Article" class="post-content" lang="{{ post.lang or config.language }}">
|
||||
<article itemscope itemtype="http://schema.org/Article" class="post-content" lang="{{ post.lang }}">
|
||||
<link itemprop="mainEntityOfPage" href="{{ post.permalink }}">
|
||||
|
||||
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
|
||||
|
||||
@ -22,7 +22,7 @@
|
||||
{##################}
|
||||
{### PAGE BLOCK ###}
|
||||
{##################}
|
||||
<div class="post-block" lang="{{ page.lang or config.language }}">
|
||||
<div class="post-block" lang="{{ page.lang }}">
|
||||
{%- include '_partials/page/page-header.njk' -%}
|
||||
{#################}
|
||||
{### PAGE BODY ###}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user