Skip to content

Add lang attribute to article tag when specified in front matter #1160

@alaaosh

Description

@alaaosh

I agree and want to create new issue


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

  1. add post and put lang: ar in front matter
  2. add another post and put lang: en in front matter
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions