diff --git a/nuxt.config.ts b/nuxt.config.ts index 0dcceab..1f733b6 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -10,6 +10,11 @@ export default defineNuxtConfig({ defaultLocale: 'es' }, ogImage: { enabled: false }, + nitro: { + prerender: { + routes: ['/sitemap.xml'] + } + }, app: { head: { charset: 'utf-8', diff --git a/pages/[...slug].vue b/pages/[...slug].vue index 2aad8b0..e7083ec 100644 --- a/pages/[...slug].vue +++ b/pages/[...slug].vue @@ -108,21 +108,21 @@ const allStatus = ["Pendiente", "Leyendo", "Completado", "Omitir"]; const { push } = useRouter(); const route = useRoute(); const nodeId = route.params.slug; -const showSidebar = ref(true); -const content = ref(null); -const statusDropDown = ref(null); const status = ref($locally.get(nodeId) ?? "Pendiente"); const isScrolled = ref(false); -onMounted(async () => { - if (!nodeId) return; - const contentResult = await queryContent((nodeId || []).join("/")).findOne(); - content.value = contentResult; - showSidebar.value = contentResult && (route.query.fromClick || false); - - useContentHead(contentResult) +const content = await queryContent((nodeId || []).join("/")).findOne(); +const statusDropDown = ref(null); +const showSidebar = ref(content && (route.query.fromClick || false)); -}); +// onMounted(async () => { +// if (!nodeId) return; +// content.value = contentResult; +// showSidebar.value = contentResult && (route.query.fromClick || false); +// +// useContentHead(contentResult) +// +// }); useSeoMeta({ twitterCard: 'summary_large_image', diff --git a/public/previews/ogpreview.png b/public/previews/ogpreview.png new file mode 100644 index 0000000..9cfb2eb Binary files /dev/null and b/public/previews/ogpreview.png differ