Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
casperboone committed Aug 24, 2024
1 parent a1421c7 commit a3da431
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion shared/components/Markdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ if (props.content?._type === 'markdown') {
@apply text-inherit;
}
.content h1 > a:hover,
.content h2 > a:hover,
.content h3 > a:hover,
Expand Down
5 changes: 4 additions & 1 deletion shared/pages/[...slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ const slug = params.slug.join('/').replace(/-/g, '_')
const showLanguageWarning = ref(false)
const pages = await useAsyncData(() => queryContent('pages').find())
const findPage = (slug, locale) => pages.data.value.find((page) => page._stem === `pages/${slug}.${locale}` || page._stem === `pages/${slug}/index.${locale}`)
const findPage = (slug, locale) =>
pages.data.value.find(
(page) => page._stem === `pages/${slug}.${locale}` || page._stem === `pages/${slug}/index.${locale}`
)
const findContent = () => {
const localePage = findPage(slug, locale.value)
Expand Down

0 comments on commit a3da431

Please sign in to comment.