Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support dir in frontmatter #3353

Merged
merged 5 commits into from
Dec 30, 2023
Merged

Conversation

Jinjiang
Copy link
Member

Support dir for each page

Ref: vuejs/router#2085

@brc-dd brc-dd self-assigned this Dec 27, 2023
@brc-dd brc-dd merged commit 203446d into vuejs:main Dec 30, 2023
7 checks passed
@Jinjiang Jinjiang deleted the feat/frontmatter-dir branch December 30, 2023 15:57
@Jinjiang
Copy link
Member Author

Jinjiang commented Jan 3, 2024

@brc-dd seems this new commit doesn't work 👀
image

@brc-dd
Copy link
Member

brc-dd commented Jan 3, 2024

Ah weird. I checked this earlier on router docs. I'll see what's wrong. The dir should be added to html root itself and if body doesn't have style direction, it's automatically inferred as same of html.

brc-dd added a commit that referenced this pull request Jan 3, 2024
instead of accessing raw siteData.lang/dir

fixes #3353 (comment)
@brc-dd
Copy link
Member

brc-dd commented Jan 3, 2024

@Jinjiang fixed in c2b4c66

Actually, useData returns lang and dir but we were accessing it directly using site.value.dir which doesn't take the frontmatter into account.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants