From 20e244f43a0c27f6fb569b1b8cc26349b6110d46 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Mon, 28 Oct 2024 12:42:03 +0800 Subject: [PATCH] feat: support dynamic html language attribute (#200) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 支持动态设置 HTML 的 lang 属性。 image image BTW,这个改动只是暂时这样做,因为这个 lang 属性的定义可能是 publisher language,而不是根据用户访问的语言来确定,比如一个完全是中文内容的网站,如果设置为了 en,那么部分字符可能发生改变。不过 Halo 暂时没有设置发布语言的设置项,所以暂时这样做问题也不大。 /kind feature ```release-note 支持动态设置 HTML 的 lang 属性。 ``` --- templates/modules/layout.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/modules/layout.html b/templates/modules/layout.html index 2b0378c..e9f62eb 100644 --- a/templates/modules/layout.html +++ b/templates/modules/layout.html @@ -1,5 +1,5 @@ - +