-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
Description
I agree and want to create new issue
- I have already viewed Hexo Docs page, especially Templates, Variables, Helpers and Troubleshooting.
- I have already viewed NexT Documentation Site.
- I have searched for current issues which does not help me.
Expected behavior
lang attribute should be added to article tag if lang is specified in front matter
Actual behavior
lang attribute is added to the body tag, this is useful but only works in post page. in an index page showing posts with multiple languages (not uncommon for bilingual bloggers) post language is not expressed in the html at all.
Steps to reproduce the behavior
- add post and put lang: ar in front matter
- add another post and put lang: en in front matter
- on homepage the language data is lost, we can't use css attribute selectors to do language specific styling for instance (important for RTL languages).
- Link to demo site with this feature: N/A
- Link(s) to source code or any usefull link(s): N/A
NexT Scheme:
- All schemes
- Muse
- Mist
- Pisces
- Gemini
Reactions are currently unavailable