Skip to content

Commit

Permalink
feat(client): improve default head title resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed Dec 14, 2022
1 parent 480886d commit c688270
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/client/src/resolvers.ts
Expand Up @@ -85,9 +85,7 @@ export const resolvers = reactive({
page: PageData,
siteLocale: SiteLocaleData
): PageHeadTitle =>
`${page.title ? `${page.title}` : ``}${
siteLocale.title ? ` | ${siteLocale.title}` : ``
}`,
[page.title, siteLocale.title].filter((item) => !!item).join(' | '),

/**
* Resolve page language from page data
Expand Down

0 comments on commit c688270

Please sign in to comment.