[{"data":1,"prerenderedAt":1921},["ShallowReactive",2],{"navigation":3,"docs-/v1/getting-started/introduction":164,"docs-/v1/getting-started/introduction-surround":606},[4,20,45,67,92,102,115],{"title":5,"_path":6,"children":7},"Get Started","/get-started",[8,11,14,17],{"title":9,"_path":10},"Installation","/get-started/installation",{"title":12,"_path":13},"Configuration","/get-started/configuration",{"title":15,"_path":16},"Edge Channel","/get-started/edge-channel",{"title":18,"_path":19},"Migration","/get-started/from-v1",{"title":21,"_path":22,"children":23},"Usage","/usage",[24,27,30,33,36,39,42],{"title":25,"_path":26},"Content Directory","/usage/content-directory",{"title":28,"_path":29},"Markdown","/usage/markdown",{"title":31,"_path":32},"JSON, YAML, CSV","/usage/files",{"title":34,"_path":35},"Render Content","/usage/render",{"title":37,"_path":38},"Search","/usage/search",{"title":40,"_path":41},"Fetch Navigation","/usage/navigation",{"title":43,"_path":44},"TypeScript Support","/usage/typescript",{"title":46,"_path":47,"children":48},"Composables","/composables",[49,52,55,58,61,64],{"title":50,"_path":51},"queryContent()","/composables/query-content",{"title":53,"_path":54},"fetchContentNavigation()","/composables/fetch-content-navigation",{"title":56,"_path":57},"useContentHead()","/composables/use-content-head",{"title":59,"_path":60},"useContentHelpers()","/composables/use-content-helpers",{"title":62,"_path":63},"useUnwrap()","/composables/use-unwrap",{"title":65,"_path":66},"searchContent()","/composables/search-content",{"title":68,"_path":69,"children":70},"Components","/components",[71,74,77,80,83,86,89],{"title":72,"_path":73},"\u003CContentDoc>","/components/content-doc",{"title":75,"_path":76},"\u003CContentRenderer>","/components/content-renderer",{"title":78,"_path":79},"\u003CContentList>","/components/content-list",{"title":81,"_path":82},"\u003CContentNavigation>","/components/content-navigation",{"title":84,"_path":85},"\u003CContentQuery>","/components/content-query",{"title":87,"_path":88},"\u003CContentSlot>","/components/content-slot",{"title":90,"_path":91},"Prose Components","/components/prose",{"title":93,"_path":94,"children":95},"Document Driven","/document-driven",[96,99],{"title":97,"_path":98},"Introduction","/document-driven/introduction",{"title":100,"_path":101},"useContent()","/document-driven/use-content",{"title":103,"_path":104,"children":105},"Recipes","/recipes",[106,109,112],{"title":107,"_path":108},"Hooks","/recipes/hooks",{"title":110,"_path":111},"Transformers","/recipes/transformers",{"title":113,"_path":114},"Sitemap","/recipes/sitemap",{"title":116,"_path":117,"children":118},"V1","/v1",[119,141,154],{"title":120,"_path":121,"children":122},"Getting Started","/v1/getting-started",[123,125,127,130,133,136,138],{"title":97,"_path":124},"/v1/getting-started/introduction",{"title":9,"_path":126},"/v1/getting-started/installation",{"title":128,"_path":129},"Writing content","/v1/getting-started/writing",{"title":131,"_path":132},"Fetching content","/v1/getting-started/fetching",{"title":134,"_path":135},"Displaying content","/v1/getting-started/displaying",{"title":12,"_path":137},"/v1/getting-started/configuration",{"title":139,"_path":140},"Advanced","/v1/getting-started/advanced",{"title":142,"_path":143,"children":144},"Examples","/v1/examples",[145,148,151],{"title":146,"_path":147},"Basic Usage","/v1/examples/basic",{"title":149,"_path":150},"TailwindCSS","/v1/examples/tailwindcss-typography",{"title":152,"_path":153},"Docs Theme","/v1/examples/docs-theme",{"title":155,"_path":156,"children":157},"Community","/v1/community",[158,161],{"title":159,"_path":160},"Snippets","/v1/community/snippets",{"title":162,"_path":163},"Integrations","/v1/community/integrations",{"_path":124,"_dir":165,"_draft":166,"_partial":166,"_locale":167,"title":97,"description":168,"body":169,"_type":600,"_id":601,"_source":602,"_file":603,"_stem":604,"_extension":605},"getting-started",false,"","Empower your NuxtJS application with the @nuxt/content module: write in a content/ directory and fetch your Markdown, JSON, YAML and CSV files through a MongoDB-like API, acting as a Git-based Headless CMS.",{"type":170,"children":171,"toc":593},"root",[172,181,243,249,271,297,310,329,335,347,353,382,418,456,479,508,539,570],{"type":173,"tag":174,"props":175,"children":177},"element","h2",{"id":176},"features",[178],{"type":179,"value":180},"text","Features",{"type":173,"tag":182,"props":183,"children":184},"ul",{},[185,191,196,201,213,218,223,228,233,238],{"type":173,"tag":186,"props":187,"children":188},"li",{},[189],{"type":179,"value":190},"Blazing fast hot reload in development",{"type":173,"tag":186,"props":192,"children":193},{},[194],{"type":179,"value":195},"Vue components in Markdown",{"type":173,"tag":186,"props":197,"children":198},{},[199],{"type":179,"value":200},"Full-text search",{"type":173,"tag":186,"props":202,"children":203},{},[204,206],{"type":179,"value":205},"Support static site generation with ",{"type":173,"tag":207,"props":208,"children":210},"code",{"className":209},[],[211],{"type":179,"value":212},"nuxt generate",{"type":173,"tag":186,"props":214,"children":215},{},[216],{"type":179,"value":217},"Powerful QueryBuilder API (MongoDB like)",{"type":173,"tag":186,"props":219,"children":220},{},[221],{"type":179,"value":222},"Syntax highlighting to code blocks in markdown files using PrismJS.",{"type":173,"tag":186,"props":224,"children":225},{},[226],{"type":179,"value":227},"Table of contents generation",{"type":173,"tag":186,"props":229,"children":230},{},[231],{"type":179,"value":232},"Handles Markdown, CSV, YAML, JSON(5), XML",{"type":173,"tag":186,"props":234,"children":235},{},[236],{"type":179,"value":237},"Extend with custom parsers",{"type":173,"tag":186,"props":239,"children":240},{},[241],{"type":179,"value":242},"Extend with hooks",{"type":173,"tag":174,"props":244,"children":246},{"id":245},"videos",[247],{"type":179,"value":248},"Videos",{"type":173,"tag":250,"props":251,"children":252},"p",{},[253,255,261,263,269],{"type":179,"value":254},"Demonstration of using ",{"type":173,"tag":207,"props":256,"children":258},{"className":257},[],[259],{"type":179,"value":260},"$content",{"type":179,"value":262}," and ",{"type":173,"tag":207,"props":264,"children":266},{"className":265},[],[267],{"type":179,"value":268},"\u003Cnuxt-content>",{"type":179,"value":270}," to display Markdown pages:",{"type":173,"tag":272,"props":273,"children":276},"video",{"poster":274,"loop":275,"playsInline":275,"controls":275},"https://res.cloudinary.com/nuxt/video/upload/v1588091670/nuxt-content_wxnjje.jpg",true,[277,279,285,286,291,292],{"type":179,"value":278},"\n  ",{"type":173,"tag":280,"props":281,"children":284},"source",{"src":282,"type":283},"https://res.cloudinary.com/nuxt/video/upload/q_auto/v1588091670/nuxt-content_wxnjje.webm","video/webm",[],{"type":179,"value":278},{"type":173,"tag":280,"props":287,"children":290},{"src":288,"type":289},"https://res.cloudinary.com/nuxt/video/upload/q_auto/v1588091670/nuxt-content_wxnjje.mp4","video/mp4",[],{"type":179,"value":278},{"type":173,"tag":280,"props":293,"children":296},{"src":294,"type":295},"https://res.cloudinary.com/nuxt/video/upload/q_auto/v1588091670/nuxt-content_wxnjje.ogv","video/ogg",[],{"type":173,"tag":250,"props":298,"children":299},{},[300,302,308],{"type":179,"value":301},"Using ",{"type":173,"tag":207,"props":303,"children":305},{"className":304},[],[306],{"type":179,"value":307},"$content()",{"type":179,"value":309}," on a directory to list, filter and search content:",{"type":173,"tag":272,"props":311,"children":313},{"poster":312,"loop":275,"playsInline":275,"controls":275},"https://res.cloudinary.com/nuxt/video/upload/v1588095794/nuxt-content-movies_c0cq9p.jpg",[314,315,319,320,324,325],{"type":179,"value":278},{"type":173,"tag":280,"props":316,"children":318},{"src":317,"type":283},"https://res.cloudinary.com/nuxt/video/upload/q_auto/v1588095794/nuxt-content-movies_c0cq9p.webm",[],{"type":179,"value":278},{"type":173,"tag":280,"props":321,"children":323},{"src":322,"type":289},"https://res.cloudinary.com/nuxt/video/upload/q_auto/v1588095794/nuxt-content-movies_c0cq9p.mp4",[],{"type":179,"value":278},{"type":173,"tag":280,"props":326,"children":328},{"src":327,"type":295},"https://res.cloudinary.com/nuxt/video/upload/q_auto/v1588095794/nuxt-content-movies_c0cq9p.ogv",[],{"type":173,"tag":174,"props":330,"children":332},{"id":331},"tutorial",[333],{"type":179,"value":334},"Tutorial",{"type":173,"tag":250,"props":336,"children":337},{},[338],{"type":173,"tag":339,"props":340,"children":344},"a",{"href":341,"rel":342},"https://v2.nuxt.com/tutorials/creating-blog-with-nuxt-content/",[343],"nofollow",[345],{"type":179,"value":346},"Create a blog with Nuxt Content",{"type":173,"tag":174,"props":348,"children":350},{"id":349},"testimonials",[351],{"type":179,"value":352},"Testimonials",{"type":173,"tag":354,"props":355,"children":358},"blockquote",{"className":356},[357],"twitter-tweet",[359,374,376],{"type":173,"tag":250,"props":360,"children":363},{"lang":361,"dir":362},"en","ltr",[364,366,372],{"type":179,"value":365},"Really enjoy working with the ",{"type":173,"tag":339,"props":367,"children":369},{"href":368},"https://twitter.com/nuxt_js?ref_src=twsrc%5Etfw",[370],{"type":179,"value":371},"@nuxt_js",{"type":179,"value":373}," content module more and more. Especially from a developer perspective. The api is easy to learn and really powerful. Give it a try if you haven't already.",{"type":179,"value":375},"— Rasmus Langvad (@rlangvad) ",{"type":173,"tag":339,"props":377,"children":379},{"href":378},"https://twitter.com/rlangvad/status/1352940444200669186?ref_src=twsrc%5Etfw",[380],{"type":179,"value":381},"January 23, 2021",{"type":173,"tag":354,"props":383,"children":385},{"className":384},[357],[386,410,412],{"type":173,"tag":250,"props":387,"children":388},{"lang":361,"dir":362},[389,391,397,399,403,405],{"type":179,"value":390},"Adding an FAQ to ",{"type":173,"tag":339,"props":392,"children":394},{"href":393},"https://twitter.com/turnaudio?ref_src=twsrc%5Etfw",[395],{"type":179,"value":396},"@TurnAudio",{"type":179,"value":398}," using ",{"type":173,"tag":339,"props":400,"children":401},{"href":368},[402],{"type":179,"value":371},{"type":179,"value":404}," nuxt/content. Really great module for organizing a little bit of content within your static website ",{"type":173,"tag":339,"props":406,"children":408},{"href":407},"https://t.co/o2uA9Lvmuu",[409],{"type":179,"value":407},{"type":179,"value":411},"— Lee Martin (@leemartin) ",{"type":173,"tag":339,"props":413,"children":415},{"href":414},"https://twitter.com/leemartin/status/1290374428107341830?ref_src=twsrc%5Etfw",[416],{"type":179,"value":417},"August 3, 2020",{"type":173,"tag":354,"props":419,"children":421},{"className":420},[357],[422,448,450],{"type":173,"tag":250,"props":423,"children":424},{"lang":361,"dir":362},[425,427,431,433,437,440,442],{"type":179,"value":426},"Wanted to try out ",{"type":173,"tag":339,"props":428,"children":429},{"href":368},[430],{"type":179,"value":371},{"type":179,"value":432}," new content theme doc, was a blast!",{"type":173,"tag":434,"props":435,"children":436},"br",{},[],{"type":173,"tag":434,"props":438,"children":439},{},[],{"type":179,"value":441},"Managed to hack its interals to extend its Tailwind config with mine hihihi... ",{"type":173,"tag":339,"props":443,"children":445},{"href":444},"https://t.co/fuXXOBKXYE",[446],{"type":179,"value":447},"pic.twitter.com/fuXXOBKXYE",{"type":179,"value":449},"— lihbr (@li_hbr) ",{"type":173,"tag":339,"props":451,"children":453},{"href":452},"https://twitter.com/li_hbr/status/1289536277897834497?ref_src=twsrc%5Etfw",[454],{"type":179,"value":455},"August 1, 2020",{"type":173,"tag":354,"props":457,"children":459},{"className":458},[357],[460,471,473],{"type":173,"tag":250,"props":461,"children":462},{"lang":361,"dir":362},[463,465,469],{"type":179,"value":464},"On an upper ",{"type":173,"tag":339,"props":466,"children":467},{"href":368},[468],{"type":179,"value":371},{"type":179,"value":470}," is the most exciting thing in web for me right now, everything they put out is golden. The content module is phenomenal.",{"type":179,"value":472},"— Liam Hall - Three Bears (@wearethreebears) ",{"type":173,"tag":339,"props":474,"children":476},{"href":475},"https://twitter.com/wearethreebears/status/1289345099214725120?ref_src=twsrc%5Etfw",[477],{"type":179,"value":478},"July 31, 2020",{"type":173,"tag":354,"props":480,"children":482},{"className":481},[357],[483,501,503],{"type":173,"tag":250,"props":484,"children":485},{"lang":361,"dir":362},[486,488,494,495,499],{"type":179,"value":487},"I've been working on a new portfolio/blog today with ",{"type":173,"tag":339,"props":489,"children":491},{"href":490},"https://twitter.com/tailwindcss?ref_src=twsrc%5Etfw",[492],{"type":179,"value":493},"@tailwindcss",{"type":179,"value":262},{"type":173,"tag":339,"props":496,"children":497},{"href":368},[498],{"type":179,"value":371},{"type":179,"value":500},". I'm blown away by Nuxt Content.",{"type":179,"value":502},"— Cameron Baney (@cameronbaney) ",{"type":173,"tag":339,"props":504,"children":506},{"href":505},"https://twitter.com/cameronbaney/status/1289671455559413761?ref_src=twsrc%5Etfw",[507],{"type":179,"value":455},{"type":173,"tag":354,"props":509,"children":511},{"className":510},[357],[512,531,533],{"type":173,"tag":250,"props":513,"children":514},{"lang":361,"dir":362},[515,517,521,523,529],{"type":179,"value":516},"Docs powered by the new ",{"type":173,"tag":339,"props":518,"children":519},{"href":368},[520],{"type":179,"value":371},{"type":179,"value":522}," content plugin and stored in ",{"type":173,"tag":339,"props":524,"children":526},{"href":525},"https://twitter.com/Netlify?ref_src=twsrc%5Etfw",[527],{"type":179,"value":528},"@Netlify",{"type":179,"value":530}," what a time to be a developer",{"type":179,"value":532},"— Alfonso Bribiesca (@alfonsobries) ",{"type":173,"tag":339,"props":534,"children":536},{"href":535},"https://twitter.com/alfonsobries/status/1288653236833062913?ref_src=twsrc%5Etfw",[537],{"type":179,"value":538},"July 30, 2020",{"type":173,"tag":354,"props":540,"children":542},{"className":541},[357],[543,562,564],{"type":173,"tag":250,"props":544,"children":545},{"lang":361,"dir":362},[546,548,552,554,557,560],{"type":179,"value":547},"The new vee-validate v4 documentation is using ",{"type":173,"tag":339,"props":549,"children":550},{"href":368},[551],{"type":179,"value":371},{"type":179,"value":553}," content module and so far it is too damn good 🔥",{"type":173,"tag":434,"props":555,"children":556},{},[],{"type":173,"tag":434,"props":558,"children":559},{},[],{"type":179,"value":561},"I like being able to create my own layouts and \"on this page\" and \"menu\" components, in other words, to be in full control 🎮",{"type":179,"value":563},"— Abdelrahman Awad (@logaretm) ",{"type":173,"tag":339,"props":565,"children":567},{"href":566},"https://twitter.com/logaretm/status/1287526576847048705?ref_src=twsrc%5Etfw",[568],{"type":179,"value":569},"July 26, 2020",{"type":173,"tag":354,"props":571,"children":573},{"className":572},[357],[574,585,587],{"type":173,"tag":250,"props":575,"children":576},{"lang":361,"dir":362},[577,579,583],{"type":179,"value":578},"Decided to build a blog with ",{"type":173,"tag":339,"props":580,"children":581},{"href":368},[582],{"type":179,"value":371},{"type":179,"value":584}," content module. I mean, it's rapid and lightning quick to setup. Super nice experience thus far 👌",{"type":179,"value":586},"— 𝖊𝖗𝖉 (@erd_xyz) ",{"type":173,"tag":339,"props":588,"children":590},{"href":589},"https://twitter.com/erd_xyz/status/1286395125447483394?ref_src=twsrc%5Etfw",[591],{"type":179,"value":592},"July 23, 2020",{"title":167,"searchDepth":594,"depth":594,"links":595},2,[596,597,598,599],{"id":176,"depth":594,"text":180},{"id":245,"depth":594,"text":248},{"id":331,"depth":594,"text":334},{"id":349,"depth":594,"text":352},"markdown","content:7.v1:1.getting-started:1.introduction.md","content","7.v1/1.getting-started/1.introduction.md","7.v1/1.getting-started/1.introduction","md",[607,1518],{"_path":114,"_dir":608,"_draft":166,"_partial":166,"_locale":167,"title":113,"description":609,"body":610,"_type":600,"_id":1515,"_source":602,"_file":1516,"_stem":1517,"_extension":605},"recipes","A sitemap file is useful for helping Google to better index your website, ensuring that the content you write can be visible in search results.",{"type":170,"children":611,"toc":1511},[612,626,631,637,650,734,740,762,791,796,1327,1340,1352,1372,1505],{"type":173,"tag":250,"props":613,"children":614},{},[615,617,624],{"type":179,"value":616},"Need a complete Sitemap solution? Check out ",{"type":173,"tag":339,"props":618,"children":621},{"href":619,"rel":620},"https://nuxtseo.com/sitemap/integrations/content",[343],[622],{"type":179,"value":623},"Nuxt Simple Sitemap",{"type":179,"value":625},", it integrates with Nuxt Content's document-driven mode and frontmatter.",{"type":173,"tag":250,"props":627,"children":628},{},[629],{"type":179,"value":630},"Otherwise, feel free to implement your own with the below guide.",{"type":173,"tag":174,"props":632,"children":634},{"id":633},"add-dependencies",[635],{"type":179,"value":636},"Add dependencies",{"type":173,"tag":250,"props":638,"children":639},{},[640,642,648],{"type":179,"value":641},"This can be created by utilising the ",{"type":173,"tag":207,"props":643,"children":645},{"className":644},[],[646],{"type":179,"value":647},"sitemap",{"type":179,"value":649}," library, which can be installed as follows:",{"type":173,"tag":651,"props":652,"children":653},"code-group",{},[654,687,710],{"type":173,"tag":655,"props":656,"children":661},"pre",{"className":657,"code":658,"filename":659,"language":660,"meta":167,"style":167},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","pnpm add sitemap\n","pnpm","bash",[662],{"type":173,"tag":207,"props":663,"children":664},{"__ignoreMap":167},[665],{"type":173,"tag":666,"props":667,"children":670},"span",{"class":668,"line":669},"line",1,[671,676,682],{"type":173,"tag":666,"props":672,"children":674},{"style":673},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[675],{"type":179,"value":659},{"type":173,"tag":666,"props":677,"children":679},{"style":678},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[680],{"type":179,"value":681}," add",{"type":173,"tag":666,"props":683,"children":684},{"style":678},[685],{"type":179,"value":686}," sitemap\n",{"type":173,"tag":655,"props":688,"children":691},{"className":657,"code":689,"filename":690,"language":660,"meta":167,"style":167},"yarn add sitemap\n","yarn",[692],{"type":173,"tag":207,"props":693,"children":694},{"__ignoreMap":167},[695],{"type":173,"tag":666,"props":696,"children":697},{"class":668,"line":669},[698,702,706],{"type":173,"tag":666,"props":699,"children":700},{"style":673},[701],{"type":179,"value":690},{"type":173,"tag":666,"props":703,"children":704},{"style":678},[705],{"type":179,"value":681},{"type":173,"tag":666,"props":707,"children":708},{"style":678},[709],{"type":179,"value":686},{"type":173,"tag":655,"props":711,"children":714},{"className":657,"code":712,"filename":713,"language":660,"meta":167,"style":167},"npm install sitemap\n","npm",[715],{"type":173,"tag":207,"props":716,"children":717},{"__ignoreMap":167},[718],{"type":173,"tag":666,"props":719,"children":720},{"class":668,"line":669},[721,725,730],{"type":173,"tag":666,"props":722,"children":723},{"style":673},[724],{"type":179,"value":713},{"type":173,"tag":666,"props":726,"children":727},{"style":678},[728],{"type":179,"value":729}," install",{"type":173,"tag":666,"props":731,"children":732},{"style":678},[733],{"type":179,"value":686},{"type":173,"tag":174,"props":735,"children":737},{"id":736},"server-route",[738],{"type":179,"value":739},"Server Route",{"type":173,"tag":250,"props":741,"children":742},{},[743,745,752,754,760],{"type":179,"value":744},"We will be utilising the ",{"type":173,"tag":339,"props":746,"children":749},{"href":747,"rel":748},"https://nuxt.com/docs/guide/directory-structure/server#server-routes",[343],[750],{"type":179,"value":751},"server routes",{"type":179,"value":753}," available within Nuxt, and to do so you'll need to create the ",{"type":173,"tag":207,"props":755,"children":757},{"className":756},[],[758],{"type":179,"value":759},"server/",{"type":179,"value":761}," directory within your website's root directly.",{"type":173,"tag":250,"props":763,"children":764},{},[765,767,773,775,781,783,789],{"type":179,"value":766},"Once this is done, create a ",{"type":173,"tag":207,"props":768,"children":770},{"className":769},[],[771],{"type":179,"value":772},"routes/",{"type":179,"value":774}," directory inside this, and add a ",{"type":173,"tag":207,"props":776,"children":778},{"className":777},[],[779],{"type":179,"value":780},"sitemap.xml.ts",{"type":179,"value":782}," file, this will translate to ",{"type":173,"tag":207,"props":784,"children":786},{"className":785},[],[787],{"type":179,"value":788},"/sitemap.xml",{"type":179,"value":790},".",{"type":173,"tag":250,"props":792,"children":793},{},[794],{"type":179,"value":795},"You'll need to add the following:",{"type":173,"tag":655,"props":797,"children":802},{"className":798,"code":799,"filename":800,"language":801,"meta":167,"style":167},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { serverQueryContent } from '#content/server'\nimport { SitemapStream, streamToPromise } from 'sitemap'\n\nexport default defineEventHandler(async (event) => {\n  // Fetch all documents\n  const docs = await serverQueryContent(event).find()\n  const sitemap = new SitemapStream({\n    hostname: 'https://example.com'\n  })\n\n  for (const doc of docs) {\n    sitemap.write({\n      url: doc._path,\n      changefreq: 'monthly'\n    })\n  }\n  sitemap.end()\n\n  return streamToPromise(sitemap)\n})\n","server/routes/sitemap.xml.ts","ts",[803],{"type":173,"tag":207,"props":804,"children":805},{"__ignoreMap":167},[806,852,898,907,964,974,1029,1064,1091,1105,1113,1154,1180,1211,1237,1250,1259,1281,1289,1314],{"type":173,"tag":666,"props":807,"children":808},{"class":668,"line":669},[809,815,821,827,832,837,842,847],{"type":173,"tag":666,"props":810,"children":812},{"style":811},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[813],{"type":179,"value":814},"import",{"type":173,"tag":666,"props":816,"children":818},{"style":817},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[819],{"type":179,"value":820}," {",{"type":173,"tag":666,"props":822,"children":824},{"style":823},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[825],{"type":179,"value":826}," serverQueryContent",{"type":173,"tag":666,"props":828,"children":829},{"style":817},[830],{"type":179,"value":831}," }",{"type":173,"tag":666,"props":833,"children":834},{"style":811},[835],{"type":179,"value":836}," from",{"type":173,"tag":666,"props":838,"children":839},{"style":817},[840],{"type":179,"value":841}," '",{"type":173,"tag":666,"props":843,"children":844},{"style":678},[845],{"type":179,"value":846},"#content/server",{"type":173,"tag":666,"props":848,"children":849},{"style":817},[850],{"type":179,"value":851},"'\n",{"type":173,"tag":666,"props":853,"children":854},{"class":668,"line":594},[855,859,863,868,873,878,882,886,890,894],{"type":173,"tag":666,"props":856,"children":857},{"style":811},[858],{"type":179,"value":814},{"type":173,"tag":666,"props":860,"children":861},{"style":817},[862],{"type":179,"value":820},{"type":173,"tag":666,"props":864,"children":865},{"style":823},[866],{"type":179,"value":867}," SitemapStream",{"type":173,"tag":666,"props":869,"children":870},{"style":817},[871],{"type":179,"value":872},",",{"type":173,"tag":666,"props":874,"children":875},{"style":823},[876],{"type":179,"value":877}," streamToPromise",{"type":173,"tag":666,"props":879,"children":880},{"style":817},[881],{"type":179,"value":831},{"type":173,"tag":666,"props":883,"children":884},{"style":811},[885],{"type":179,"value":836},{"type":173,"tag":666,"props":887,"children":888},{"style":817},[889],{"type":179,"value":841},{"type":173,"tag":666,"props":891,"children":892},{"style":678},[893],{"type":179,"value":647},{"type":173,"tag":666,"props":895,"children":896},{"style":817},[897],{"type":179,"value":851},{"type":173,"tag":666,"props":899,"children":901},{"class":668,"line":900},3,[902],{"type":173,"tag":666,"props":903,"children":904},{"emptyLinePlaceholder":275},[905],{"type":179,"value":906},"\n",{"type":173,"tag":666,"props":908,"children":910},{"class":668,"line":909},4,[911,916,921,927,932,938,943,949,954,959],{"type":173,"tag":666,"props":912,"children":913},{"style":811},[914],{"type":179,"value":915},"export",{"type":173,"tag":666,"props":917,"children":918},{"style":811},[919],{"type":179,"value":920}," default",{"type":173,"tag":666,"props":922,"children":924},{"style":923},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[925],{"type":179,"value":926}," defineEventHandler",{"type":173,"tag":666,"props":928,"children":929},{"style":823},[930],{"type":179,"value":931},"(",{"type":173,"tag":666,"props":933,"children":935},{"style":934},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[936],{"type":179,"value":937},"async",{"type":173,"tag":666,"props":939,"children":940},{"style":817},[941],{"type":179,"value":942}," (",{"type":173,"tag":666,"props":944,"children":946},{"style":945},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[947],{"type":179,"value":948},"event",{"type":173,"tag":666,"props":950,"children":951},{"style":817},[952],{"type":179,"value":953},")",{"type":173,"tag":666,"props":955,"children":956},{"style":934},[957],{"type":179,"value":958}," =>",{"type":173,"tag":666,"props":960,"children":961},{"style":817},[962],{"type":179,"value":963}," {\n",{"type":173,"tag":666,"props":965,"children":967},{"class":668,"line":966},5,[968],{"type":173,"tag":666,"props":969,"children":971},{"style":970},"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[972],{"type":179,"value":973},"  // Fetch all documents\n",{"type":173,"tag":666,"props":975,"children":977},{"class":668,"line":976},6,[978,983,988,993,998,1002,1007,1011,1015,1019,1024],{"type":173,"tag":666,"props":979,"children":980},{"style":934},[981],{"type":179,"value":982},"  const",{"type":173,"tag":666,"props":984,"children":985},{"style":823},[986],{"type":179,"value":987}," docs",{"type":173,"tag":666,"props":989,"children":990},{"style":817},[991],{"type":179,"value":992}," =",{"type":173,"tag":666,"props":994,"children":995},{"style":811},[996],{"type":179,"value":997}," await",{"type":173,"tag":666,"props":999,"children":1000},{"style":923},[1001],{"type":179,"value":826},{"type":173,"tag":666,"props":1003,"children":1005},{"style":1004},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[1006],{"type":179,"value":931},{"type":173,"tag":666,"props":1008,"children":1009},{"style":823},[1010],{"type":179,"value":948},{"type":173,"tag":666,"props":1012,"children":1013},{"style":1004},[1014],{"type":179,"value":953},{"type":173,"tag":666,"props":1016,"children":1017},{"style":817},[1018],{"type":179,"value":790},{"type":173,"tag":666,"props":1020,"children":1021},{"style":923},[1022],{"type":179,"value":1023},"find",{"type":173,"tag":666,"props":1025,"children":1026},{"style":1004},[1027],{"type":179,"value":1028},"()\n",{"type":173,"tag":666,"props":1030,"children":1032},{"class":668,"line":1031},7,[1033,1037,1042,1046,1051,1055,1059],{"type":173,"tag":666,"props":1034,"children":1035},{"style":934},[1036],{"type":179,"value":982},{"type":173,"tag":666,"props":1038,"children":1039},{"style":823},[1040],{"type":179,"value":1041}," sitemap",{"type":173,"tag":666,"props":1043,"children":1044},{"style":817},[1045],{"type":179,"value":992},{"type":173,"tag":666,"props":1047,"children":1048},{"style":817},[1049],{"type":179,"value":1050}," new",{"type":173,"tag":666,"props":1052,"children":1053},{"style":923},[1054],{"type":179,"value":867},{"type":173,"tag":666,"props":1056,"children":1057},{"style":1004},[1058],{"type":179,"value":931},{"type":173,"tag":666,"props":1060,"children":1061},{"style":817},[1062],{"type":179,"value":1063},"{\n",{"type":173,"tag":666,"props":1065,"children":1067},{"class":668,"line":1066},8,[1068,1073,1078,1082,1087],{"type":173,"tag":666,"props":1069,"children":1070},{"style":1004},[1071],{"type":179,"value":1072},"    hostname",{"type":173,"tag":666,"props":1074,"children":1075},{"style":817},[1076],{"type":179,"value":1077},":",{"type":173,"tag":666,"props":1079,"children":1080},{"style":817},[1081],{"type":179,"value":841},{"type":173,"tag":666,"props":1083,"children":1084},{"style":678},[1085],{"type":179,"value":1086},"https://example.com",{"type":173,"tag":666,"props":1088,"children":1089},{"style":817},[1090],{"type":179,"value":851},{"type":173,"tag":666,"props":1092,"children":1094},{"class":668,"line":1093},9,[1095,1100],{"type":173,"tag":666,"props":1096,"children":1097},{"style":817},[1098],{"type":179,"value":1099},"  }",{"type":173,"tag":666,"props":1101,"children":1102},{"style":1004},[1103],{"type":179,"value":1104},")\n",{"type":173,"tag":666,"props":1106,"children":1108},{"class":668,"line":1107},10,[1109],{"type":173,"tag":666,"props":1110,"children":1111},{"emptyLinePlaceholder":275},[1112],{"type":179,"value":906},{"type":173,"tag":666,"props":1114,"children":1116},{"class":668,"line":1115},11,[1117,1122,1126,1131,1136,1141,1145,1150],{"type":173,"tag":666,"props":1118,"children":1119},{"style":811},[1120],{"type":179,"value":1121},"  for",{"type":173,"tag":666,"props":1123,"children":1124},{"style":1004},[1125],{"type":179,"value":942},{"type":173,"tag":666,"props":1127,"children":1128},{"style":934},[1129],{"type":179,"value":1130},"const",{"type":173,"tag":666,"props":1132,"children":1133},{"style":823},[1134],{"type":179,"value":1135}," doc",{"type":173,"tag":666,"props":1137,"children":1138},{"style":817},[1139],{"type":179,"value":1140}," of",{"type":173,"tag":666,"props":1142,"children":1143},{"style":823},[1144],{"type":179,"value":987},{"type":173,"tag":666,"props":1146,"children":1147},{"style":1004},[1148],{"type":179,"value":1149},") ",{"type":173,"tag":666,"props":1151,"children":1152},{"style":817},[1153],{"type":179,"value":1063},{"type":173,"tag":666,"props":1155,"children":1157},{"class":668,"line":1156},12,[1158,1163,1167,1172,1176],{"type":173,"tag":666,"props":1159,"children":1160},{"style":823},[1161],{"type":179,"value":1162},"    sitemap",{"type":173,"tag":666,"props":1164,"children":1165},{"style":817},[1166],{"type":179,"value":790},{"type":173,"tag":666,"props":1168,"children":1169},{"style":923},[1170],{"type":179,"value":1171},"write",{"type":173,"tag":666,"props":1173,"children":1174},{"style":1004},[1175],{"type":179,"value":931},{"type":173,"tag":666,"props":1177,"children":1178},{"style":817},[1179],{"type":179,"value":1063},{"type":173,"tag":666,"props":1181,"children":1183},{"class":668,"line":1182},13,[1184,1189,1193,1197,1201,1206],{"type":173,"tag":666,"props":1185,"children":1186},{"style":1004},[1187],{"type":179,"value":1188},"      url",{"type":173,"tag":666,"props":1190,"children":1191},{"style":817},[1192],{"type":179,"value":1077},{"type":173,"tag":666,"props":1194,"children":1195},{"style":823},[1196],{"type":179,"value":1135},{"type":173,"tag":666,"props":1198,"children":1199},{"style":817},[1200],{"type":179,"value":790},{"type":173,"tag":666,"props":1202,"children":1203},{"style":823},[1204],{"type":179,"value":1205},"_path",{"type":173,"tag":666,"props":1207,"children":1208},{"style":817},[1209],{"type":179,"value":1210},",\n",{"type":173,"tag":666,"props":1212,"children":1214},{"class":668,"line":1213},14,[1215,1220,1224,1228,1233],{"type":173,"tag":666,"props":1216,"children":1217},{"style":1004},[1218],{"type":179,"value":1219},"      changefreq",{"type":173,"tag":666,"props":1221,"children":1222},{"style":817},[1223],{"type":179,"value":1077},{"type":173,"tag":666,"props":1225,"children":1226},{"style":817},[1227],{"type":179,"value":841},{"type":173,"tag":666,"props":1229,"children":1230},{"style":678},[1231],{"type":179,"value":1232},"monthly",{"type":173,"tag":666,"props":1234,"children":1235},{"style":817},[1236],{"type":179,"value":851},{"type":173,"tag":666,"props":1238,"children":1240},{"class":668,"line":1239},15,[1241,1246],{"type":173,"tag":666,"props":1242,"children":1243},{"style":817},[1244],{"type":179,"value":1245},"    }",{"type":173,"tag":666,"props":1247,"children":1248},{"style":1004},[1249],{"type":179,"value":1104},{"type":173,"tag":666,"props":1251,"children":1253},{"class":668,"line":1252},16,[1254],{"type":173,"tag":666,"props":1255,"children":1256},{"style":817},[1257],{"type":179,"value":1258},"  }\n",{"type":173,"tag":666,"props":1260,"children":1262},{"class":668,"line":1261},17,[1263,1268,1272,1277],{"type":173,"tag":666,"props":1264,"children":1265},{"style":823},[1266],{"type":179,"value":1267},"  sitemap",{"type":173,"tag":666,"props":1269,"children":1270},{"style":817},[1271],{"type":179,"value":790},{"type":173,"tag":666,"props":1273,"children":1274},{"style":923},[1275],{"type":179,"value":1276},"end",{"type":173,"tag":666,"props":1278,"children":1279},{"style":1004},[1280],{"type":179,"value":1028},{"type":173,"tag":666,"props":1282,"children":1284},{"class":668,"line":1283},18,[1285],{"type":173,"tag":666,"props":1286,"children":1287},{"emptyLinePlaceholder":275},[1288],{"type":179,"value":906},{"type":173,"tag":666,"props":1290,"children":1292},{"class":668,"line":1291},19,[1293,1298,1302,1306,1310],{"type":173,"tag":666,"props":1294,"children":1295},{"style":811},[1296],{"type":179,"value":1297},"  return",{"type":173,"tag":666,"props":1299,"children":1300},{"style":923},[1301],{"type":179,"value":877},{"type":173,"tag":666,"props":1303,"children":1304},{"style":1004},[1305],{"type":179,"value":931},{"type":173,"tag":666,"props":1307,"children":1308},{"style":823},[1309],{"type":179,"value":647},{"type":173,"tag":666,"props":1311,"children":1312},{"style":1004},[1313],{"type":179,"value":1104},{"type":173,"tag":666,"props":1315,"children":1317},{"class":668,"line":1316},20,[1318,1323],{"type":173,"tag":666,"props":1319,"children":1320},{"style":817},[1321],{"type":179,"value":1322},"}",{"type":173,"tag":666,"props":1324,"children":1325},{"style":823},[1326],{"type":179,"value":1104},{"type":173,"tag":250,"props":1328,"children":1329},{},[1330,1332,1338],{"type":179,"value":1331},"Now, once users go to ",{"type":173,"tag":207,"props":1333,"children":1335},{"className":1334},[],[1336],{"type":179,"value":1337},"https://example.com/sitemap.xml",{"type":179,"value":1339},", you'll find the generated XML file with all your pages.",{"type":173,"tag":250,"props":1341,"children":1342},{},[1343,1345,1350],{"type":179,"value":1344},"When using ",{"type":173,"tag":207,"props":1346,"children":1348},{"className":1347},[],[1349],{"type":179,"value":212},{"type":179,"value":1351},", you may want to pre-render the sitemap since the server route won't be able to run on a static hosting.",{"type":173,"tag":250,"props":1353,"children":1354},{},[1355,1357,1363,1365,1371],{"type":179,"value":1356},"You can do this using the ",{"type":173,"tag":207,"props":1358,"children":1360},{"className":1359},[],[1361],{"type":179,"value":1362},"nitro.prerender",{"type":179,"value":1364}," option in your ",{"type":173,"tag":207,"props":1366,"children":1368},{"className":1367},[],[1369],{"type":179,"value":1370},"nuxt.config",{"type":179,"value":1077},{"type":173,"tag":655,"props":1373,"children":1376},{"className":798,"code":1374,"filename":1375,"language":801,"meta":167,"style":167},"export default defineNuxtConfig({\n  // ...\n  nitro: {\n    prerender: {\n      routes: ['/sitemap.xml']\n    }\n  }\n})\n","nuxt.config.ts",[1377],{"type":173,"tag":207,"props":1378,"children":1379},{"__ignoreMap":167},[1380,1404,1412,1428,1444,1479,1487,1494],{"type":173,"tag":666,"props":1381,"children":1382},{"class":668,"line":669},[1383,1387,1391,1396,1400],{"type":173,"tag":666,"props":1384,"children":1385},{"style":811},[1386],{"type":179,"value":915},{"type":173,"tag":666,"props":1388,"children":1389},{"style":811},[1390],{"type":179,"value":920},{"type":173,"tag":666,"props":1392,"children":1393},{"style":923},[1394],{"type":179,"value":1395}," defineNuxtConfig",{"type":173,"tag":666,"props":1397,"children":1398},{"style":823},[1399],{"type":179,"value":931},{"type":173,"tag":666,"props":1401,"children":1402},{"style":817},[1403],{"type":179,"value":1063},{"type":173,"tag":666,"props":1405,"children":1406},{"class":668,"line":594},[1407],{"type":173,"tag":666,"props":1408,"children":1409},{"style":970},[1410],{"type":179,"value":1411},"  // ...\n",{"type":173,"tag":666,"props":1413,"children":1414},{"class":668,"line":900},[1415,1420,1424],{"type":173,"tag":666,"props":1416,"children":1417},{"style":1004},[1418],{"type":179,"value":1419},"  nitro",{"type":173,"tag":666,"props":1421,"children":1422},{"style":817},[1423],{"type":179,"value":1077},{"type":173,"tag":666,"props":1425,"children":1426},{"style":817},[1427],{"type":179,"value":963},{"type":173,"tag":666,"props":1429,"children":1430},{"class":668,"line":909},[1431,1436,1440],{"type":173,"tag":666,"props":1432,"children":1433},{"style":1004},[1434],{"type":179,"value":1435},"    prerender",{"type":173,"tag":666,"props":1437,"children":1438},{"style":817},[1439],{"type":179,"value":1077},{"type":173,"tag":666,"props":1441,"children":1442},{"style":817},[1443],{"type":179,"value":963},{"type":173,"tag":666,"props":1445,"children":1446},{"class":668,"line":966},[1447,1452,1456,1461,1466,1470,1474],{"type":173,"tag":666,"props":1448,"children":1449},{"style":1004},[1450],{"type":179,"value":1451},"      routes",{"type":173,"tag":666,"props":1453,"children":1454},{"style":817},[1455],{"type":179,"value":1077},{"type":173,"tag":666,"props":1457,"children":1458},{"style":823},[1459],{"type":179,"value":1460}," [",{"type":173,"tag":666,"props":1462,"children":1463},{"style":817},[1464],{"type":179,"value":1465},"'",{"type":173,"tag":666,"props":1467,"children":1468},{"style":678},[1469],{"type":179,"value":788},{"type":173,"tag":666,"props":1471,"children":1472},{"style":817},[1473],{"type":179,"value":1465},{"type":173,"tag":666,"props":1475,"children":1476},{"style":823},[1477],{"type":179,"value":1478},"]\n",{"type":173,"tag":666,"props":1480,"children":1481},{"class":668,"line":976},[1482],{"type":173,"tag":666,"props":1483,"children":1484},{"style":817},[1485],{"type":179,"value":1486},"    }\n",{"type":173,"tag":666,"props":1488,"children":1489},{"class":668,"line":1031},[1490],{"type":173,"tag":666,"props":1491,"children":1492},{"style":817},[1493],{"type":179,"value":1258},{"type":173,"tag":666,"props":1495,"children":1496},{"class":668,"line":1066},[1497,1501],{"type":173,"tag":666,"props":1498,"children":1499},{"style":817},[1500],{"type":179,"value":1322},{"type":173,"tag":666,"props":1502,"children":1503},{"style":823},[1504],{"type":179,"value":1104},{"type":173,"tag":1506,"props":1507,"children":1508},"style",{},[1509],{"type":179,"value":1510},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":167,"searchDepth":594,"depth":594,"links":1512},[1513,1514],{"id":633,"depth":594,"text":636},{"id":736,"depth":594,"text":739},"content:6.recipes:3.sitemap.md","6.recipes/3.sitemap.md","6.recipes/3.sitemap",{"_path":126,"_dir":165,"_draft":166,"_partial":166,"_locale":167,"title":9,"description":1519,"body":1520,"_type":600,"_id":1918,"_source":602,"_file":1919,"_stem":1920,"_extension":605},"Install @nuxt/content in only two steps in your Nuxt project.",{"type":170,"children":1521,"toc":1915},[1522,1535,1569,1596,1696,1702,1723,1732,1857,1911],{"type":173,"tag":250,"props":1523,"children":1524},{},[1525,1527,1533],{"type":179,"value":1526},"Add ",{"type":173,"tag":207,"props":1528,"children":1530},{"className":1529},[],[1531],{"type":179,"value":1532},"@nuxt/content",{"type":179,"value":1534}," dependency to your project:",{"type":173,"tag":655,"props":1536,"children":1538},{"className":657,"code":1537,"language":660,"meta":167,"style":167},"npx nuxi@latest module add content\n",[1539],{"type":173,"tag":207,"props":1540,"children":1541},{"__ignoreMap":167},[1542],{"type":173,"tag":666,"props":1543,"children":1544},{"class":668,"line":669},[1545,1550,1555,1560,1564],{"type":173,"tag":666,"props":1546,"children":1547},{"style":673},[1548],{"type":179,"value":1549},"npx",{"type":173,"tag":666,"props":1551,"children":1552},{"style":678},[1553],{"type":179,"value":1554}," nuxi@latest",{"type":173,"tag":666,"props":1556,"children":1557},{"style":678},[1558],{"type":179,"value":1559}," module",{"type":173,"tag":666,"props":1561,"children":1562},{"style":678},[1563],{"type":179,"value":681},{"type":173,"tag":666,"props":1565,"children":1566},{"style":678},[1567],{"type":179,"value":1568}," content\n",{"type":173,"tag":250,"props":1570,"children":1571},{},[1572,1574,1579,1581,1587,1589,1595],{"type":179,"value":1573},"Then, add ",{"type":173,"tag":207,"props":1575,"children":1577},{"className":1576},[],[1578],{"type":179,"value":1532},{"type":179,"value":1580}," to the ",{"type":173,"tag":207,"props":1582,"children":1584},{"className":1583},[],[1585],{"type":179,"value":1586},"modules",{"type":179,"value":1588}," section of ",{"type":173,"tag":207,"props":1590,"children":1592},{"className":1591},[],[1593],{"type":179,"value":1594},"nuxt.config.js",{"type":179,"value":1077},{"type":173,"tag":655,"props":1597,"children":1601},{"className":1598,"code":1599,"filename":1594,"language":1600,"meta":167,"style":167},"language-js shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  modules: [\n    '@nuxt/content'\n  ],\n  content: {\n    // Options\n  }\n}\n","js",[1602],{"type":173,"tag":207,"props":1603,"children":1604},{"__ignoreMap":167},[1605,1612,1629,1645,1657,1673,1681,1688],{"type":173,"tag":666,"props":1606,"children":1607},{"class":668,"line":669},[1608],{"type":173,"tag":666,"props":1609,"children":1610},{"style":817},[1611],{"type":179,"value":1063},{"type":173,"tag":666,"props":1613,"children":1614},{"class":668,"line":594},[1615,1620,1624],{"type":173,"tag":666,"props":1616,"children":1617},{"style":673},[1618],{"type":179,"value":1619},"  modules",{"type":173,"tag":666,"props":1621,"children":1622},{"style":817},[1623],{"type":179,"value":1077},{"type":173,"tag":666,"props":1625,"children":1626},{"style":1004},[1627],{"type":179,"value":1628}," [\n",{"type":173,"tag":666,"props":1630,"children":1631},{"class":668,"line":900},[1632,1637,1641],{"type":173,"tag":666,"props":1633,"children":1634},{"style":817},[1635],{"type":179,"value":1636},"    '",{"type":173,"tag":666,"props":1638,"children":1639},{"style":678},[1640],{"type":179,"value":1532},{"type":173,"tag":666,"props":1642,"children":1643},{"style":817},[1644],{"type":179,"value":851},{"type":173,"tag":666,"props":1646,"children":1647},{"class":668,"line":909},[1648,1653],{"type":173,"tag":666,"props":1649,"children":1650},{"style":1004},[1651],{"type":179,"value":1652},"  ]",{"type":173,"tag":666,"props":1654,"children":1655},{"style":817},[1656],{"type":179,"value":1210},{"type":173,"tag":666,"props":1658,"children":1659},{"class":668,"line":966},[1660,1665,1669],{"type":173,"tag":666,"props":1661,"children":1662},{"style":673},[1663],{"type":179,"value":1664},"  content",{"type":173,"tag":666,"props":1666,"children":1667},{"style":817},[1668],{"type":179,"value":1077},{"type":173,"tag":666,"props":1670,"children":1671},{"style":817},[1672],{"type":179,"value":963},{"type":173,"tag":666,"props":1674,"children":1675},{"class":668,"line":976},[1676],{"type":173,"tag":666,"props":1677,"children":1678},{"style":970},[1679],{"type":179,"value":1680},"    // Options\n",{"type":173,"tag":666,"props":1682,"children":1683},{"class":668,"line":1031},[1684],{"type":173,"tag":666,"props":1685,"children":1686},{"style":817},[1687],{"type":179,"value":1258},{"type":173,"tag":666,"props":1689,"children":1690},{"class":668,"line":1066},[1691],{"type":173,"tag":666,"props":1692,"children":1693},{"style":817},[1694],{"type":179,"value":1695},"}\n",{"type":173,"tag":174,"props":1697,"children":1699},{"id":1698},"typescript",[1700],{"type":179,"value":1701},"TypeScript",{"type":173,"tag":250,"props":1703,"children":1704},{},[1705,1707,1713,1715,1721],{"type":179,"value":1706},"Add the types to your \"types\" array in tsconfig.json after the ",{"type":173,"tag":207,"props":1708,"children":1710},{"className":1709},[],[1711],{"type":179,"value":1712},"@nuxt/types",{"type":179,"value":1714}," (Nuxt 2.9.0+) or ",{"type":173,"tag":207,"props":1716,"children":1718},{"className":1717},[],[1719],{"type":179,"value":1720},"@nuxt/vue-app",{"type":179,"value":1722}," entry.",{"type":173,"tag":250,"props":1724,"children":1725},{},[1726],{"type":173,"tag":1727,"props":1728,"children":1729},"strong",{},[1730],{"type":179,"value":1731},"tsconfig.json",{"type":173,"tag":655,"props":1733,"children":1737},{"className":1734,"code":1735,"language":1736,"meta":167,"style":167},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"compilerOptions\": {\n    \"types\": [\n      \"@nuxt/types\",\n      \"@nuxt/content\"\n    ]\n  }\n}\n","json",[1738],{"type":173,"tag":207,"props":1739,"children":1740},{"__ignoreMap":167},[1741,1748,1774,1799,1819,1835,1843,1850],{"type":173,"tag":666,"props":1742,"children":1743},{"class":668,"line":669},[1744],{"type":173,"tag":666,"props":1745,"children":1746},{"style":817},[1747],{"type":179,"value":1063},{"type":173,"tag":666,"props":1749,"children":1750},{"class":668,"line":594},[1751,1756,1761,1766,1770],{"type":173,"tag":666,"props":1752,"children":1753},{"style":817},[1754],{"type":179,"value":1755},"  \"",{"type":173,"tag":666,"props":1757,"children":1758},{"style":934},[1759],{"type":179,"value":1760},"compilerOptions",{"type":173,"tag":666,"props":1762,"children":1763},{"style":817},[1764],{"type":179,"value":1765},"\"",{"type":173,"tag":666,"props":1767,"children":1768},{"style":817},[1769],{"type":179,"value":1077},{"type":173,"tag":666,"props":1771,"children":1772},{"style":817},[1773],{"type":179,"value":963},{"type":173,"tag":666,"props":1775,"children":1776},{"class":668,"line":900},[1777,1782,1787,1791,1795],{"type":173,"tag":666,"props":1778,"children":1779},{"style":817},[1780],{"type":179,"value":1781},"    \"",{"type":173,"tag":666,"props":1783,"children":1784},{"style":673},[1785],{"type":179,"value":1786},"types",{"type":173,"tag":666,"props":1788,"children":1789},{"style":817},[1790],{"type":179,"value":1765},{"type":173,"tag":666,"props":1792,"children":1793},{"style":817},[1794],{"type":179,"value":1077},{"type":173,"tag":666,"props":1796,"children":1797},{"style":817},[1798],{"type":179,"value":1628},{"type":173,"tag":666,"props":1800,"children":1801},{"class":668,"line":909},[1802,1807,1811,1815],{"type":173,"tag":666,"props":1803,"children":1804},{"style":817},[1805],{"type":179,"value":1806},"      \"",{"type":173,"tag":666,"props":1808,"children":1809},{"style":678},[1810],{"type":179,"value":1712},{"type":173,"tag":666,"props":1812,"children":1813},{"style":817},[1814],{"type":179,"value":1765},{"type":173,"tag":666,"props":1816,"children":1817},{"style":817},[1818],{"type":179,"value":1210},{"type":173,"tag":666,"props":1820,"children":1821},{"class":668,"line":966},[1822,1826,1830],{"type":173,"tag":666,"props":1823,"children":1824},{"style":817},[1825],{"type":179,"value":1806},{"type":173,"tag":666,"props":1827,"children":1828},{"style":678},[1829],{"type":179,"value":1532},{"type":173,"tag":666,"props":1831,"children":1832},{"style":817},[1833],{"type":179,"value":1834},"\"\n",{"type":173,"tag":666,"props":1836,"children":1837},{"class":668,"line":976},[1838],{"type":173,"tag":666,"props":1839,"children":1840},{"style":817},[1841],{"type":179,"value":1842},"    ]\n",{"type":173,"tag":666,"props":1844,"children":1845},{"class":668,"line":1031},[1846],{"type":173,"tag":666,"props":1847,"children":1848},{"style":817},[1849],{"type":179,"value":1258},{"type":173,"tag":666,"props":1851,"children":1852},{"class":668,"line":1066},[1853],{"type":173,"tag":666,"props":1854,"children":1855},{"style":817},[1856],{"type":179,"value":1695},{"type":173,"tag":354,"props":1858,"children":1859},{},[1860,1868],{"type":173,"tag":250,"props":1861,"children":1862},{},[1863],{"type":173,"tag":1727,"props":1864,"children":1865},{},[1866],{"type":179,"value":1867},"Why?",{"type":173,"tag":250,"props":1869,"children":1870},{},[1871,1873,1878,1880,1886,1888,1895,1897,1902,1904,1909],{"type":179,"value":1872},"Because of the way Nuxt works the ",{"type":173,"tag":207,"props":1874,"children":1876},{"className":1875},[],[1877],{"type":179,"value":260},{"type":179,"value":1879}," property on the context has to be merged into the Nuxt ",{"type":173,"tag":207,"props":1881,"children":1883},{"className":1882},[],[1884],{"type":179,"value":1885},"Context",{"type":179,"value":1887}," interface via ",{"type":173,"tag":339,"props":1889,"children":1892},{"href":1890,"rel":1891},"https://www.typescriptlang.org/docs/handbook/declaration-merging.html",[343],[1893],{"type":179,"value":1894},"declaration merging",{"type":179,"value":1896},". Adding ",{"type":173,"tag":207,"props":1898,"children":1900},{"className":1899},[],[1901],{"type":179,"value":1532},{"type":179,"value":1903}," to your types will import the types from the package and make TypeScript aware of the additions to the ",{"type":173,"tag":207,"props":1905,"children":1907},{"className":1906},[],[1908],{"type":179,"value":1885},{"type":179,"value":1910}," interface.",{"type":173,"tag":1506,"props":1912,"children":1913},{},[1914],{"type":179,"value":1510},{"title":167,"searchDepth":594,"depth":594,"links":1916},[1917],{"id":1698,"depth":594,"text":1701},"content:7.v1:1.getting-started:2.installation.md","7.v1/1.getting-started/2.installation.md","7.v1/1.getting-started/2.installation",1725981877142]