Skip to content

Commit 54351fa

Browse files
committed
fix: add the lang in the html tag
1 parent 1c752be commit 54351fa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/layouts/BlogPost.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ import Footer from '../components/Footer.astro';
55
import Profile from '../components/Profile.astro'
66
import Comment from '../components/Comment.astro'
77
import Toc from '../components/Toc.astro'
8-
import {comment} from "../consts";
8+
import {comment, config} from "../consts";
99
import ScrollToTop from '../components/ScrollToTop.astro'
1010
import {t}from '../i18n/utils'
1111
1212
const {frontmatter = {comment: false, donate: false, toc: false, mathjax: false, mermaid: false}} = Astro.props
1313
---
1414

15-
<html lang="en">
15+
<html lang={config.lang}>
1616
<BaseHead mathjax={frontmatter.mathjax} mermaid={frontmatter.mermaid} />
1717

1818
<body class="bg-skin-secondary">

src/layouts/IndexPage.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import Profile from '../components/Profile.astro'
66
import BlogAside from '../components/BlogAside.astro'
77
import Comment from '../components/Comment.astro'
88
import Donate from '../components/Donate.astro'
9-
import {donate, comment} from "../consts";
9+
import {donate, comment, config} from "../consts";
1010
1111
const {frontmatter = {comment: false, donate: false}} = Astro.props
1212
---
1313

14-
<html lang="en">
14+
<html lang={config.lang}>
1515
<BaseHead/>
1616

1717
<body class="bg-skin-secondary relative">

0 commit comments

Comments
 (0)