Skip to content

Commit

Permalink
feat: support dir in frontmatter (#3353)
Browse files Browse the repository at this point in the history
Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
  • Loading branch information
Jinjiang and brc-dd authored Dec 30, 2023
1 parent 50c9758 commit 203446d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/client/app/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export function initData(route: Route): VitePressData {
frontmatter: computed(() => route.data.frontmatter),
params: computed(() => route.data.params),
lang: computed(() => site.value.lang),
dir: computed(() => site.value.dir),
dir: computed(() => route.data.frontmatter.dir || site.value.dir || 'ltr'),
localeIndex: computed(() => site.value.localeIndex || 'root'),
title: computed(() => {
return createTitle(site.value, route.data)
Expand Down
1 change: 0 additions & 1 deletion src/client/theme-default/styles/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ body {
font-weight: 400;
color: var(--vp-c-text-1);
background-color: var(--vp-c-bg);
direction: ltr;
font-synthesis: style;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
Expand Down

0 comments on commit 203446d

Please sign in to comment.