Skip to content

Commit

Permalink
Test with pages
Browse files Browse the repository at this point in the history
  • Loading branch information
jphetphoumy committed May 6, 2024
1 parent a9a095d commit 1cd52af
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
5 changes: 1 addition & 4 deletions app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@
<Meta http-equiv="expires" content="0" />
<Meta http-equiv="pragma" content="no-cache" />
</Head>
<pre>
{{ data }}
</pre>
<NuxtLayout>
<NuxtPage />
<NuxtPage />
</NuxtLayout>
</div>
</template>
Expand Down
2 changes: 1 addition & 1 deletion components/Article.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<section class="articles">
<article>
<ContentDoc />
<slot></slot>
</article>
</section>
</template>
2 changes: 1 addition & 1 deletion layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const links = [
<template>
<AppHeader title=".: Hackandpwned :." :links="links" />
<main>
<Article />
<slot></slot>
</main>
<AppFooter />
</template>
4 changes: 0 additions & 4 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ export default defineNuxtConfig({
srr: true,
css: ['~/assets/css/main.css'],
modules: ["@nuxt/content"],
routeRules: {
'/': { prerender: true },
'/api/**': { prerender: true }
},
content: {
highlight: {
theme: 'catppuccin-mocha',
Expand Down
8 changes: 8 additions & 0 deletions pages/[...slug].vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<script setup lang="ts">
import Article from '~/components/Article.vue'
</script>
<template>
<Article>
<ContentDoc />
</Article>
</template>

0 comments on commit 1cd52af

Please sign in to comment.