Replies: 1 comment 2 replies
-
Hi! Two questions, do you want to render the Report component alone in one nuxt page? I want to know how do you want to render it If you only want to perform navigation through all of the reports and index file, you can use the
inside ---
layout: article
---
# Reports
- [Report 1](/report1)
- [Report 2](/report2) then the ---
title: "Report 1"
---
Report 1 content
[Back to index](/) i dont know if you have this already, and that's why i was asking, but your "catch all routes" page should be [..slug].vue inside your <template>
<main>
<ContentDoc />
</main>
</template> this should be good for you to render index and navigate though all of the reports only |
Beta Was this translation helpful? Give feedback.
-
currently this is my nuxt content application:
components/
Report.vue
content/
index.md
report1/
report.md
index.md
report2/
report.md
index.md
where
content/index.md
contains a list of the reports:and each report folder contains an index page like this:
and report page like this:
then my
Report
component is like this:This feels really redundant, and not really dynamic, can someone tell me what I'm doing wrong and how I can heavily simplify this kind of page?
The second question I have is how can I integrate all of these things in a real nuxt application. I tried to use nuxt last time for this, but I couldn't figure out how to nicely render all the markdown stuff. So now I'm building the nuxt content repo, then building my nuxt repo, and then stitching the html files together. Any advice there?
Beta Was this translation helpful? Give feedback.
All reactions