-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b15b83d
commit d5445f6
Showing
8 changed files
with
25,858 additions
and
13,124 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default defineAppConfig({ | ||
ui: { | ||
variables: { | ||
|
||
} | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<template> | ||
<div> | ||
<NuxtPage /> | ||
<StagingBanner /> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<script setup lang="ts"> | ||
const { data: pages } = await useWPPages() | ||
const { data: posts } = await useWPPosts() | ||
</script> | ||
|
||
<template> | ||
<div> | ||
<header class="prose max-w-5xl mx-auto p-5"> | ||
Pages: | ||
<span | ||
v-for="page, index in pages" | ||
:key="index" | ||
> | ||
<NuxtLink | ||
v-if="page.slug" | ||
:to="'/' + page.slug" | ||
> | ||
{{ page.title }} | ||
</NuxtLink> | ||
<span v-if="index !== pages.length - 1"> - </span> | ||
</span> | ||
<br> | ||
Posts: | ||
<span | ||
v-for="post, index in posts" | ||
:key="index" | ||
> | ||
<NuxtLink | ||
v-if="post.slug" | ||
:to="'/' + post.slug" | ||
> | ||
{{ post.title }} | ||
</NuxtLink> | ||
<span v-if="index !== posts.length - 1"> - </span> | ||
</span> | ||
<br> | ||
</header> | ||
<hr> | ||
<main class="prose max-w-5xl mx-auto p-5"> | ||
<slot /> | ||
</main> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<script setup lang="ts"> | ||
import { useRoute } from 'nuxt/app' | ||
const route = useRoute() | ||
const post = ref<PostFragment | PageFragment | undefined>() | ||
if (route.params.slug && route.params.slug[0]) { | ||
const { data } = await useWPNodeByUri({ uri: route.params.slug[0] }) | ||
post.value = data.value | ||
} | ||
definePageMeta({ | ||
colorMode: 'light' | ||
}) | ||
</script> | ||
|
||
<template> | ||
<NuxtLayout> | ||
<BlockRenderer :blocks="post?.editorBlocks" /> | ||
</NuxtLayout> | ||
</template> |
Oops, something went wrong.