feat: support dynamic html language attribute #200
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
支持动态设置 HTML 的 lang 属性。
BTW,这个改动只是暂时这样做,因为这个 lang 属性的定义可能是 publisher language,而不是根据用户访问的语言来确定,比如一个完全是中文内容的网站,如果设置为了 en,那么部分字符可能发生改变。不过 Halo 暂时没有设置发布语言的设置项,所以暂时这样做问题也不大。
/kind feature