add idea overflow blog
This commit is contained in:
@@ -31,7 +31,10 @@ export default {
|
||||
'linux': 'linux-tux',
|
||||
'bittorrent': 'webtorrent',
|
||||
'web-server': 'nginx',
|
||||
'supabase': 'supabase-icon'
|
||||
'supabase': 'supabase-icon',
|
||||
// idk these are good enough
|
||||
'organization': 'notion-icon',
|
||||
'productivity': 'obsidian-icon',
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
@@ -47,10 +47,9 @@ if (!doc.value) {
|
||||
throw createError({ statusCode: 404, statusMessage: 'Article not found', fatal: true })
|
||||
}
|
||||
|
||||
const { data: surround } = await useAsyncData(`${route.path}-surround`, () => queryContent('/blog')
|
||||
.where({ _extension: 'md' })
|
||||
.only(['title', 'description', '_path'])
|
||||
.sort({ date: 1 })
|
||||
const { data: surround } = await useAsyncData(`${route.path}-surround`, () => queryContent()
|
||||
.only(['title', 'description', '_path', 'date'])
|
||||
.sort({ date: -1 })
|
||||
.where({ _draft: false })
|
||||
.findSurround(withoutTrailingSlash(route.path))
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user