[{"data":1,"prerenderedAt":3906},["Reactive",2],{"navigation":3,"docs-/recipes/transformers":158,"docs-/recipes/transformers-surround":1748},[4,20,42,61,86,96,109],{"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],{"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},"Fetch Navigation","/usage/navigation",{"title":40,"_path":41},"TypeScript Support","/usage/typescript",{"title":43,"_path":44,"children":45},"Composables","/composables",[46,49,52,55,58],{"title":47,"_path":48},"queryContent()","/composables/query-content",{"title":50,"_path":51},"fetchContentNavigation()","/composables/fetch-content-navigation",{"title":53,"_path":54},"useContentHead()","/composables/use-content-head",{"title":56,"_path":57},"useContentHelpers()","/composables/use-content-helpers",{"title":59,"_path":60},"useUnwrap()","/composables/use-unwrap",{"title":62,"_path":63,"children":64},"Components","/components",[65,68,71,74,77,80,83],{"title":66,"_path":67},"\u003CContentDoc>","/components/content-doc",{"title":69,"_path":70},"\u003CContentRenderer>","/components/content-renderer",{"title":72,"_path":73},"\u003CContentList>","/components/content-list",{"title":75,"_path":76},"\u003CContentNavigation>","/components/content-navigation",{"title":78,"_path":79},"\u003CContentQuery>","/components/content-query",{"title":81,"_path":82},"\u003CContentSlot>","/components/content-slot",{"title":84,"_path":85},"Prose Components","/components/prose",{"title":87,"_path":88,"children":89},"Document Driven","/document-driven",[90,93],{"title":91,"_path":92},"Introduction","/document-driven/introduction",{"title":94,"_path":95},"useContent()","/document-driven/use-content",{"title":97,"_path":98,"children":99},"Recipes","/recipes",[100,103,106],{"title":101,"_path":102},"Hooks","/recipes/hooks",{"title":104,"_path":105},"Transformers","/recipes/transformers",{"title":107,"_path":108},"Sitemap","/recipes/sitemap",{"title":110,"_path":111,"children":112},"V1","/v1",[113,135,148],{"title":114,"_path":115,"children":116},"Getting Started","/v1/getting-started",[117,119,121,124,127,130,132],{"title":91,"_path":118},"/v1/getting-started/introduction",{"title":9,"_path":120},"/v1/getting-started/installation",{"title":122,"_path":123},"Writing content","/v1/getting-started/writing",{"title":125,"_path":126},"Fetching content","/v1/getting-started/fetching",{"title":128,"_path":129},"Displaying content","/v1/getting-started/displaying",{"title":12,"_path":131},"/v1/getting-started/configuration",{"title":133,"_path":134},"Advanced","/v1/getting-started/advanced",{"title":136,"_path":137,"children":138},"Examples","/v1/examples",[139,142,145],{"title":140,"_path":141},"Basic Usage","/v1/examples/basic",{"title":143,"_path":144},"TailwindCSS","/v1/examples/tailwindcss-typography",{"title":146,"_path":147},"Docs Theme","/v1/examples/docs-theme",{"title":149,"_path":150,"children":151},"Community","/v1/community",[152,155],{"title":153,"_path":154},"Snippets","/v1/community/snippets",{"title":156,"_path":157},"Integrations","/v1/community/integrations",{"_path":105,"_dir":159,"_draft":160,"_partial":160,"_locale":161,"title":104,"description":162,"body":163,"_type":1743,"_id":1744,"_source":1745,"_file":1746,"_extension":1747},"recipes",false,"","Transformers are responsible for parsing and manipulating contents in Nuxt Content.",{"type":164,"children":165,"toc":1741},"root",[166,174,179,234,721,729,1414,1422,1724,1735],{"type":167,"tag":168,"props":169,"children":170},"element","p",{},[171],{"type":172,"value":173},"text","Nuxt Content has specific transformers for each content type to parse the raw content and prepare it for querying and rendering.",{"type":167,"tag":168,"props":175,"children":176},{},[177],{"type":172,"value":178},"You can create custom transformers to support new content types or improve functionalities of supported content types.",{"type":167,"tag":180,"props":181,"children":182},"ol",{},[183],{"type":167,"tag":184,"props":185,"children":186},"li",{},[187,189],{"type":172,"value":188},"Create your transformer. A transformer consists of 4 parts:\n",{"type":167,"tag":190,"props":191,"children":192},"ul",{},[193,204,214,224],{"type":167,"tag":184,"props":194,"children":195},{},[196,202],{"type":167,"tag":197,"props":198,"children":199},"code",{},[200],{"type":172,"value":201},"name",{"type":172,"value":203},": Transformer name.",{"type":167,"tag":184,"props":205,"children":206},{},[207,212],{"type":167,"tag":197,"props":208,"children":209},{},[210],{"type":172,"value":211},"extensions",{"type":172,"value":213},": List of valid file extensions.",{"type":167,"tag":184,"props":215,"children":216},{},[217,222],{"type":167,"tag":197,"props":218,"children":219},{},[220],{"type":172,"value":221},"parse",{"type":172,"value":223},": If provided, this function will be used to parse the raw content.",{"type":167,"tag":184,"props":225,"children":226},{},[227,232],{"type":167,"tag":197,"props":228,"children":229},{},[230],{"type":172,"value":231},"transform",{"type":172,"value":233},": Receives that parsed content and manipulates it.",{"type":167,"tag":235,"props":236,"children":241},"pre",{"className":237,"code":238,"filename":239,"language":240,"meta":161},"language-ts solarized-light_dark-plus_material-theme-lighter","// filename: my-transformer.ts\nimport { defineTransformer } from '@nuxt/content/transformers'\n\nexport default defineTransformer({\n  name: 'my-transformer',\n  extensions: ['.names'],\n  parse (_id, rawContent) {\n    return {\n      _id,\n      body: rawContent.trim().split('\\n').map(line => line.trim()).sort()\n    }\n  }\n})\n\n","my-transformer.ts","ts",[242],{"type":167,"tag":197,"props":243,"children":244},{"__ignoreMap":161},[245,257,329,336,373,415,458,512,534,551,684,697,709],{"type":167,"tag":246,"props":247,"children":250},"span",{"class":248,"line":249},"line",1,[251],{"type":167,"tag":246,"props":252,"children":254},{"class":253},"ct-798230",[255],{"type":172,"value":256},"// filename: my-transformer.ts\n",{"type":167,"tag":246,"props":258,"children":260},{"class":248,"line":259},2,[261,267,273,279,284,290,294,299,303,308,312,318,324],{"type":167,"tag":246,"props":262,"children":264},{"class":263},"ct-702290",[265],{"type":172,"value":266},"import",{"type":167,"tag":246,"props":268,"children":270},{"class":269},"ct-916772",[271],{"type":172,"value":272}," ",{"type":167,"tag":246,"props":274,"children":276},{"class":275},"ct-001462",[277],{"type":172,"value":278},"{",{"type":167,"tag":246,"props":280,"children":282},{"class":281},"ct-589478",[283],{"type":172,"value":272},{"type":167,"tag":246,"props":285,"children":287},{"class":286},"ct-604459",[288],{"type":172,"value":289},"defineTransformer",{"type":167,"tag":246,"props":291,"children":292},{"class":281},[293],{"type":172,"value":272},{"type":167,"tag":246,"props":295,"children":296},{"class":275},[297],{"type":172,"value":298},"}",{"type":167,"tag":246,"props":300,"children":301},{"class":269},[302],{"type":172,"value":272},{"type":167,"tag":246,"props":304,"children":305},{"class":263},[306],{"type":172,"value":307},"from",{"type":167,"tag":246,"props":309,"children":310},{"class":269},[311],{"type":172,"value":272},{"type":167,"tag":246,"props":313,"children":315},{"class":314},"ct-659886",[316],{"type":172,"value":317},"'",{"type":167,"tag":246,"props":319,"children":321},{"class":320},"ct-084644",[322],{"type":172,"value":323},"@nuxt/content/transformers",{"type":167,"tag":246,"props":325,"children":326},{"class":314},[327],{"type":172,"value":328},"'\n",{"type":167,"tag":246,"props":330,"children":332},{"class":248,"line":331},3,[333],{"type":167,"tag":246,"props":334,"children":335},{},[],{"type":167,"tag":246,"props":337,"children":339},{"class":248,"line":338},4,[340,345,349,354,358,363,368],{"type":167,"tag":246,"props":341,"children":342},{"class":263},[343],{"type":172,"value":344},"export",{"type":167,"tag":246,"props":346,"children":347},{"class":269},[348],{"type":172,"value":272},{"type":167,"tag":246,"props":350,"children":351},{"class":263},[352],{"type":172,"value":353},"default",{"type":167,"tag":246,"props":355,"children":356},{"class":269},[357],{"type":172,"value":272},{"type":167,"tag":246,"props":359,"children":361},{"class":360},"ct-187170",[362],{"type":172,"value":289},{"type":167,"tag":246,"props":364,"children":365},{"class":269},[366],{"type":172,"value":367},"(",{"type":167,"tag":246,"props":369,"children":370},{"class":275},[371],{"type":172,"value":372},"{\n",{"type":167,"tag":246,"props":374,"children":376},{"class":248,"line":375},5,[377,382,387,393,397,401,406,410],{"type":167,"tag":246,"props":378,"children":379},{"class":269},[380],{"type":172,"value":381},"  ",{"type":167,"tag":246,"props":383,"children":385},{"class":384},"ct-340802",[386],{"type":172,"value":201},{"type":167,"tag":246,"props":388,"children":390},{"class":389},"ct-931742",[391],{"type":172,"value":392},":",{"type":167,"tag":246,"props":394,"children":395},{"class":269},[396],{"type":172,"value":272},{"type":167,"tag":246,"props":398,"children":399},{"class":314},[400],{"type":172,"value":317},{"type":167,"tag":246,"props":402,"children":403},{"class":320},[404],{"type":172,"value":405},"my-transformer",{"type":167,"tag":246,"props":407,"children":408},{"class":314},[409],{"type":172,"value":317},{"type":167,"tag":246,"props":411,"children":412},{"class":275},[413],{"type":172,"value":414},",\n",{"type":167,"tag":246,"props":416,"children":418},{"class":248,"line":417},6,[419,423,427,431,436,440,445,449,454],{"type":167,"tag":246,"props":420,"children":421},{"class":269},[422],{"type":172,"value":381},{"type":167,"tag":246,"props":424,"children":425},{"class":384},[426],{"type":172,"value":211},{"type":167,"tag":246,"props":428,"children":429},{"class":389},[430],{"type":172,"value":392},{"type":167,"tag":246,"props":432,"children":433},{"class":269},[434],{"type":172,"value":435}," [",{"type":167,"tag":246,"props":437,"children":438},{"class":314},[439],{"type":172,"value":317},{"type":167,"tag":246,"props":441,"children":442},{"class":320},[443],{"type":172,"value":444},".names",{"type":167,"tag":246,"props":446,"children":447},{"class":314},[448],{"type":172,"value":317},{"type":167,"tag":246,"props":450,"children":451},{"class":269},[452],{"type":172,"value":453},"]",{"type":167,"tag":246,"props":455,"children":456},{"class":275},[457],{"type":172,"value":414},{"type":167,"tag":246,"props":459,"children":461},{"class":248,"line":460},7,[462,466,471,475,479,485,490,494,499,504,508],{"type":167,"tag":246,"props":463,"children":464},{"class":269},[465],{"type":172,"value":381},{"type":167,"tag":246,"props":467,"children":469},{"class":468},"ct-033771",[470],{"type":172,"value":221},{"type":167,"tag":246,"props":472,"children":473},{"class":269},[474],{"type":172,"value":272},{"type":167,"tag":246,"props":476,"children":477},{"class":275},[478],{"type":172,"value":367},{"type":167,"tag":246,"props":480,"children":482},{"class":481},"ct-120243",[483],{"type":172,"value":484},"_id",{"type":167,"tag":246,"props":486,"children":487},{"class":275},[488],{"type":172,"value":489},",",{"type":167,"tag":246,"props":491,"children":492},{"class":269},[493],{"type":172,"value":272},{"type":167,"tag":246,"props":495,"children":496},{"class":481},[497],{"type":172,"value":498},"rawContent",{"type":167,"tag":246,"props":500,"children":501},{"class":275},[502],{"type":172,"value":503},")",{"type":167,"tag":246,"props":505,"children":506},{"class":269},[507],{"type":172,"value":272},{"type":167,"tag":246,"props":509,"children":510},{"class":275},[511],{"type":172,"value":372},{"type":167,"tag":246,"props":513,"children":515},{"class":248,"line":514},8,[516,521,526,530],{"type":167,"tag":246,"props":517,"children":518},{"class":281},[519],{"type":172,"value":520},"    ",{"type":167,"tag":246,"props":522,"children":523},{"class":263},[524],{"type":172,"value":525},"return",{"type":167,"tag":246,"props":527,"children":528},{"class":281},[529],{"type":172,"value":272},{"type":167,"tag":246,"props":531,"children":532},{"class":275},[533],{"type":172,"value":372},{"type":167,"tag":246,"props":535,"children":537},{"class":248,"line":536},9,[538,543,547],{"type":167,"tag":246,"props":539,"children":540},{"class":281},[541],{"type":172,"value":542},"      ",{"type":167,"tag":246,"props":544,"children":545},{"class":286},[546],{"type":172,"value":484},{"type":167,"tag":246,"props":548,"children":549},{"class":275},[550],{"type":172,"value":414},{"type":167,"tag":246,"props":552,"children":554},{"class":248,"line":553},10,[555,559,564,568,572,576,581,586,591,595,600,604,608,614,618,622,626,631,635,639,643,649,653,657,661,665,670,674,679],{"type":167,"tag":246,"props":556,"children":557},{"class":281},[558],{"type":172,"value":542},{"type":167,"tag":246,"props":560,"children":561},{"class":384},[562],{"type":172,"value":563},"body",{"type":167,"tag":246,"props":565,"children":566},{"class":389},[567],{"type":172,"value":392},{"type":167,"tag":246,"props":569,"children":570},{"class":281},[571],{"type":172,"value":272},{"type":167,"tag":246,"props":573,"children":574},{"class":286},[575],{"type":172,"value":498},{"type":167,"tag":246,"props":577,"children":578},{"class":275},[579],{"type":172,"value":580},".",{"type":167,"tag":246,"props":582,"children":583},{"class":360},[584],{"type":172,"value":585},"trim",{"type":167,"tag":246,"props":587,"children":588},{"class":281},[589],{"type":172,"value":590},"()",{"type":167,"tag":246,"props":592,"children":593},{"class":275},[594],{"type":172,"value":580},{"type":167,"tag":246,"props":596,"children":597},{"class":360},[598],{"type":172,"value":599},"split",{"type":167,"tag":246,"props":601,"children":602},{"class":281},[603],{"type":172,"value":367},{"type":167,"tag":246,"props":605,"children":606},{"class":314},[607],{"type":172,"value":317},{"type":167,"tag":246,"props":609,"children":611},{"class":610},"ct-611752",[612],{"type":172,"value":613},"\\n",{"type":167,"tag":246,"props":615,"children":616},{"class":314},[617],{"type":172,"value":317},{"type":167,"tag":246,"props":619,"children":620},{"class":281},[621],{"type":172,"value":503},{"type":167,"tag":246,"props":623,"children":624},{"class":275},[625],{"type":172,"value":580},{"type":167,"tag":246,"props":627,"children":628},{"class":360},[629],{"type":172,"value":630},"map",{"type":167,"tag":246,"props":632,"children":633},{"class":281},[634],{"type":172,"value":367},{"type":167,"tag":246,"props":636,"children":637},{"class":481},[638],{"type":172,"value":248},{"type":167,"tag":246,"props":640,"children":641},{"class":281},[642],{"type":172,"value":272},{"type":167,"tag":246,"props":644,"children":646},{"class":645},"ct-696419",[647],{"type":172,"value":648},"=>",{"type":167,"tag":246,"props":650,"children":651},{"class":281},[652],{"type":172,"value":272},{"type":167,"tag":246,"props":654,"children":655},{"class":286},[656],{"type":172,"value":248},{"type":167,"tag":246,"props":658,"children":659},{"class":275},[660],{"type":172,"value":580},{"type":167,"tag":246,"props":662,"children":663},{"class":360},[664],{"type":172,"value":585},{"type":167,"tag":246,"props":666,"children":667},{"class":281},[668],{"type":172,"value":669},"())",{"type":167,"tag":246,"props":671,"children":672},{"class":275},[673],{"type":172,"value":580},{"type":167,"tag":246,"props":675,"children":676},{"class":360},[677],{"type":172,"value":678},"sort",{"type":167,"tag":246,"props":680,"children":681},{"class":281},[682],{"type":172,"value":683},"()\n",{"type":167,"tag":246,"props":685,"children":687},{"class":248,"line":686},11,[688,692],{"type":167,"tag":246,"props":689,"children":690},{"class":281},[691],{"type":172,"value":520},{"type":167,"tag":246,"props":693,"children":694},{"class":275},[695],{"type":172,"value":696},"}\n",{"type":167,"tag":246,"props":698,"children":700},{"class":248,"line":699},12,[701,705],{"type":167,"tag":246,"props":702,"children":703},{"class":281},[704],{"type":172,"value":381},{"type":167,"tag":246,"props":706,"children":707},{"class":275},[708],{"type":172,"value":696},{"type":167,"tag":246,"props":710,"children":712},{"class":248,"line":711},13,[713,717],{"type":167,"tag":246,"props":714,"children":715},{"class":275},[716],{"type":172,"value":298},{"type":167,"tag":246,"props":718,"children":719},{"class":269},[720],{"type":172,"value":503},{"type":167,"tag":180,"props":722,"children":723},{"start":259},[724],{"type":167,"tag":184,"props":725,"children":726},{},[727],{"type":172,"value":728},"Define simple module to register transformer",{"type":167,"tag":235,"props":730,"children":733},{"className":237,"code":731,"filename":732,"language":240,"meta":161},"// filename: my-module.mjs\nimport { resolve } from 'path'\nimport { defineNuxtModule } from '@nuxt/kit'\n\nexport default defineNuxtModule({\n  setup (_options, nuxt) {\n    nuxt.options.nitro.externals = nuxt.options.nitro.externals || {}\n    nuxt.options.nitro.externals.inline = nuxt.options.nitro.externals.inline || []\n    nuxt.options.nitro.externals.inline.push(resolve('./my-module'))\n    // @ts-ignore\n    nuxt.hook('content:context', (contentContext) => {\n      contentContext.transformers.push(resolve('./my-module/my-transformer.ts'))\n    })\n  }\n})\n\n","my-module.mjs",[734],{"type":167,"tag":197,"props":735,"children":736},{"__ignoreMap":161},[737,745,802,859,865,896,946,1044,1149,1231,1243,1317,1374,1390,1402],{"type":167,"tag":246,"props":738,"children":739},{"class":248,"line":249},[740],{"type":167,"tag":246,"props":741,"children":742},{"class":253},[743],{"type":172,"value":744},"// filename: my-module.mjs\n",{"type":167,"tag":246,"props":746,"children":747},{"class":248,"line":259},[748,752,756,760,764,769,773,777,781,785,789,793,798],{"type":167,"tag":246,"props":749,"children":750},{"class":263},[751],{"type":172,"value":266},{"type":167,"tag":246,"props":753,"children":754},{"class":269},[755],{"type":172,"value":272},{"type":167,"tag":246,"props":757,"children":758},{"class":275},[759],{"type":172,"value":278},{"type":167,"tag":246,"props":761,"children":762},{"class":281},[763],{"type":172,"value":272},{"type":167,"tag":246,"props":765,"children":766},{"class":286},[767],{"type":172,"value":768},"resolve",{"type":167,"tag":246,"props":770,"children":771},{"class":281},[772],{"type":172,"value":272},{"type":167,"tag":246,"props":774,"children":775},{"class":275},[776],{"type":172,"value":298},{"type":167,"tag":246,"props":778,"children":779},{"class":269},[780],{"type":172,"value":272},{"type":167,"tag":246,"props":782,"children":783},{"class":263},[784],{"type":172,"value":307},{"type":167,"tag":246,"props":786,"children":787},{"class":269},[788],{"type":172,"value":272},{"type":167,"tag":246,"props":790,"children":791},{"class":314},[792],{"type":172,"value":317},{"type":167,"tag":246,"props":794,"children":795},{"class":320},[796],{"type":172,"value":797},"path",{"type":167,"tag":246,"props":799,"children":800},{"class":314},[801],{"type":172,"value":328},{"type":167,"tag":246,"props":803,"children":804},{"class":248,"line":331},[805,809,813,817,821,826,830,834,838,842,846,850,855],{"type":167,"tag":246,"props":806,"children":807},{"class":263},[808],{"type":172,"value":266},{"type":167,"tag":246,"props":810,"children":811},{"class":269},[812],{"type":172,"value":272},{"type":167,"tag":246,"props":814,"children":815},{"class":275},[816],{"type":172,"value":278},{"type":167,"tag":246,"props":818,"children":819},{"class":281},[820],{"type":172,"value":272},{"type":167,"tag":246,"props":822,"children":823},{"class":286},[824],{"type":172,"value":825},"defineNuxtModule",{"type":167,"tag":246,"props":827,"children":828},{"class":281},[829],{"type":172,"value":272},{"type":167,"tag":246,"props":831,"children":832},{"class":275},[833],{"type":172,"value":298},{"type":167,"tag":246,"props":835,"children":836},{"class":269},[837],{"type":172,"value":272},{"type":167,"tag":246,"props":839,"children":840},{"class":263},[841],{"type":172,"value":307},{"type":167,"tag":246,"props":843,"children":844},{"class":269},[845],{"type":172,"value":272},{"type":167,"tag":246,"props":847,"children":848},{"class":314},[849],{"type":172,"value":317},{"type":167,"tag":246,"props":851,"children":852},{"class":320},[853],{"type":172,"value":854},"@nuxt/kit",{"type":167,"tag":246,"props":856,"children":857},{"class":314},[858],{"type":172,"value":328},{"type":167,"tag":246,"props":860,"children":861},{"class":248,"line":338},[862],{"type":167,"tag":246,"props":863,"children":864},{},[],{"type":167,"tag":246,"props":866,"children":867},{"class":248,"line":375},[868,872,876,880,884,888,892],{"type":167,"tag":246,"props":869,"children":870},{"class":263},[871],{"type":172,"value":344},{"type":167,"tag":246,"props":873,"children":874},{"class":269},[875],{"type":172,"value":272},{"type":167,"tag":246,"props":877,"children":878},{"class":263},[879],{"type":172,"value":353},{"type":167,"tag":246,"props":881,"children":882},{"class":269},[883],{"type":172,"value":272},{"type":167,"tag":246,"props":885,"children":886},{"class":360},[887],{"type":172,"value":825},{"type":167,"tag":246,"props":889,"children":890},{"class":269},[891],{"type":172,"value":367},{"type":167,"tag":246,"props":893,"children":894},{"class":275},[895],{"type":172,"value":372},{"type":167,"tag":246,"props":897,"children":898},{"class":248,"line":417},[899,903,908,912,916,921,925,929,934,938,942],{"type":167,"tag":246,"props":900,"children":901},{"class":269},[902],{"type":172,"value":381},{"type":167,"tag":246,"props":904,"children":905},{"class":468},[906],{"type":172,"value":907},"setup",{"type":167,"tag":246,"props":909,"children":910},{"class":269},[911],{"type":172,"value":272},{"type":167,"tag":246,"props":913,"children":914},{"class":275},[915],{"type":172,"value":367},{"type":167,"tag":246,"props":917,"children":918},{"class":481},[919],{"type":172,"value":920},"_options",{"type":167,"tag":246,"props":922,"children":923},{"class":275},[924],{"type":172,"value":489},{"type":167,"tag":246,"props":926,"children":927},{"class":269},[928],{"type":172,"value":272},{"type":167,"tag":246,"props":930,"children":931},{"class":481},[932],{"type":172,"value":933},"nuxt",{"type":167,"tag":246,"props":935,"children":936},{"class":275},[937],{"type":172,"value":503},{"type":167,"tag":246,"props":939,"children":940},{"class":269},[941],{"type":172,"value":272},{"type":167,"tag":246,"props":943,"children":944},{"class":275},[945],{"type":172,"value":372},{"type":167,"tag":246,"props":947,"children":948},{"class":248,"line":460},[949,953,957,961,966,970,975,979,984,988,994,998,1002,1006,1010,1014,1018,1022,1026,1030,1035,1039],{"type":167,"tag":246,"props":950,"children":951},{"class":281},[952],{"type":172,"value":520},{"type":167,"tag":246,"props":954,"children":955},{"class":286},[956],{"type":172,"value":933},{"type":167,"tag":246,"props":958,"children":959},{"class":275},[960],{"type":172,"value":580},{"type":167,"tag":246,"props":962,"children":963},{"class":286},[964],{"type":172,"value":965},"options",{"type":167,"tag":246,"props":967,"children":968},{"class":275},[969],{"type":172,"value":580},{"type":167,"tag":246,"props":971,"children":972},{"class":286},[973],{"type":172,"value":974},"nitro",{"type":167,"tag":246,"props":976,"children":977},{"class":275},[978],{"type":172,"value":580},{"type":167,"tag":246,"props":980,"children":981},{"class":286},[982],{"type":172,"value":983},"externals",{"type":167,"tag":246,"props":985,"children":986},{"class":281},[987],{"type":172,"value":272},{"type":167,"tag":246,"props":989,"children":991},{"class":990},"ct-773118",[992],{"type":172,"value":993},"=",{"type":167,"tag":246,"props":995,"children":996},{"class":281},[997],{"type":172,"value":272},{"type":167,"tag":246,"props":999,"children":1000},{"class":286},[1001],{"type":172,"value":933},{"type":167,"tag":246,"props":1003,"children":1004},{"class":275},[1005],{"type":172,"value":580},{"type":167,"tag":246,"props":1007,"children":1008},{"class":286},[1009],{"type":172,"value":965},{"type":167,"tag":246,"props":1011,"children":1012},{"class":275},[1013],{"type":172,"value":580},{"type":167,"tag":246,"props":1015,"children":1016},{"class":286},[1017],{"type":172,"value":974},{"type":167,"tag":246,"props":1019,"children":1020},{"class":275},[1021],{"type":172,"value":580},{"type":167,"tag":246,"props":1023,"children":1024},{"class":286},[1025],{"type":172,"value":983},{"type":167,"tag":246,"props":1027,"children":1028},{"class":281},[1029],{"type":172,"value":272},{"type":167,"tag":246,"props":1031,"children":1032},{"class":990},[1033],{"type":172,"value":1034},"||",{"type":167,"tag":246,"props":1036,"children":1037},{"class":281},[1038],{"type":172,"value":272},{"type":167,"tag":246,"props":1040,"children":1041},{"class":275},[1042],{"type":172,"value":1043},"{}\n",{"type":167,"tag":246,"props":1045,"children":1046},{"class":248,"line":514},[1047,1051,1055,1059,1063,1067,1071,1075,1079,1083,1088,1092,1096,1100,1104,1108,1112,1116,1120,1124,1128,1132,1136,1140,1144],{"type":167,"tag":246,"props":1048,"children":1049},{"class":281},[1050],{"type":172,"value":520},{"type":167,"tag":246,"props":1052,"children":1053},{"class":286},[1054],{"type":172,"value":933},{"type":167,"tag":246,"props":1056,"children":1057},{"class":275},[1058],{"type":172,"value":580},{"type":167,"tag":246,"props":1060,"children":1061},{"class":286},[1062],{"type":172,"value":965},{"type":167,"tag":246,"props":1064,"children":1065},{"class":275},[1066],{"type":172,"value":580},{"type":167,"tag":246,"props":1068,"children":1069},{"class":286},[1070],{"type":172,"value":974},{"type":167,"tag":246,"props":1072,"children":1073},{"class":275},[1074],{"type":172,"value":580},{"type":167,"tag":246,"props":1076,"children":1077},{"class":286},[1078],{"type":172,"value":983},{"type":167,"tag":246,"props":1080,"children":1081},{"class":275},[1082],{"type":172,"value":580},{"type":167,"tag":246,"props":1084,"children":1085},{"class":286},[1086],{"type":172,"value":1087},"inline",{"type":167,"tag":246,"props":1089,"children":1090},{"class":281},[1091],{"type":172,"value":272},{"type":167,"tag":246,"props":1093,"children":1094},{"class":990},[1095],{"type":172,"value":993},{"type":167,"tag":246,"props":1097,"children":1098},{"class":281},[1099],{"type":172,"value":272},{"type":167,"tag":246,"props":1101,"children":1102},{"class":286},[1103],{"type":172,"value":933},{"type":167,"tag":246,"props":1105,"children":1106},{"class":275},[1107],{"type":172,"value":580},{"type":167,"tag":246,"props":1109,"children":1110},{"class":286},[1111],{"type":172,"value":965},{"type":167,"tag":246,"props":1113,"children":1114},{"class":275},[1115],{"type":172,"value":580},{"type":167,"tag":246,"props":1117,"children":1118},{"class":286},[1119],{"type":172,"value":974},{"type":167,"tag":246,"props":1121,"children":1122},{"class":275},[1123],{"type":172,"value":580},{"type":167,"tag":246,"props":1125,"children":1126},{"class":286},[1127],{"type":172,"value":983},{"type":167,"tag":246,"props":1129,"children":1130},{"class":275},[1131],{"type":172,"value":580},{"type":167,"tag":246,"props":1133,"children":1134},{"class":286},[1135],{"type":172,"value":1087},{"type":167,"tag":246,"props":1137,"children":1138},{"class":281},[1139],{"type":172,"value":272},{"type":167,"tag":246,"props":1141,"children":1142},{"class":990},[1143],{"type":172,"value":1034},{"type":167,"tag":246,"props":1145,"children":1146},{"class":281},[1147],{"type":172,"value":1148}," []\n",{"type":167,"tag":246,"props":1150,"children":1151},{"class":248,"line":536},[1152,1156,1160,1164,1168,1172,1176,1180,1184,1188,1192,1196,1201,1205,1209,1213,1217,1222,1226],{"type":167,"tag":246,"props":1153,"children":1154},{"class":281},[1155],{"type":172,"value":520},{"type":167,"tag":246,"props":1157,"children":1158},{"class":286},[1159],{"type":172,"value":933},{"type":167,"tag":246,"props":1161,"children":1162},{"class":275},[1163],{"type":172,"value":580},{"type":167,"tag":246,"props":1165,"children":1166},{"class":286},[1167],{"type":172,"value":965},{"type":167,"tag":246,"props":1169,"children":1170},{"class":275},[1171],{"type":172,"value":580},{"type":167,"tag":246,"props":1173,"children":1174},{"class":286},[1175],{"type":172,"value":974},{"type":167,"tag":246,"props":1177,"children":1178},{"class":275},[1179],{"type":172,"value":580},{"type":167,"tag":246,"props":1181,"children":1182},{"class":286},[1183],{"type":172,"value":983},{"type":167,"tag":246,"props":1185,"children":1186},{"class":275},[1187],{"type":172,"value":580},{"type":167,"tag":246,"props":1189,"children":1190},{"class":286},[1191],{"type":172,"value":1087},{"type":167,"tag":246,"props":1193,"children":1194},{"class":275},[1195],{"type":172,"value":580},{"type":167,"tag":246,"props":1197,"children":1198},{"class":360},[1199],{"type":172,"value":1200},"push",{"type":167,"tag":246,"props":1202,"children":1203},{"class":281},[1204],{"type":172,"value":367},{"type":167,"tag":246,"props":1206,"children":1207},{"class":360},[1208],{"type":172,"value":768},{"type":167,"tag":246,"props":1210,"children":1211},{"class":281},[1212],{"type":172,"value":367},{"type":167,"tag":246,"props":1214,"children":1215},{"class":314},[1216],{"type":172,"value":317},{"type":167,"tag":246,"props":1218,"children":1219},{"class":320},[1220],{"type":172,"value":1221},"./my-module",{"type":167,"tag":246,"props":1223,"children":1224},{"class":314},[1225],{"type":172,"value":317},{"type":167,"tag":246,"props":1227,"children":1228},{"class":281},[1229],{"type":172,"value":1230},"))\n",{"type":167,"tag":246,"props":1232,"children":1233},{"class":248,"line":553},[1234,1238],{"type":167,"tag":246,"props":1235,"children":1236},{"class":275},[1237],{"type":172,"value":520},{"type":167,"tag":246,"props":1239,"children":1240},{"class":253},[1241],{"type":172,"value":1242},"// @ts-ignore\n",{"type":167,"tag":246,"props":1244,"children":1245},{"class":248,"line":686},[1246,1250,1254,1258,1263,1267,1271,1276,1280,1284,1288,1292,1297,1301,1305,1309,1313],{"type":167,"tag":246,"props":1247,"children":1248},{"class":281},[1249],{"type":172,"value":520},{"type":167,"tag":246,"props":1251,"children":1252},{"class":286},[1253],{"type":172,"value":933},{"type":167,"tag":246,"props":1255,"children":1256},{"class":275},[1257],{"type":172,"value":580},{"type":167,"tag":246,"props":1259,"children":1260},{"class":360},[1261],{"type":172,"value":1262},"hook",{"type":167,"tag":246,"props":1264,"children":1265},{"class":281},[1266],{"type":172,"value":367},{"type":167,"tag":246,"props":1268,"children":1269},{"class":314},[1270],{"type":172,"value":317},{"type":167,"tag":246,"props":1272,"children":1273},{"class":320},[1274],{"type":172,"value":1275},"content:context",{"type":167,"tag":246,"props":1277,"children":1278},{"class":314},[1279],{"type":172,"value":317},{"type":167,"tag":246,"props":1281,"children":1282},{"class":275},[1283],{"type":172,"value":489},{"type":167,"tag":246,"props":1285,"children":1286},{"class":281},[1287],{"type":172,"value":272},{"type":167,"tag":246,"props":1289,"children":1290},{"class":275},[1291],{"type":172,"value":367},{"type":167,"tag":246,"props":1293,"children":1294},{"class":481},[1295],{"type":172,"value":1296},"contentContext",{"type":167,"tag":246,"props":1298,"children":1299},{"class":275},[1300],{"type":172,"value":503},{"type":167,"tag":246,"props":1302,"children":1303},{"class":281},[1304],{"type":172,"value":272},{"type":167,"tag":246,"props":1306,"children":1307},{"class":645},[1308],{"type":172,"value":648},{"type":167,"tag":246,"props":1310,"children":1311},{"class":281},[1312],{"type":172,"value":272},{"type":167,"tag":246,"props":1314,"children":1315},{"class":275},[1316],{"type":172,"value":372},{"type":167,"tag":246,"props":1318,"children":1319},{"class":248,"line":699},[1320,1324,1328,1332,1337,1341,1345,1349,1353,1357,1361,1366,1370],{"type":167,"tag":246,"props":1321,"children":1322},{"class":281},[1323],{"type":172,"value":542},{"type":167,"tag":246,"props":1325,"children":1326},{"class":286},[1327],{"type":172,"value":1296},{"type":167,"tag":246,"props":1329,"children":1330},{"class":275},[1331],{"type":172,"value":580},{"type":167,"tag":246,"props":1333,"children":1334},{"class":286},[1335],{"type":172,"value":1336},"transformers",{"type":167,"tag":246,"props":1338,"children":1339},{"class":275},[1340],{"type":172,"value":580},{"type":167,"tag":246,"props":1342,"children":1343},{"class":360},[1344],{"type":172,"value":1200},{"type":167,"tag":246,"props":1346,"children":1347},{"class":281},[1348],{"type":172,"value":367},{"type":167,"tag":246,"props":1350,"children":1351},{"class":360},[1352],{"type":172,"value":768},{"type":167,"tag":246,"props":1354,"children":1355},{"class":281},[1356],{"type":172,"value":367},{"type":167,"tag":246,"props":1358,"children":1359},{"class":314},[1360],{"type":172,"value":317},{"type":167,"tag":246,"props":1362,"children":1363},{"class":320},[1364],{"type":172,"value":1365},"./my-module/my-transformer.ts",{"type":167,"tag":246,"props":1367,"children":1368},{"class":314},[1369],{"type":172,"value":317},{"type":167,"tag":246,"props":1371,"children":1372},{"class":281},[1373],{"type":172,"value":1230},{"type":167,"tag":246,"props":1375,"children":1376},{"class":248,"line":711},[1377,1381,1385],{"type":167,"tag":246,"props":1378,"children":1379},{"class":281},[1380],{"type":172,"value":520},{"type":167,"tag":246,"props":1382,"children":1383},{"class":275},[1384],{"type":172,"value":298},{"type":167,"tag":246,"props":1386,"children":1387},{"class":281},[1388],{"type":172,"value":1389},")\n",{"type":167,"tag":246,"props":1391,"children":1393},{"class":248,"line":1392},14,[1394,1398],{"type":167,"tag":246,"props":1395,"children":1396},{"class":281},[1397],{"type":172,"value":381},{"type":167,"tag":246,"props":1399,"children":1400},{"class":275},[1401],{"type":172,"value":696},{"type":167,"tag":246,"props":1403,"children":1405},{"class":248,"line":1404},15,[1406,1410],{"type":167,"tag":246,"props":1407,"children":1408},{"class":275},[1409],{"type":172,"value":298},{"type":167,"tag":246,"props":1411,"children":1412},{"class":269},[1413],{"type":172,"value":503},{"type":167,"tag":180,"props":1415,"children":1416},{"start":331},[1417],{"type":167,"tag":184,"props":1418,"children":1419},{},[1420],{"type":172,"value":1421},"Register your module",{"type":167,"tag":235,"props":1423,"children":1426},{"className":237,"code":1424,"filename":1425,"language":240,"meta":161},"// filename: my-module.mjs\nimport { resolve } from 'path'\nimport { defineNuxtConfig } from '@nuxt/kit'\nimport MyModule from './my-module'\n\nexport default defineNuxtConfig({\n  modules: [\n    // always put it before @nuxt/content because the transformers \n    // needs to be loaded before transformation occurs\n    MyModule,\n    '@nuxt/content'\n  ]\n})\n","nuxt.config.ts",[1427],{"type":167,"tag":197,"props":1428,"children":1429},{"__ignoreMap":161},[1430,1437,1492,1548,1588,1594,1625,1646,1658,1670,1685,1705,1713],{"type":167,"tag":246,"props":1431,"children":1432},{"class":248,"line":249},[1433],{"type":167,"tag":246,"props":1434,"children":1435},{"class":253},[1436],{"type":172,"value":744},{"type":167,"tag":246,"props":1438,"children":1439},{"class":248,"line":259},[1440,1444,1448,1452,1456,1460,1464,1468,1472,1476,1480,1484,1488],{"type":167,"tag":246,"props":1441,"children":1442},{"class":263},[1443],{"type":172,"value":266},{"type":167,"tag":246,"props":1445,"children":1446},{"class":269},[1447],{"type":172,"value":272},{"type":167,"tag":246,"props":1449,"children":1450},{"class":275},[1451],{"type":172,"value":278},{"type":167,"tag":246,"props":1453,"children":1454},{"class":281},[1455],{"type":172,"value":272},{"type":167,"tag":246,"props":1457,"children":1458},{"class":286},[1459],{"type":172,"value":768},{"type":167,"tag":246,"props":1461,"children":1462},{"class":281},[1463],{"type":172,"value":272},{"type":167,"tag":246,"props":1465,"children":1466},{"class":275},[1467],{"type":172,"value":298},{"type":167,"tag":246,"props":1469,"children":1470},{"class":269},[1471],{"type":172,"value":272},{"type":167,"tag":246,"props":1473,"children":1474},{"class":263},[1475],{"type":172,"value":307},{"type":167,"tag":246,"props":1477,"children":1478},{"class":269},[1479],{"type":172,"value":272},{"type":167,"tag":246,"props":1481,"children":1482},{"class":314},[1483],{"type":172,"value":317},{"type":167,"tag":246,"props":1485,"children":1486},{"class":320},[1487],{"type":172,"value":797},{"type":167,"tag":246,"props":1489,"children":1490},{"class":314},[1491],{"type":172,"value":328},{"type":167,"tag":246,"props":1493,"children":1494},{"class":248,"line":331},[1495,1499,1503,1507,1511,1516,1520,1524,1528,1532,1536,1540,1544],{"type":167,"tag":246,"props":1496,"children":1497},{"class":263},[1498],{"type":172,"value":266},{"type":167,"tag":246,"props":1500,"children":1501},{"class":269},[1502],{"type":172,"value":272},{"type":167,"tag":246,"props":1504,"children":1505},{"class":275},[1506],{"type":172,"value":278},{"type":167,"tag":246,"props":1508,"children":1509},{"class":281},[1510],{"type":172,"value":272},{"type":167,"tag":246,"props":1512,"children":1513},{"class":286},[1514],{"type":172,"value":1515},"defineNuxtConfig",{"type":167,"tag":246,"props":1517,"children":1518},{"class":281},[1519],{"type":172,"value":272},{"type":167,"tag":246,"props":1521,"children":1522},{"class":275},[1523],{"type":172,"value":298},{"type":167,"tag":246,"props":1525,"children":1526},{"class":269},[1527],{"type":172,"value":272},{"type":167,"tag":246,"props":1529,"children":1530},{"class":263},[1531],{"type":172,"value":307},{"type":167,"tag":246,"props":1533,"children":1534},{"class":269},[1535],{"type":172,"value":272},{"type":167,"tag":246,"props":1537,"children":1538},{"class":314},[1539],{"type":172,"value":317},{"type":167,"tag":246,"props":1541,"children":1542},{"class":320},[1543],{"type":172,"value":854},{"type":167,"tag":246,"props":1545,"children":1546},{"class":314},[1547],{"type":172,"value":328},{"type":167,"tag":246,"props":1549,"children":1550},{"class":248,"line":338},[1551,1555,1559,1564,1568,1572,1576,1580,1584],{"type":167,"tag":246,"props":1552,"children":1553},{"class":263},[1554],{"type":172,"value":266},{"type":167,"tag":246,"props":1556,"children":1557},{"class":269},[1558],{"type":172,"value":272},{"type":167,"tag":246,"props":1560,"children":1561},{"class":286},[1562],{"type":172,"value":1563},"MyModule",{"type":167,"tag":246,"props":1565,"children":1566},{"class":269},[1567],{"type":172,"value":272},{"type":167,"tag":246,"props":1569,"children":1570},{"class":263},[1571],{"type":172,"value":307},{"type":167,"tag":246,"props":1573,"children":1574},{"class":269},[1575],{"type":172,"value":272},{"type":167,"tag":246,"props":1577,"children":1578},{"class":314},[1579],{"type":172,"value":317},{"type":167,"tag":246,"props":1581,"children":1582},{"class":320},[1583],{"type":172,"value":1221},{"type":167,"tag":246,"props":1585,"children":1586},{"class":314},[1587],{"type":172,"value":328},{"type":167,"tag":246,"props":1589,"children":1590},{"class":248,"line":375},[1591],{"type":167,"tag":246,"props":1592,"children":1593},{},[],{"type":167,"tag":246,"props":1595,"children":1596},{"class":248,"line":417},[1597,1601,1605,1609,1613,1617,1621],{"type":167,"tag":246,"props":1598,"children":1599},{"class":263},[1600],{"type":172,"value":344},{"type":167,"tag":246,"props":1602,"children":1603},{"class":269},[1604],{"type":172,"value":272},{"type":167,"tag":246,"props":1606,"children":1607},{"class":263},[1608],{"type":172,"value":353},{"type":167,"tag":246,"props":1610,"children":1611},{"class":269},[1612],{"type":172,"value":272},{"type":167,"tag":246,"props":1614,"children":1615},{"class":360},[1616],{"type":172,"value":1515},{"type":167,"tag":246,"props":1618,"children":1619},{"class":269},[1620],{"type":172,"value":367},{"type":167,"tag":246,"props":1622,"children":1623},{"class":275},[1624],{"type":172,"value":372},{"type":167,"tag":246,"props":1626,"children":1627},{"class":248,"line":460},[1628,1632,1637,1641],{"type":167,"tag":246,"props":1629,"children":1630},{"class":269},[1631],{"type":172,"value":381},{"type":167,"tag":246,"props":1633,"children":1634},{"class":384},[1635],{"type":172,"value":1636},"modules",{"type":167,"tag":246,"props":1638,"children":1639},{"class":389},[1640],{"type":172,"value":392},{"type":167,"tag":246,"props":1642,"children":1643},{"class":269},[1644],{"type":172,"value":1645}," [\n",{"type":167,"tag":246,"props":1647,"children":1648},{"class":248,"line":514},[1649,1653],{"type":167,"tag":246,"props":1650,"children":1651},{"class":275},[1652],{"type":172,"value":520},{"type":167,"tag":246,"props":1654,"children":1655},{"class":253},[1656],{"type":172,"value":1657},"// always put it before @nuxt/content because the transformers \n",{"type":167,"tag":246,"props":1659,"children":1660},{"class":248,"line":536},[1661,1665],{"type":167,"tag":246,"props":1662,"children":1663},{"class":275},[1664],{"type":172,"value":520},{"type":167,"tag":246,"props":1666,"children":1667},{"class":253},[1668],{"type":172,"value":1669},"// needs to be loaded before transformation occurs\n",{"type":167,"tag":246,"props":1671,"children":1672},{"class":248,"line":553},[1673,1677,1681],{"type":167,"tag":246,"props":1674,"children":1675},{"class":269},[1676],{"type":172,"value":520},{"type":167,"tag":246,"props":1678,"children":1679},{"class":286},[1680],{"type":172,"value":1563},{"type":167,"tag":246,"props":1682,"children":1683},{"class":275},[1684],{"type":172,"value":414},{"type":167,"tag":246,"props":1686,"children":1687},{"class":248,"line":686},[1688,1692,1696,1701],{"type":167,"tag":246,"props":1689,"children":1690},{"class":269},[1691],{"type":172,"value":520},{"type":167,"tag":246,"props":1693,"children":1694},{"class":314},[1695],{"type":172,"value":317},{"type":167,"tag":246,"props":1697,"children":1698},{"class":320},[1699],{"type":172,"value":1700},"@nuxt/content",{"type":167,"tag":246,"props":1702,"children":1703},{"class":314},[1704],{"type":172,"value":328},{"type":167,"tag":246,"props":1706,"children":1707},{"class":248,"line":699},[1708],{"type":167,"tag":246,"props":1709,"children":1710},{"class":269},[1711],{"type":172,"value":1712},"  ]\n",{"type":167,"tag":246,"props":1714,"children":1715},{"class":248,"line":711},[1716,1720],{"type":167,"tag":246,"props":1717,"children":1718},{"class":275},[1719],{"type":172,"value":298},{"type":167,"tag":246,"props":1721,"children":1722},{"class":269},[1723],{"type":172,"value":503},{"type":167,"tag":168,"props":1725,"children":1726},{},[1727,1729,1733],{"type":172,"value":1728},"That's it. You can create ",{"type":167,"tag":197,"props":1730,"children":1731},{},[1732],{"type":172,"value":444},{"type":172,"value":1734}," files in content directory. Checkout transformer example.",{"type":167,"tag":1736,"props":1737,"children":1738},"style",{},[1739],{"type":172,"value":1740},".solarized-light_dark-plus_material-theme-lighter{color:#657B83;background:#FDF6E3;}.dark .solarized-light_dark-plus_material-theme-lighter{color:#D4D4D4;background:#1E1E1E;}.light .solarized-light_dark-plus_material-theme-lighter{color:#90A4AE;background:#FAFAFA;}.ct-798230{color:#93A1A1;font-style:italic;}.dark .ct-798230{color:#6A9955;font-style:unset;}.light .ct-798230{color:#90A4AE;font-style:italic;}.ct-702290{color:#859900;}.dark .ct-702290{color:#C586C0;}.light .ct-702290{color:#39ADB5;font-style:italic;}.ct-916772{color:#657B83;}.dark .ct-916772{color:#D4D4D4;}.light .ct-916772{color:#90A4AE;}.ct-001462{color:#657B83;}.dark .ct-001462{color:#D4D4D4;}.light .ct-001462{color:#39ADB5;}.ct-589478{color:#657B83;}.dark .ct-589478{color:#D4D4D4;}.light .ct-589478{color:#E53935;}.ct-604459{color:#268BD2;}.dark .ct-604459{color:#9CDCFE;}.light .ct-604459{color:#90A4AE;}.ct-659886{color:#2AA198;}.dark .ct-659886{color:#CE9178;}.light .ct-659886{color:#39ADB5;}.ct-084644{color:#2AA198;}.dark .ct-084644{color:#CE9178;}.light .ct-084644{color:#91B859;}.ct-187170{color:#268BD2;}.dark .ct-187170{color:#DCDCAA;}.light .ct-187170{color:#6182B8;}.ct-340802{color:#657B83;}.dark .ct-340802{color:#9CDCFE;}.light .ct-340802{color:#E53935;}.ct-931742{color:#657B83;}.dark .ct-931742{color:#9CDCFE;}.light .ct-931742{color:#39ADB5;}.ct-033771{color:#268BD2;}.dark .ct-033771{color:#DCDCAA;}.light .ct-033771{color:#E53935;}.ct-120243{color:#657B83;}.dark .ct-120243{color:#9CDCFE;}.light .ct-120243{color:#90A4AE;font-style:italic;}.ct-611752{color:#CB4B16;}.dark .ct-611752{color:#D7BA7D;}.light .ct-611752{color:#90A4AE;}.ct-696419{color:#586E75;font-weight:bold;}.dark .ct-696419{color:#569CD6;font-weight:unset;}.light .ct-696419{color:#9C3EDA;font-weight:unset;}.ct-773118{color:#859900;}.dark .ct-773118{color:#D4D4D4;}.light .ct-773118{color:#39ADB5;}",{"title":161,"searchDepth":259,"depth":259,"links":1742},[],"markdown","content:6.recipes:2.transformers.md","content","6.recipes/2.transformers.md","md",[1749,2853],{"_path":102,"_dir":159,"_draft":160,"_partial":160,"_locale":161,"title":101,"description":1750,"body":1751,"_type":1743,"_id":2851,"_source":1745,"_file":2852,"_extension":1747},"Nuxt Content exposes hooks to allow you to modify the content before it is parsed and after it is parsed.",{"type":164,"children":1752,"toc":2847},[1753,1758,1778,1790,1878,1888,1893,1902,1915,1923,1928,2275,2284,2289,2298,2310,2317,2322,2842],{"type":167,"tag":168,"props":1754,"children":1755},{},[1756],{"type":172,"value":1757},"The module adds some hooks you can use:",{"type":167,"tag":168,"props":1759,"children":1760},{},[1761,1766,1768,1777],{"type":167,"tag":197,"props":1762,"children":1763},{},[1764],{"type":172,"value":1765},"content:file:*",{"type":172,"value":1767}," hooks are available in nitro runtime, in order to use them you need to create a custom ",{"type":167,"tag":1769,"props":1770,"children":1774},"a",{"href":1771,"rel":1772},"https://nitro.unjs.io/guide/plugins",[1773],"nofollow",[1775],{"type":172,"value":1776},"nitro plugin",{"type":172,"value":580},{"type":167,"tag":168,"props":1779,"children":1780},{},[1781,1783,1788],{"type":172,"value":1782},"Create a plugin in the ",{"type":167,"tag":197,"props":1784,"children":1785},{},[1786],{"type":172,"value":1787},"server/plugins/",{"type":172,"value":1789}," directory",{"type":167,"tag":235,"props":1791,"children":1794},{"className":237,"code":1792,"filename":1793,"language":240,"meta":161},"export default defineNitroPlugin((nitroApp) => {\n  // ...\n})\n","server/plugins/content.ts",[1795],{"type":167,"tag":197,"props":1796,"children":1797},{"__ignoreMap":161},[1798,1855,1867],{"type":167,"tag":246,"props":1799,"children":1800},{"class":248,"line":249},[1801,1805,1809,1813,1817,1822,1826,1830,1835,1839,1843,1847,1851],{"type":167,"tag":246,"props":1802,"children":1803},{"class":263},[1804],{"type":172,"value":344},{"type":167,"tag":246,"props":1806,"children":1807},{"class":269},[1808],{"type":172,"value":272},{"type":167,"tag":246,"props":1810,"children":1811},{"class":263},[1812],{"type":172,"value":353},{"type":167,"tag":246,"props":1814,"children":1815},{"class":269},[1816],{"type":172,"value":272},{"type":167,"tag":246,"props":1818,"children":1819},{"class":360},[1820],{"type":172,"value":1821},"defineNitroPlugin",{"type":167,"tag":246,"props":1823,"children":1824},{"class":269},[1825],{"type":172,"value":367},{"type":167,"tag":246,"props":1827,"children":1828},{"class":275},[1829],{"type":172,"value":367},{"type":167,"tag":246,"props":1831,"children":1832},{"class":481},[1833],{"type":172,"value":1834},"nitroApp",{"type":167,"tag":246,"props":1836,"children":1837},{"class":275},[1838],{"type":172,"value":503},{"type":167,"tag":246,"props":1840,"children":1841},{"class":269},[1842],{"type":172,"value":272},{"type":167,"tag":246,"props":1844,"children":1845},{"class":645},[1846],{"type":172,"value":648},{"type":167,"tag":246,"props":1848,"children":1849},{"class":269},[1850],{"type":172,"value":272},{"type":167,"tag":246,"props":1852,"children":1853},{"class":275},[1854],{"type":172,"value":372},{"type":167,"tag":246,"props":1856,"children":1857},{"class":248,"line":259},[1858,1862],{"type":167,"tag":246,"props":1859,"children":1860},{"class":275},[1861],{"type":172,"value":381},{"type":167,"tag":246,"props":1863,"children":1864},{"class":253},[1865],{"type":172,"value":1866},"// ...\n",{"type":167,"tag":246,"props":1868,"children":1869},{"class":248,"line":331},[1870,1874],{"type":167,"tag":246,"props":1871,"children":1872},{"class":275},[1873],{"type":172,"value":298},{"type":167,"tag":246,"props":1875,"children":1876},{"class":269},[1877],{"type":172,"value":503},{"type":167,"tag":1879,"props":1880,"children":1882},"h2",{"id":1881},"contentfilebeforeparse",[1883],{"type":167,"tag":197,"props":1884,"children":1885},{},[1886],{"type":172,"value":1887},"content:file:beforeParse",{"type":167,"tag":168,"props":1889,"children":1890},{},[1891],{"type":172,"value":1892},"Allows you to modify the contents of a file before it is handled by the parsers.",{"type":167,"tag":168,"props":1894,"children":1895},{},[1896],{"type":167,"tag":1897,"props":1898,"children":1899},"strong",{},[1900],{"type":172,"value":1901},"Arguments:",{"type":167,"tag":190,"props":1903,"children":1904},{},[1905],{"type":167,"tag":184,"props":1906,"children":1907},{},[1908,1910],{"type":172,"value":1909},"file: ",{"type":167,"tag":197,"props":1911,"children":1912},{},[1913],{"type":172,"value":1914},"{ _id: string, body: string }",{"type":167,"tag":168,"props":1916,"children":1917},{},[1918],{"type":167,"tag":1897,"props":1919,"children":1920},{},[1921],{"type":172,"value":1922},"Example:",{"type":167,"tag":168,"props":1924,"children":1925},{},[1926],{"type":172,"value":1927},"Changing all occurrences of React to Vue in all Markdown files:",{"type":167,"tag":235,"props":1929,"children":1931},{"className":237,"code":1930,"filename":1793,"language":240,"meta":161},"export default defineNitroPlugin((nitroApp) => {\n  nitroApp.hooks.hook('content:file:beforeParse', (file) => {\n    if (file._id.endsWith('.md')) {\n      file.body = file.body.replace(/react/g, 'vue')\n    }\n  })\n})\n",[1932],{"type":167,"tag":197,"props":1933,"children":1934},{"__ignoreMap":161},[1935,1990,2071,2135,2238,2249,2264],{"type":167,"tag":246,"props":1936,"children":1937},{"class":248,"line":249},[1938,1942,1946,1950,1954,1958,1962,1966,1970,1974,1978,1982,1986],{"type":167,"tag":246,"props":1939,"children":1940},{"class":263},[1941],{"type":172,"value":344},{"type":167,"tag":246,"props":1943,"children":1944},{"class":269},[1945],{"type":172,"value":272},{"type":167,"tag":246,"props":1947,"children":1948},{"class":263},[1949],{"type":172,"value":353},{"type":167,"tag":246,"props":1951,"children":1952},{"class":269},[1953],{"type":172,"value":272},{"type":167,"tag":246,"props":1955,"children":1956},{"class":360},[1957],{"type":172,"value":1821},{"type":167,"tag":246,"props":1959,"children":1960},{"class":269},[1961],{"type":172,"value":367},{"type":167,"tag":246,"props":1963,"children":1964},{"class":275},[1965],{"type":172,"value":367},{"type":167,"tag":246,"props":1967,"children":1968},{"class":481},[1969],{"type":172,"value":1834},{"type":167,"tag":246,"props":1971,"children":1972},{"class":275},[1973],{"type":172,"value":503},{"type":167,"tag":246,"props":1975,"children":1976},{"class":269},[1977],{"type":172,"value":272},{"type":167,"tag":246,"props":1979,"children":1980},{"class":645},[1981],{"type":172,"value":648},{"type":167,"tag":246,"props":1983,"children":1984},{"class":269},[1985],{"type":172,"value":272},{"type":167,"tag":246,"props":1987,"children":1988},{"class":275},[1989],{"type":172,"value":372},{"type":167,"tag":246,"props":1991,"children":1992},{"class":248,"line":259},[1993,1997,2001,2005,2010,2014,2018,2022,2026,2030,2034,2038,2042,2046,2051,2055,2059,2063,2067],{"type":167,"tag":246,"props":1994,"children":1995},{"class":281},[1996],{"type":172,"value":381},{"type":167,"tag":246,"props":1998,"children":1999},{"class":286},[2000],{"type":172,"value":1834},{"type":167,"tag":246,"props":2002,"children":2003},{"class":275},[2004],{"type":172,"value":580},{"type":167,"tag":246,"props":2006,"children":2007},{"class":286},[2008],{"type":172,"value":2009},"hooks",{"type":167,"tag":246,"props":2011,"children":2012},{"class":275},[2013],{"type":172,"value":580},{"type":167,"tag":246,"props":2015,"children":2016},{"class":360},[2017],{"type":172,"value":1262},{"type":167,"tag":246,"props":2019,"children":2020},{"class":281},[2021],{"type":172,"value":367},{"type":167,"tag":246,"props":2023,"children":2024},{"class":314},[2025],{"type":172,"value":317},{"type":167,"tag":246,"props":2027,"children":2028},{"class":320},[2029],{"type":172,"value":1887},{"type":167,"tag":246,"props":2031,"children":2032},{"class":314},[2033],{"type":172,"value":317},{"type":167,"tag":246,"props":2035,"children":2036},{"class":275},[2037],{"type":172,"value":489},{"type":167,"tag":246,"props":2039,"children":2040},{"class":281},[2041],{"type":172,"value":272},{"type":167,"tag":246,"props":2043,"children":2044},{"class":275},[2045],{"type":172,"value":367},{"type":167,"tag":246,"props":2047,"children":2048},{"class":481},[2049],{"type":172,"value":2050},"file",{"type":167,"tag":246,"props":2052,"children":2053},{"class":275},[2054],{"type":172,"value":503},{"type":167,"tag":246,"props":2056,"children":2057},{"class":281},[2058],{"type":172,"value":272},{"type":167,"tag":246,"props":2060,"children":2061},{"class":645},[2062],{"type":172,"value":648},{"type":167,"tag":246,"props":2064,"children":2065},{"class":281},[2066],{"type":172,"value":272},{"type":167,"tag":246,"props":2068,"children":2069},{"class":275},[2070],{"type":172,"value":372},{"type":167,"tag":246,"props":2072,"children":2073},{"class":248,"line":331},[2074,2078,2083,2088,2092,2096,2100,2104,2109,2113,2117,2122,2126,2131],{"type":167,"tag":246,"props":2075,"children":2076},{"class":281},[2077],{"type":172,"value":520},{"type":167,"tag":246,"props":2079,"children":2080},{"class":263},[2081],{"type":172,"value":2082},"if",{"type":167,"tag":246,"props":2084,"children":2085},{"class":281},[2086],{"type":172,"value":2087}," (",{"type":167,"tag":246,"props":2089,"children":2090},{"class":286},[2091],{"type":172,"value":2050},{"type":167,"tag":246,"props":2093,"children":2094},{"class":275},[2095],{"type":172,"value":580},{"type":167,"tag":246,"props":2097,"children":2098},{"class":286},[2099],{"type":172,"value":484},{"type":167,"tag":246,"props":2101,"children":2102},{"class":275},[2103],{"type":172,"value":580},{"type":167,"tag":246,"props":2105,"children":2106},{"class":360},[2107],{"type":172,"value":2108},"endsWith",{"type":167,"tag":246,"props":2110,"children":2111},{"class":281},[2112],{"type":172,"value":367},{"type":167,"tag":246,"props":2114,"children":2115},{"class":314},[2116],{"type":172,"value":317},{"type":167,"tag":246,"props":2118,"children":2119},{"class":320},[2120],{"type":172,"value":2121},".md",{"type":167,"tag":246,"props":2123,"children":2124},{"class":314},[2125],{"type":172,"value":317},{"type":167,"tag":246,"props":2127,"children":2128},{"class":281},[2129],{"type":172,"value":2130},")) ",{"type":167,"tag":246,"props":2132,"children":2133},{"class":275},[2134],{"type":172,"value":372},{"type":167,"tag":246,"props":2136,"children":2137},{"class":248,"line":338},[2138,2142,2146,2150,2154,2158,2162,2166,2170,2174,2178,2182,2187,2191,2197,2203,2207,2213,2217,2221,2225,2230,2234],{"type":167,"tag":246,"props":2139,"children":2140},{"class":281},[2141],{"type":172,"value":542},{"type":167,"tag":246,"props":2143,"children":2144},{"class":286},[2145],{"type":172,"value":2050},{"type":167,"tag":246,"props":2147,"children":2148},{"class":275},[2149],{"type":172,"value":580},{"type":167,"tag":246,"props":2151,"children":2152},{"class":286},[2153],{"type":172,"value":563},{"type":167,"tag":246,"props":2155,"children":2156},{"class":281},[2157],{"type":172,"value":272},{"type":167,"tag":246,"props":2159,"children":2160},{"class":990},[2161],{"type":172,"value":993},{"type":167,"tag":246,"props":2163,"children":2164},{"class":281},[2165],{"type":172,"value":272},{"type":167,"tag":246,"props":2167,"children":2168},{"class":286},[2169],{"type":172,"value":2050},{"type":167,"tag":246,"props":2171,"children":2172},{"class":275},[2173],{"type":172,"value":580},{"type":167,"tag":246,"props":2175,"children":2176},{"class":286},[2177],{"type":172,"value":563},{"type":167,"tag":246,"props":2179,"children":2180},{"class":275},[2181],{"type":172,"value":580},{"type":167,"tag":246,"props":2183,"children":2184},{"class":360},[2185],{"type":172,"value":2186},"replace",{"type":167,"tag":246,"props":2188,"children":2189},{"class":281},[2190],{"type":172,"value":367},{"type":167,"tag":246,"props":2192,"children":2194},{"class":2193},"ct-262202",[2195],{"type":172,"value":2196},"/",{"type":167,"tag":246,"props":2198,"children":2200},{"class":2199},"ct-313040",[2201],{"type":172,"value":2202},"react",{"type":167,"tag":246,"props":2204,"children":2205},{"class":2193},[2206],{"type":172,"value":2196},{"type":167,"tag":246,"props":2208,"children":2210},{"class":2209},"ct-834901",[2211],{"type":172,"value":2212},"g",{"type":167,"tag":246,"props":2214,"children":2215},{"class":275},[2216],{"type":172,"value":489},{"type":167,"tag":246,"props":2218,"children":2219},{"class":281},[2220],{"type":172,"value":272},{"type":167,"tag":246,"props":2222,"children":2223},{"class":314},[2224],{"type":172,"value":317},{"type":167,"tag":246,"props":2226,"children":2227},{"class":320},[2228],{"type":172,"value":2229},"vue",{"type":167,"tag":246,"props":2231,"children":2232},{"class":314},[2233],{"type":172,"value":317},{"type":167,"tag":246,"props":2235,"children":2236},{"class":281},[2237],{"type":172,"value":1389},{"type":167,"tag":246,"props":2239,"children":2240},{"class":248,"line":375},[2241,2245],{"type":167,"tag":246,"props":2242,"children":2243},{"class":281},[2244],{"type":172,"value":520},{"type":167,"tag":246,"props":2246,"children":2247},{"class":275},[2248],{"type":172,"value":696},{"type":167,"tag":246,"props":2250,"children":2251},{"class":248,"line":417},[2252,2256,2260],{"type":167,"tag":246,"props":2253,"children":2254},{"class":281},[2255],{"type":172,"value":381},{"type":167,"tag":246,"props":2257,"children":2258},{"class":275},[2259],{"type":172,"value":298},{"type":167,"tag":246,"props":2261,"children":2262},{"class":281},[2263],{"type":172,"value":1389},{"type":167,"tag":246,"props":2265,"children":2266},{"class":248,"line":460},[2267,2271],{"type":167,"tag":246,"props":2268,"children":2269},{"class":275},[2270],{"type":172,"value":298},{"type":167,"tag":246,"props":2272,"children":2273},{"class":269},[2274],{"type":172,"value":503},{"type":167,"tag":1879,"props":2276,"children":2278},{"id":2277},"contentfileafterparse",[2279],{"type":167,"tag":197,"props":2280,"children":2281},{},[2282],{"type":172,"value":2283},"content:file:afterParse",{"type":167,"tag":168,"props":2285,"children":2286},{},[2287],{"type":172,"value":2288},"Allows you to modify a document after being parsed by parsers.",{"type":167,"tag":168,"props":2290,"children":2291},{},[2292,2297],{"type":167,"tag":1897,"props":2293,"children":2294},{},[2295],{"type":172,"value":2296},"Arguments",{"type":172,"value":392},{"type":167,"tag":190,"props":2299,"children":2300},{},[2301],{"type":167,"tag":184,"props":2302,"children":2303},{},[2304,2305],{"type":172,"value":1909},{"type":167,"tag":197,"props":2306,"children":2307},{},[2308],{"type":172,"value":2309},"{ _id: string, body: any }",{"type":167,"tag":168,"props":2311,"children":2312},{},[2313],{"type":167,"tag":1897,"props":2314,"children":2315},{},[2316],{"type":172,"value":1922},{"type":167,"tag":168,"props":2318,"children":2319},{},[2320],{"type":172,"value":2321},"Using content's first picture as cover image.",{"type":167,"tag":235,"props":2323,"children":2325},{"className":237,"code":2324,"filename":1793,"language":240,"meta":161},"import { visit } from 'unist-util-visit'\n\nexport default defineNitroPlugin((nitroApp) => {\n  nitroApp.hooks.hook('content:file:afterParse', (file) => {\n    if (file._id.endsWith('.md')) {\n      visit(file.body, (n: any) => n.tag === 'img', (node) => {\n        file.coverImage = node.props.src\n      })\n    }\n  })\n})\n\n",[2326],{"type":167,"tag":197,"props":2327,"children":2328},{"__ignoreMap":161},[2329,2386,2392,2447,2526,2585,2735,2790,2805,2816,2831],{"type":167,"tag":246,"props":2330,"children":2331},{"class":248,"line":249},[2332,2336,2340,2344,2348,2353,2357,2361,2365,2369,2373,2377,2382],{"type":167,"tag":246,"props":2333,"children":2334},{"class":263},[2335],{"type":172,"value":266},{"type":167,"tag":246,"props":2337,"children":2338},{"class":269},[2339],{"type":172,"value":272},{"type":167,"tag":246,"props":2341,"children":2342},{"class":275},[2343],{"type":172,"value":278},{"type":167,"tag":246,"props":2345,"children":2346},{"class":281},[2347],{"type":172,"value":272},{"type":167,"tag":246,"props":2349,"children":2350},{"class":286},[2351],{"type":172,"value":2352},"visit",{"type":167,"tag":246,"props":2354,"children":2355},{"class":281},[2356],{"type":172,"value":272},{"type":167,"tag":246,"props":2358,"children":2359},{"class":275},[2360],{"type":172,"value":298},{"type":167,"tag":246,"props":2362,"children":2363},{"class":269},[2364],{"type":172,"value":272},{"type":167,"tag":246,"props":2366,"children":2367},{"class":263},[2368],{"type":172,"value":307},{"type":167,"tag":246,"props":2370,"children":2371},{"class":269},[2372],{"type":172,"value":272},{"type":167,"tag":246,"props":2374,"children":2375},{"class":314},[2376],{"type":172,"value":317},{"type":167,"tag":246,"props":2378,"children":2379},{"class":320},[2380],{"type":172,"value":2381},"unist-util-visit",{"type":167,"tag":246,"props":2383,"children":2384},{"class":314},[2385],{"type":172,"value":328},{"type":167,"tag":246,"props":2387,"children":2388},{"class":248,"line":259},[2389],{"type":167,"tag":246,"props":2390,"children":2391},{},[],{"type":167,"tag":246,"props":2393,"children":2394},{"class":248,"line":331},[2395,2399,2403,2407,2411,2415,2419,2423,2427,2431,2435,2439,2443],{"type":167,"tag":246,"props":2396,"children":2397},{"class":263},[2398],{"type":172,"value":344},{"type":167,"tag":246,"props":2400,"children":2401},{"class":269},[2402],{"type":172,"value":272},{"type":167,"tag":246,"props":2404,"children":2405},{"class":263},[2406],{"type":172,"value":353},{"type":167,"tag":246,"props":2408,"children":2409},{"class":269},[2410],{"type":172,"value":272},{"type":167,"tag":246,"props":2412,"children":2413},{"class":360},[2414],{"type":172,"value":1821},{"type":167,"tag":246,"props":2416,"children":2417},{"class":269},[2418],{"type":172,"value":367},{"type":167,"tag":246,"props":2420,"children":2421},{"class":275},[2422],{"type":172,"value":367},{"type":167,"tag":246,"props":2424,"children":2425},{"class":481},[2426],{"type":172,"value":1834},{"type":167,"tag":246,"props":2428,"children":2429},{"class":275},[2430],{"type":172,"value":503},{"type":167,"tag":246,"props":2432,"children":2433},{"class":269},[2434],{"type":172,"value":272},{"type":167,"tag":246,"props":2436,"children":2437},{"class":645},[2438],{"type":172,"value":648},{"type":167,"tag":246,"props":2440,"children":2441},{"class":269},[2442],{"type":172,"value":272},{"type":167,"tag":246,"props":2444,"children":2445},{"class":275},[2446],{"type":172,"value":372},{"type":167,"tag":246,"props":2448,"children":2449},{"class":248,"line":338},[2450,2454,2458,2462,2466,2470,2474,2478,2482,2486,2490,2494,2498,2502,2506,2510,2514,2518,2522],{"type":167,"tag":246,"props":2451,"children":2452},{"class":281},[2453],{"type":172,"value":381},{"type":167,"tag":246,"props":2455,"children":2456},{"class":286},[2457],{"type":172,"value":1834},{"type":167,"tag":246,"props":2459,"children":2460},{"class":275},[2461],{"type":172,"value":580},{"type":167,"tag":246,"props":2463,"children":2464},{"class":286},[2465],{"type":172,"value":2009},{"type":167,"tag":246,"props":2467,"children":2468},{"class":275},[2469],{"type":172,"value":580},{"type":167,"tag":246,"props":2471,"children":2472},{"class":360},[2473],{"type":172,"value":1262},{"type":167,"tag":246,"props":2475,"children":2476},{"class":281},[2477],{"type":172,"value":367},{"type":167,"tag":246,"props":2479,"children":2480},{"class":314},[2481],{"type":172,"value":317},{"type":167,"tag":246,"props":2483,"children":2484},{"class":320},[2485],{"type":172,"value":2283},{"type":167,"tag":246,"props":2487,"children":2488},{"class":314},[2489],{"type":172,"value":317},{"type":167,"tag":246,"props":2491,"children":2492},{"class":275},[2493],{"type":172,"value":489},{"type":167,"tag":246,"props":2495,"children":2496},{"class":281},[2497],{"type":172,"value":272},{"type":167,"tag":246,"props":2499,"children":2500},{"class":275},[2501],{"type":172,"value":367},{"type":167,"tag":246,"props":2503,"children":2504},{"class":481},[2505],{"type":172,"value":2050},{"type":167,"tag":246,"props":2507,"children":2508},{"class":275},[2509],{"type":172,"value":503},{"type":167,"tag":246,"props":2511,"children":2512},{"class":281},[2513],{"type":172,"value":272},{"type":167,"tag":246,"props":2515,"children":2516},{"class":645},[2517],{"type":172,"value":648},{"type":167,"tag":246,"props":2519,"children":2520},{"class":281},[2521],{"type":172,"value":272},{"type":167,"tag":246,"props":2523,"children":2524},{"class":275},[2525],{"type":172,"value":372},{"type":167,"tag":246,"props":2527,"children":2528},{"class":248,"line":375},[2529,2533,2537,2541,2545,2549,2553,2557,2561,2565,2569,2573,2577,2581],{"type":167,"tag":246,"props":2530,"children":2531},{"class":281},[2532],{"type":172,"value":520},{"type":167,"tag":246,"props":2534,"children":2535},{"class":263},[2536],{"type":172,"value":2082},{"type":167,"tag":246,"props":2538,"children":2539},{"class":281},[2540],{"type":172,"value":2087},{"type":167,"tag":246,"props":2542,"children":2543},{"class":286},[2544],{"type":172,"value":2050},{"type":167,"tag":246,"props":2546,"children":2547},{"class":275},[2548],{"type":172,"value":580},{"type":167,"tag":246,"props":2550,"children":2551},{"class":286},[2552],{"type":172,"value":484},{"type":167,"tag":246,"props":2554,"children":2555},{"class":275},[2556],{"type":172,"value":580},{"type":167,"tag":246,"props":2558,"children":2559},{"class":360},[2560],{"type":172,"value":2108},{"type":167,"tag":246,"props":2562,"children":2563},{"class":281},[2564],{"type":172,"value":367},{"type":167,"tag":246,"props":2566,"children":2567},{"class":314},[2568],{"type":172,"value":317},{"type":167,"tag":246,"props":2570,"children":2571},{"class":320},[2572],{"type":172,"value":2121},{"type":167,"tag":246,"props":2574,"children":2575},{"class":314},[2576],{"type":172,"value":317},{"type":167,"tag":246,"props":2578,"children":2579},{"class":281},[2580],{"type":172,"value":2130},{"type":167,"tag":246,"props":2582,"children":2583},{"class":275},[2584],{"type":172,"value":372},{"type":167,"tag":246,"props":2586,"children":2587},{"class":248,"line":417},[2588,2592,2596,2600,2604,2608,2612,2616,2620,2624,2629,2633,2637,2643,2647,2651,2655,2659,2663,2667,2672,2676,2681,2685,2689,2694,2698,2702,2706,2710,2715,2719,2723,2727,2731],{"type":167,"tag":246,"props":2589,"children":2590},{"class":281},[2591],{"type":172,"value":542},{"type":167,"tag":246,"props":2593,"children":2594},{"class":360},[2595],{"type":172,"value":2352},{"type":167,"tag":246,"props":2597,"children":2598},{"class":281},[2599],{"type":172,"value":367},{"type":167,"tag":246,"props":2601,"children":2602},{"class":286},[2603],{"type":172,"value":2050},{"type":167,"tag":246,"props":2605,"children":2606},{"class":275},[2607],{"type":172,"value":580},{"type":167,"tag":246,"props":2609,"children":2610},{"class":286},[2611],{"type":172,"value":563},{"type":167,"tag":246,"props":2613,"children":2614},{"class":275},[2615],{"type":172,"value":489},{"type":167,"tag":246,"props":2617,"children":2618},{"class":281},[2619],{"type":172,"value":272},{"type":167,"tag":246,"props":2621,"children":2622},{"class":275},[2623],{"type":172,"value":367},{"type":167,"tag":246,"props":2625,"children":2626},{"class":481},[2627],{"type":172,"value":2628},"n",{"type":167,"tag":246,"props":2630,"children":2631},{"class":990},[2632],{"type":172,"value":392},{"type":167,"tag":246,"props":2634,"children":2635},{"class":281},[2636],{"type":172,"value":272},{"type":167,"tag":246,"props":2638,"children":2640},{"class":2639},"ct-874491",[2641],{"type":172,"value":2642},"any",{"type":167,"tag":246,"props":2644,"children":2645},{"class":275},[2646],{"type":172,"value":503},{"type":167,"tag":246,"props":2648,"children":2649},{"class":281},[2650],{"type":172,"value":272},{"type":167,"tag":246,"props":2652,"children":2653},{"class":645},[2654],{"type":172,"value":648},{"type":167,"tag":246,"props":2656,"children":2657},{"class":281},[2658],{"type":172,"value":272},{"type":167,"tag":246,"props":2660,"children":2661},{"class":286},[2662],{"type":172,"value":2628},{"type":167,"tag":246,"props":2664,"children":2665},{"class":275},[2666],{"type":172,"value":580},{"type":167,"tag":246,"props":2668,"children":2669},{"class":286},[2670],{"type":172,"value":2671},"tag",{"type":167,"tag":246,"props":2673,"children":2674},{"class":281},[2675],{"type":172,"value":272},{"type":167,"tag":246,"props":2677,"children":2678},{"class":990},[2679],{"type":172,"value":2680},"===",{"type":167,"tag":246,"props":2682,"children":2683},{"class":281},[2684],{"type":172,"value":272},{"type":167,"tag":246,"props":2686,"children":2687},{"class":314},[2688],{"type":172,"value":317},{"type":167,"tag":246,"props":2690,"children":2691},{"class":320},[2692],{"type":172,"value":2693},"img",{"type":167,"tag":246,"props":2695,"children":2696},{"class":314},[2697],{"type":172,"value":317},{"type":167,"tag":246,"props":2699,"children":2700},{"class":275},[2701],{"type":172,"value":489},{"type":167,"tag":246,"props":2703,"children":2704},{"class":281},[2705],{"type":172,"value":272},{"type":167,"tag":246,"props":2707,"children":2708},{"class":275},[2709],{"type":172,"value":367},{"type":167,"tag":246,"props":2711,"children":2712},{"class":481},[2713],{"type":172,"value":2714},"node",{"type":167,"tag":246,"props":2716,"children":2717},{"class":275},[2718],{"type":172,"value":503},{"type":167,"tag":246,"props":2720,"children":2721},{"class":281},[2722],{"type":172,"value":272},{"type":167,"tag":246,"props":2724,"children":2725},{"class":645},[2726],{"type":172,"value":648},{"type":167,"tag":246,"props":2728,"children":2729},{"class":281},[2730],{"type":172,"value":272},{"type":167,"tag":246,"props":2732,"children":2733},{"class":275},[2734],{"type":172,"value":372},{"type":167,"tag":246,"props":2736,"children":2737},{"class":248,"line":460},[2738,2743,2747,2751,2756,2760,2764,2768,2772,2776,2781,2785],{"type":167,"tag":246,"props":2739,"children":2740},{"class":281},[2741],{"type":172,"value":2742},"        ",{"type":167,"tag":246,"props":2744,"children":2745},{"class":286},[2746],{"type":172,"value":2050},{"type":167,"tag":246,"props":2748,"children":2749},{"class":275},[2750],{"type":172,"value":580},{"type":167,"tag":246,"props":2752,"children":2753},{"class":286},[2754],{"type":172,"value":2755},"coverImage",{"type":167,"tag":246,"props":2757,"children":2758},{"class":281},[2759],{"type":172,"value":272},{"type":167,"tag":246,"props":2761,"children":2762},{"class":990},[2763],{"type":172,"value":993},{"type":167,"tag":246,"props":2765,"children":2766},{"class":281},[2767],{"type":172,"value":272},{"type":167,"tag":246,"props":2769,"children":2770},{"class":286},[2771],{"type":172,"value":2714},{"type":167,"tag":246,"props":2773,"children":2774},{"class":275},[2775],{"type":172,"value":580},{"type":167,"tag":246,"props":2777,"children":2778},{"class":286},[2779],{"type":172,"value":2780},"props",{"type":167,"tag":246,"props":2782,"children":2783},{"class":275},[2784],{"type":172,"value":580},{"type":167,"tag":246,"props":2786,"children":2787},{"class":286},[2788],{"type":172,"value":2789},"src\n",{"type":167,"tag":246,"props":2791,"children":2792},{"class":248,"line":514},[2793,2797,2801],{"type":167,"tag":246,"props":2794,"children":2795},{"class":281},[2796],{"type":172,"value":542},{"type":167,"tag":246,"props":2798,"children":2799},{"class":275},[2800],{"type":172,"value":298},{"type":167,"tag":246,"props":2802,"children":2803},{"class":281},[2804],{"type":172,"value":1389},{"type":167,"tag":246,"props":2806,"children":2807},{"class":248,"line":536},[2808,2812],{"type":167,"tag":246,"props":2809,"children":2810},{"class":281},[2811],{"type":172,"value":520},{"type":167,"tag":246,"props":2813,"children":2814},{"class":275},[2815],{"type":172,"value":696},{"type":167,"tag":246,"props":2817,"children":2818},{"class":248,"line":553},[2819,2823,2827],{"type":167,"tag":246,"props":2820,"children":2821},{"class":281},[2822],{"type":172,"value":381},{"type":167,"tag":246,"props":2824,"children":2825},{"class":275},[2826],{"type":172,"value":298},{"type":167,"tag":246,"props":2828,"children":2829},{"class":281},[2830],{"type":172,"value":1389},{"type":167,"tag":246,"props":2832,"children":2833},{"class":248,"line":686},[2834,2838],{"type":167,"tag":246,"props":2835,"children":2836},{"class":275},[2837],{"type":172,"value":298},{"type":167,"tag":246,"props":2839,"children":2840},{"class":269},[2841],{"type":172,"value":503},{"type":167,"tag":1736,"props":2843,"children":2844},{},[2845],{"type":172,"value":2846},".solarized-light_dark-plus_material-theme-lighter{color:#657B83;background:#FDF6E3;}.dark .solarized-light_dark-plus_material-theme-lighter{color:#D4D4D4;background:#1E1E1E;}.light .solarized-light_dark-plus_material-theme-lighter{color:#90A4AE;background:#FAFAFA;}.ct-702290{color:#859900;}.dark .ct-702290{color:#C586C0;}.light .ct-702290{color:#39ADB5;font-style:italic;}.ct-916772{color:#657B83;}.dark .ct-916772{color:#D4D4D4;}.light .ct-916772{color:#90A4AE;}.ct-187170{color:#268BD2;}.dark .ct-187170{color:#DCDCAA;}.light .ct-187170{color:#6182B8;}.ct-001462{color:#657B83;}.dark .ct-001462{color:#D4D4D4;}.light .ct-001462{color:#39ADB5;}.ct-120243{color:#657B83;}.dark .ct-120243{color:#9CDCFE;}.light .ct-120243{color:#90A4AE;font-style:italic;}.ct-696419{color:#586E75;font-weight:bold;}.dark .ct-696419{color:#569CD6;font-weight:unset;}.light .ct-696419{color:#9C3EDA;font-weight:unset;}.ct-798230{color:#93A1A1;font-style:italic;}.dark .ct-798230{color:#6A9955;font-style:unset;}.light .ct-798230{color:#90A4AE;font-style:italic;}.ct-589478{color:#657B83;}.dark .ct-589478{color:#D4D4D4;}.light .ct-589478{color:#E53935;}.ct-604459{color:#268BD2;}.dark .ct-604459{color:#9CDCFE;}.light .ct-604459{color:#90A4AE;}.ct-659886{color:#2AA198;}.dark .ct-659886{color:#CE9178;}.light .ct-659886{color:#39ADB5;}.ct-084644{color:#2AA198;}.dark .ct-084644{color:#CE9178;}.light .ct-084644{color:#91B859;}.ct-773118{color:#859900;}.dark .ct-773118{color:#D4D4D4;}.light .ct-773118{color:#39ADB5;}.ct-262202{color:#DC322F;}.dark .ct-262202{color:#D16969;}.light .ct-262202{color:#39ADB5;}.ct-313040{color:#DC322F;}.dark .ct-313040{color:#D16969;}.light .ct-313040{color:#91B859;}.ct-834901{color:#859900;}.dark .ct-834901{color:#569CD6;}.light .ct-834901{color:#F76D47;}.ct-874491{color:#859900;}.dark .ct-874491{color:#4EC9B0;}.light .ct-874491{color:#E2931D;}",{"title":161,"searchDepth":259,"depth":259,"links":2848},[2849,2850],{"id":1881,"depth":259,"text":1887},{"id":2277,"depth":259,"text":2283},"content:6.recipes:1.hooks.md","6.recipes/1.hooks.md",{"_path":108,"_dir":159,"_draft":160,"_partial":160,"_locale":161,"title":107,"description":2854,"body":2855,"_type":1743,"_id":3904,"_source":1745,"_file":3905,"_extension":1747},"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":164,"children":2856,"toc":3901},[2857,2864,2876,2978,2984,3005,3030,3035,3688,3700,3712,3730,3896],{"type":167,"tag":2858,"props":2859,"children":2861},"h1",{"id":2860},"library",[2862],{"type":172,"value":2863},"Library",{"type":167,"tag":168,"props":2865,"children":2866},{},[2867,2869,2874],{"type":172,"value":2868},"This can be created by utilising the ",{"type":167,"tag":197,"props":2870,"children":2871},{},[2872],{"type":172,"value":2873},"sitemap",{"type":172,"value":2875}," library, which can be installed as follows:",{"type":167,"tag":2877,"props":2878,"children":2879},"code-group",{},[2880,2915,2946],{"type":167,"tag":235,"props":2881,"children":2886},{"className":2882,"code":2883,"filename":2884,"language":2885,"meta":161},"language-bash solarized-light_dark-plus_material-theme-lighter","pnpm add sitemap\n","pnpm","bash",[2887],{"type":167,"tag":197,"props":2888,"children":2889},{"__ignoreMap":161},[2890],{"type":167,"tag":246,"props":2891,"children":2892},{"class":248,"line":249},[2893,2898,2902,2907,2911],{"type":167,"tag":246,"props":2894,"children":2896},{"class":2895},"ct-560301",[2897],{"type":172,"value":2884},{"type":167,"tag":246,"props":2899,"children":2900},{"class":269},[2901],{"type":172,"value":272},{"type":167,"tag":246,"props":2903,"children":2904},{"class":320},[2905],{"type":172,"value":2906},"add",{"type":167,"tag":246,"props":2908,"children":2909},{"class":269},[2910],{"type":172,"value":272},{"type":167,"tag":246,"props":2912,"children":2913},{"class":320},[2914],{"type":172,"value":2873},{"type":167,"tag":235,"props":2916,"children":2919},{"className":2882,"code":2917,"filename":2918,"language":2885,"meta":161},"yarn add sitemap\n","yarn",[2920],{"type":167,"tag":197,"props":2921,"children":2922},{"__ignoreMap":161},[2923],{"type":167,"tag":246,"props":2924,"children":2925},{"class":248,"line":249},[2926,2930,2934,2938,2942],{"type":167,"tag":246,"props":2927,"children":2928},{"class":2895},[2929],{"type":172,"value":2918},{"type":167,"tag":246,"props":2931,"children":2932},{"class":269},[2933],{"type":172,"value":272},{"type":167,"tag":246,"props":2935,"children":2936},{"class":320},[2937],{"type":172,"value":2906},{"type":167,"tag":246,"props":2939,"children":2940},{"class":269},[2941],{"type":172,"value":272},{"type":167,"tag":246,"props":2943,"children":2944},{"class":320},[2945],{"type":172,"value":2873},{"type":167,"tag":235,"props":2947,"children":2950},{"className":2882,"code":2948,"filename":2949,"language":2885,"meta":161},"npm install sitemap\n","npm",[2951],{"type":167,"tag":197,"props":2952,"children":2953},{"__ignoreMap":161},[2954],{"type":167,"tag":246,"props":2955,"children":2956},{"class":248,"line":249},[2957,2961,2965,2970,2974],{"type":167,"tag":246,"props":2958,"children":2959},{"class":2895},[2960],{"type":172,"value":2949},{"type":167,"tag":246,"props":2962,"children":2963},{"class":269},[2964],{"type":172,"value":272},{"type":167,"tag":246,"props":2966,"children":2967},{"class":320},[2968],{"type":172,"value":2969},"install",{"type":167,"tag":246,"props":2971,"children":2972},{"class":269},[2973],{"type":172,"value":272},{"type":167,"tag":246,"props":2975,"children":2976},{"class":320},[2977],{"type":172,"value":2873},{"type":167,"tag":1879,"props":2979,"children":2981},{"id":2980},"server-route",[2982],{"type":172,"value":2983},"Server Route",{"type":167,"tag":168,"props":2985,"children":2986},{},[2987,2989,2996,2998,3003],{"type":172,"value":2988},"We will be utilising the ",{"type":167,"tag":1769,"props":2990,"children":2993},{"href":2991,"rel":2992},"https://nuxt.com/docs/guide/directory-structure/server#server-routes",[1773],[2994],{"type":172,"value":2995},"server routes",{"type":172,"value":2997}," available within Nuxt, and to do so you'll need to create the ",{"type":167,"tag":197,"props":2999,"children":3000},{},[3001],{"type":172,"value":3002},"server/",{"type":172,"value":3004}," directory within your website's root directly.",{"type":167,"tag":168,"props":3006,"children":3007},{},[3008,3010,3015,3017,3022,3024,3029],{"type":172,"value":3009},"Once this is done, create a ",{"type":167,"tag":197,"props":3011,"children":3012},{},[3013],{"type":172,"value":3014},"routes/",{"type":172,"value":3016}," directory inside this, and add a ",{"type":167,"tag":197,"props":3018,"children":3019},{},[3020],{"type":172,"value":3021},"sitemap.xml.ts",{"type":172,"value":3023}," file, this will translate to ",{"type":167,"tag":197,"props":3025,"children":3026},{},[3027],{"type":172,"value":3028},"/sitemap.xml",{"type":172,"value":580},{"type":167,"tag":168,"props":3031,"children":3032},{},[3033],{"type":172,"value":3034},"You'll need to add the following:",{"type":167,"tag":235,"props":3036,"children":3039},{"className":237,"code":3037,"filename":3038,"language":240,"meta":161},"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",[3040],{"type":167,"tag":197,"props":3041,"children":3042},{"__ignoreMap":161},[3043,3100,3169,3175,3241,3253,3325,3378,3411,3426,3432,3487,3515,3552,3585,3600,3612,3637,3644,3676],{"type":167,"tag":246,"props":3044,"children":3045},{"class":248,"line":249},[3046,3050,3054,3058,3062,3067,3071,3075,3079,3083,3087,3091,3096],{"type":167,"tag":246,"props":3047,"children":3048},{"class":263},[3049],{"type":172,"value":266},{"type":167,"tag":246,"props":3051,"children":3052},{"class":269},[3053],{"type":172,"value":272},{"type":167,"tag":246,"props":3055,"children":3056},{"class":275},[3057],{"type":172,"value":278},{"type":167,"tag":246,"props":3059,"children":3060},{"class":281},[3061],{"type":172,"value":272},{"type":167,"tag":246,"props":3063,"children":3064},{"class":286},[3065],{"type":172,"value":3066},"serverQueryContent",{"type":167,"tag":246,"props":3068,"children":3069},{"class":281},[3070],{"type":172,"value":272},{"type":167,"tag":246,"props":3072,"children":3073},{"class":275},[3074],{"type":172,"value":298},{"type":167,"tag":246,"props":3076,"children":3077},{"class":269},[3078],{"type":172,"value":272},{"type":167,"tag":246,"props":3080,"children":3081},{"class":263},[3082],{"type":172,"value":307},{"type":167,"tag":246,"props":3084,"children":3085},{"class":269},[3086],{"type":172,"value":272},{"type":167,"tag":246,"props":3088,"children":3089},{"class":314},[3090],{"type":172,"value":317},{"type":167,"tag":246,"props":3092,"children":3093},{"class":320},[3094],{"type":172,"value":3095},"#content/server",{"type":167,"tag":246,"props":3097,"children":3098},{"class":314},[3099],{"type":172,"value":328},{"type":167,"tag":246,"props":3101,"children":3102},{"class":248,"line":259},[3103,3107,3111,3115,3119,3124,3128,3132,3137,3141,3145,3149,3153,3157,3161,3165],{"type":167,"tag":246,"props":3104,"children":3105},{"class":263},[3106],{"type":172,"value":266},{"type":167,"tag":246,"props":3108,"children":3109},{"class":269},[3110],{"type":172,"value":272},{"type":167,"tag":246,"props":3112,"children":3113},{"class":275},[3114],{"type":172,"value":278},{"type":167,"tag":246,"props":3116,"children":3117},{"class":281},[3118],{"type":172,"value":272},{"type":167,"tag":246,"props":3120,"children":3121},{"class":286},[3122],{"type":172,"value":3123},"SitemapStream",{"type":167,"tag":246,"props":3125,"children":3126},{"class":275},[3127],{"type":172,"value":489},{"type":167,"tag":246,"props":3129,"children":3130},{"class":281},[3131],{"type":172,"value":272},{"type":167,"tag":246,"props":3133,"children":3134},{"class":286},[3135],{"type":172,"value":3136},"streamToPromise",{"type":167,"tag":246,"props":3138,"children":3139},{"class":281},[3140],{"type":172,"value":272},{"type":167,"tag":246,"props":3142,"children":3143},{"class":275},[3144],{"type":172,"value":298},{"type":167,"tag":246,"props":3146,"children":3147},{"class":269},[3148],{"type":172,"value":272},{"type":167,"tag":246,"props":3150,"children":3151},{"class":263},[3152],{"type":172,"value":307},{"type":167,"tag":246,"props":3154,"children":3155},{"class":269},[3156],{"type":172,"value":272},{"type":167,"tag":246,"props":3158,"children":3159},{"class":314},[3160],{"type":172,"value":317},{"type":167,"tag":246,"props":3162,"children":3163},{"class":320},[3164],{"type":172,"value":2873},{"type":167,"tag":246,"props":3166,"children":3167},{"class":314},[3168],{"type":172,"value":328},{"type":167,"tag":246,"props":3170,"children":3171},{"class":248,"line":331},[3172],{"type":167,"tag":246,"props":3173,"children":3174},{},[],{"type":167,"tag":246,"props":3176,"children":3177},{"class":248,"line":338},[3178,3182,3186,3190,3194,3199,3203,3208,3212,3216,3221,3225,3229,3233,3237],{"type":167,"tag":246,"props":3179,"children":3180},{"class":263},[3181],{"type":172,"value":344},{"type":167,"tag":246,"props":3183,"children":3184},{"class":269},[3185],{"type":172,"value":272},{"type":167,"tag":246,"props":3187,"children":3188},{"class":263},[3189],{"type":172,"value":353},{"type":167,"tag":246,"props":3191,"children":3192},{"class":269},[3193],{"type":172,"value":272},{"type":167,"tag":246,"props":3195,"children":3196},{"class":360},[3197],{"type":172,"value":3198},"defineEventHandler",{"type":167,"tag":246,"props":3200,"children":3201},{"class":269},[3202],{"type":172,"value":367},{"type":167,"tag":246,"props":3204,"children":3205},{"class":645},[3206],{"type":172,"value":3207},"async",{"type":167,"tag":246,"props":3209,"children":3210},{"class":269},[3211],{"type":172,"value":272},{"type":167,"tag":246,"props":3213,"children":3214},{"class":275},[3215],{"type":172,"value":367},{"type":167,"tag":246,"props":3217,"children":3218},{"class":481},[3219],{"type":172,"value":3220},"event",{"type":167,"tag":246,"props":3222,"children":3223},{"class":275},[3224],{"type":172,"value":503},{"type":167,"tag":246,"props":3226,"children":3227},{"class":269},[3228],{"type":172,"value":272},{"type":167,"tag":246,"props":3230,"children":3231},{"class":645},[3232],{"type":172,"value":648},{"type":167,"tag":246,"props":3234,"children":3235},{"class":269},[3236],{"type":172,"value":272},{"type":167,"tag":246,"props":3238,"children":3239},{"class":275},[3240],{"type":172,"value":372},{"type":167,"tag":246,"props":3242,"children":3243},{"class":248,"line":375},[3244,3248],{"type":167,"tag":246,"props":3245,"children":3246},{"class":275},[3247],{"type":172,"value":381},{"type":167,"tag":246,"props":3249,"children":3250},{"class":253},[3251],{"type":172,"value":3252},"// Fetch all documents\n",{"type":167,"tag":246,"props":3254,"children":3255},{"class":248,"line":417},[3256,3260,3265,3269,3275,3279,3283,3287,3292,3296,3300,3304,3308,3312,3316,3321],{"type":167,"tag":246,"props":3257,"children":3258},{"class":281},[3259],{"type":172,"value":381},{"type":167,"tag":246,"props":3261,"children":3262},{"class":645},[3263],{"type":172,"value":3264},"const",{"type":167,"tag":246,"props":3266,"children":3267},{"class":281},[3268],{"type":172,"value":272},{"type":167,"tag":246,"props":3270,"children":3272},{"class":3271},"ct-263069",[3273],{"type":172,"value":3274},"docs",{"type":167,"tag":246,"props":3276,"children":3277},{"class":281},[3278],{"type":172,"value":272},{"type":167,"tag":246,"props":3280,"children":3281},{"class":990},[3282],{"type":172,"value":993},{"type":167,"tag":246,"props":3284,"children":3285},{"class":281},[3286],{"type":172,"value":272},{"type":167,"tag":246,"props":3288,"children":3289},{"class":263},[3290],{"type":172,"value":3291},"await",{"type":167,"tag":246,"props":3293,"children":3294},{"class":281},[3295],{"type":172,"value":272},{"type":167,"tag":246,"props":3297,"children":3298},{"class":360},[3299],{"type":172,"value":3066},{"type":167,"tag":246,"props":3301,"children":3302},{"class":281},[3303],{"type":172,"value":367},{"type":167,"tag":246,"props":3305,"children":3306},{"class":286},[3307],{"type":172,"value":3220},{"type":167,"tag":246,"props":3309,"children":3310},{"class":281},[3311],{"type":172,"value":503},{"type":167,"tag":246,"props":3313,"children":3314},{"class":275},[3315],{"type":172,"value":580},{"type":167,"tag":246,"props":3317,"children":3318},{"class":360},[3319],{"type":172,"value":3320},"find",{"type":167,"tag":246,"props":3322,"children":3323},{"class":281},[3324],{"type":172,"value":683},{"type":167,"tag":246,"props":3326,"children":3327},{"class":248,"line":460},[3328,3332,3336,3340,3344,3348,3352,3356,3362,3366,3370,3374],{"type":167,"tag":246,"props":3329,"children":3330},{"class":281},[3331],{"type":172,"value":381},{"type":167,"tag":246,"props":3333,"children":3334},{"class":645},[3335],{"type":172,"value":3264},{"type":167,"tag":246,"props":3337,"children":3338},{"class":281},[3339],{"type":172,"value":272},{"type":167,"tag":246,"props":3341,"children":3342},{"class":3271},[3343],{"type":172,"value":2873},{"type":167,"tag":246,"props":3345,"children":3346},{"class":281},[3347],{"type":172,"value":272},{"type":167,"tag":246,"props":3349,"children":3350},{"class":990},[3351],{"type":172,"value":993},{"type":167,"tag":246,"props":3353,"children":3354},{"class":281},[3355],{"type":172,"value":272},{"type":167,"tag":246,"props":3357,"children":3359},{"class":3358},"ct-105231",[3360],{"type":172,"value":3361},"new",{"type":167,"tag":246,"props":3363,"children":3364},{"class":281},[3365],{"type":172,"value":272},{"type":167,"tag":246,"props":3367,"children":3368},{"class":360},[3369],{"type":172,"value":3123},{"type":167,"tag":246,"props":3371,"children":3372},{"class":281},[3373],{"type":172,"value":367},{"type":167,"tag":246,"props":3375,"children":3376},{"class":275},[3377],{"type":172,"value":372},{"type":167,"tag":246,"props":3379,"children":3380},{"class":248,"line":514},[3381,3385,3390,3394,3398,3402,3407],{"type":167,"tag":246,"props":3382,"children":3383},{"class":281},[3384],{"type":172,"value":520},{"type":167,"tag":246,"props":3386,"children":3387},{"class":384},[3388],{"type":172,"value":3389},"hostname",{"type":167,"tag":246,"props":3391,"children":3392},{"class":389},[3393],{"type":172,"value":392},{"type":167,"tag":246,"props":3395,"children":3396},{"class":281},[3397],{"type":172,"value":272},{"type":167,"tag":246,"props":3399,"children":3400},{"class":314},[3401],{"type":172,"value":317},{"type":167,"tag":246,"props":3403,"children":3404},{"class":320},[3405],{"type":172,"value":3406},"https://example.com",{"type":167,"tag":246,"props":3408,"children":3409},{"class":314},[3410],{"type":172,"value":328},{"type":167,"tag":246,"props":3412,"children":3413},{"class":248,"line":536},[3414,3418,3422],{"type":167,"tag":246,"props":3415,"children":3416},{"class":281},[3417],{"type":172,"value":381},{"type":167,"tag":246,"props":3419,"children":3420},{"class":275},[3421],{"type":172,"value":298},{"type":167,"tag":246,"props":3423,"children":3424},{"class":281},[3425],{"type":172,"value":1389},{"type":167,"tag":246,"props":3427,"children":3428},{"class":248,"line":553},[3429],{"type":167,"tag":246,"props":3430,"children":3431},{},[],{"type":167,"tag":246,"props":3433,"children":3434},{"class":248,"line":686},[3435,3439,3444,3448,3452,3456,3461,3465,3470,3474,3478,3483],{"type":167,"tag":246,"props":3436,"children":3437},{"class":281},[3438],{"type":172,"value":381},{"type":167,"tag":246,"props":3440,"children":3441},{"class":263},[3442],{"type":172,"value":3443},"for",{"type":167,"tag":246,"props":3445,"children":3446},{"class":281},[3447],{"type":172,"value":2087},{"type":167,"tag":246,"props":3449,"children":3450},{"class":645},[3451],{"type":172,"value":3264},{"type":167,"tag":246,"props":3453,"children":3454},{"class":281},[3455],{"type":172,"value":272},{"type":167,"tag":246,"props":3457,"children":3458},{"class":3271},[3459],{"type":172,"value":3460},"doc",{"type":167,"tag":246,"props":3462,"children":3463},{"class":281},[3464],{"type":172,"value":272},{"type":167,"tag":246,"props":3466,"children":3467},{"class":3358},[3468],{"type":172,"value":3469},"of",{"type":167,"tag":246,"props":3471,"children":3472},{"class":281},[3473],{"type":172,"value":272},{"type":167,"tag":246,"props":3475,"children":3476},{"class":286},[3477],{"type":172,"value":3274},{"type":167,"tag":246,"props":3479,"children":3480},{"class":281},[3481],{"type":172,"value":3482},") ",{"type":167,"tag":246,"props":3484,"children":3485},{"class":275},[3486],{"type":172,"value":372},{"type":167,"tag":246,"props":3488,"children":3489},{"class":248,"line":699},[3490,3494,3498,3502,3507,3511],{"type":167,"tag":246,"props":3491,"children":3492},{"class":281},[3493],{"type":172,"value":520},{"type":167,"tag":246,"props":3495,"children":3496},{"class":286},[3497],{"type":172,"value":2873},{"type":167,"tag":246,"props":3499,"children":3500},{"class":275},[3501],{"type":172,"value":580},{"type":167,"tag":246,"props":3503,"children":3504},{"class":360},[3505],{"type":172,"value":3506},"write",{"type":167,"tag":246,"props":3508,"children":3509},{"class":281},[3510],{"type":172,"value":367},{"type":167,"tag":246,"props":3512,"children":3513},{"class":275},[3514],{"type":172,"value":372},{"type":167,"tag":246,"props":3516,"children":3517},{"class":248,"line":711},[3518,3522,3527,3531,3535,3539,3543,3548],{"type":167,"tag":246,"props":3519,"children":3520},{"class":281},[3521],{"type":172,"value":542},{"type":167,"tag":246,"props":3523,"children":3524},{"class":384},[3525],{"type":172,"value":3526},"url",{"type":167,"tag":246,"props":3528,"children":3529},{"class":389},[3530],{"type":172,"value":392},{"type":167,"tag":246,"props":3532,"children":3533},{"class":281},[3534],{"type":172,"value":272},{"type":167,"tag":246,"props":3536,"children":3537},{"class":286},[3538],{"type":172,"value":3460},{"type":167,"tag":246,"props":3540,"children":3541},{"class":275},[3542],{"type":172,"value":580},{"type":167,"tag":246,"props":3544,"children":3545},{"class":286},[3546],{"type":172,"value":3547},"_path",{"type":167,"tag":246,"props":3549,"children":3550},{"class":275},[3551],{"type":172,"value":414},{"type":167,"tag":246,"props":3553,"children":3554},{"class":248,"line":1392},[3555,3559,3564,3568,3572,3576,3581],{"type":167,"tag":246,"props":3556,"children":3557},{"class":281},[3558],{"type":172,"value":542},{"type":167,"tag":246,"props":3560,"children":3561},{"class":384},[3562],{"type":172,"value":3563},"changefreq",{"type":167,"tag":246,"props":3565,"children":3566},{"class":389},[3567],{"type":172,"value":392},{"type":167,"tag":246,"props":3569,"children":3570},{"class":281},[3571],{"type":172,"value":272},{"type":167,"tag":246,"props":3573,"children":3574},{"class":314},[3575],{"type":172,"value":317},{"type":167,"tag":246,"props":3577,"children":3578},{"class":320},[3579],{"type":172,"value":3580},"monthly",{"type":167,"tag":246,"props":3582,"children":3583},{"class":314},[3584],{"type":172,"value":328},{"type":167,"tag":246,"props":3586,"children":3587},{"class":248,"line":1404},[3588,3592,3596],{"type":167,"tag":246,"props":3589,"children":3590},{"class":281},[3591],{"type":172,"value":520},{"type":167,"tag":246,"props":3593,"children":3594},{"class":275},[3595],{"type":172,"value":298},{"type":167,"tag":246,"props":3597,"children":3598},{"class":281},[3599],{"type":172,"value":1389},{"type":167,"tag":246,"props":3601,"children":3603},{"class":248,"line":3602},16,[3604,3608],{"type":167,"tag":246,"props":3605,"children":3606},{"class":281},[3607],{"type":172,"value":381},{"type":167,"tag":246,"props":3609,"children":3610},{"class":275},[3611],{"type":172,"value":696},{"type":167,"tag":246,"props":3613,"children":3615},{"class":248,"line":3614},17,[3616,3620,3624,3628,3633],{"type":167,"tag":246,"props":3617,"children":3618},{"class":281},[3619],{"type":172,"value":381},{"type":167,"tag":246,"props":3621,"children":3622},{"class":286},[3623],{"type":172,"value":2873},{"type":167,"tag":246,"props":3625,"children":3626},{"class":275},[3627],{"type":172,"value":580},{"type":167,"tag":246,"props":3629,"children":3630},{"class":360},[3631],{"type":172,"value":3632},"end",{"type":167,"tag":246,"props":3634,"children":3635},{"class":281},[3636],{"type":172,"value":683},{"type":167,"tag":246,"props":3638,"children":3640},{"class":248,"line":3639},18,[3641],{"type":167,"tag":246,"props":3642,"children":3643},{},[],{"type":167,"tag":246,"props":3645,"children":3647},{"class":248,"line":3646},19,[3648,3652,3656,3660,3664,3668,3672],{"type":167,"tag":246,"props":3649,"children":3650},{"class":281},[3651],{"type":172,"value":381},{"type":167,"tag":246,"props":3653,"children":3654},{"class":263},[3655],{"type":172,"value":525},{"type":167,"tag":246,"props":3657,"children":3658},{"class":281},[3659],{"type":172,"value":272},{"type":167,"tag":246,"props":3661,"children":3662},{"class":360},[3663],{"type":172,"value":3136},{"type":167,"tag":246,"props":3665,"children":3666},{"class":281},[3667],{"type":172,"value":367},{"type":167,"tag":246,"props":3669,"children":3670},{"class":286},[3671],{"type":172,"value":2873},{"type":167,"tag":246,"props":3673,"children":3674},{"class":281},[3675],{"type":172,"value":1389},{"type":167,"tag":246,"props":3677,"children":3679},{"class":248,"line":3678},20,[3680,3684],{"type":167,"tag":246,"props":3681,"children":3682},{"class":275},[3683],{"type":172,"value":298},{"type":167,"tag":246,"props":3685,"children":3686},{"class":269},[3687],{"type":172,"value":503},{"type":167,"tag":168,"props":3689,"children":3690},{},[3691,3693,3698],{"type":172,"value":3692},"Now, once users go to ",{"type":167,"tag":197,"props":3694,"children":3695},{},[3696],{"type":172,"value":3697},"https://example.com/sitemap.xml",{"type":172,"value":3699},", you'll find the generated XML file with all your pages.",{"type":167,"tag":168,"props":3701,"children":3702},{},[3703,3705,3710],{"type":172,"value":3704},"When using ",{"type":167,"tag":197,"props":3706,"children":3707},{},[3708],{"type":172,"value":3709},"nuxt generate",{"type":172,"value":3711},", you may want to pre-render the sitemap since the server route won't be able to run on a static hosting.",{"type":167,"tag":168,"props":3713,"children":3714},{},[3715,3717,3722,3724,3729],{"type":172,"value":3716},"You can do this using the ",{"type":167,"tag":197,"props":3718,"children":3719},{},[3720],{"type":172,"value":3721},"nitro.prerender",{"type":172,"value":3723}," option in your ",{"type":167,"tag":197,"props":3725,"children":3726},{},[3727],{"type":172,"value":3728},"nuxt.config",{"type":172,"value":392},{"type":167,"tag":235,"props":3731,"children":3733},{"className":237,"code":3732,"filename":1425,"language":240,"meta":161},"export default defineNuxtConfig({\n  // ...\n  nitro: {\n    prerender: {\n      routes: ['/sitemap.xml']\n    }\n  }\n})\n",[3734],{"type":167,"tag":197,"props":3735,"children":3736},{"__ignoreMap":161},[3737,3768,3779,3802,3826,3863,3874,3885],{"type":167,"tag":246,"props":3738,"children":3739},{"class":248,"line":249},[3740,3744,3748,3752,3756,3760,3764],{"type":167,"tag":246,"props":3741,"children":3742},{"class":263},[3743],{"type":172,"value":344},{"type":167,"tag":246,"props":3745,"children":3746},{"class":269},[3747],{"type":172,"value":272},{"type":167,"tag":246,"props":3749,"children":3750},{"class":263},[3751],{"type":172,"value":353},{"type":167,"tag":246,"props":3753,"children":3754},{"class":269},[3755],{"type":172,"value":272},{"type":167,"tag":246,"props":3757,"children":3758},{"class":360},[3759],{"type":172,"value":1515},{"type":167,"tag":246,"props":3761,"children":3762},{"class":269},[3763],{"type":172,"value":367},{"type":167,"tag":246,"props":3765,"children":3766},{"class":275},[3767],{"type":172,"value":372},{"type":167,"tag":246,"props":3769,"children":3770},{"class":248,"line":259},[3771,3775],{"type":167,"tag":246,"props":3772,"children":3773},{"class":275},[3774],{"type":172,"value":381},{"type":167,"tag":246,"props":3776,"children":3777},{"class":253},[3778],{"type":172,"value":1866},{"type":167,"tag":246,"props":3780,"children":3781},{"class":248,"line":331},[3782,3786,3790,3794,3798],{"type":167,"tag":246,"props":3783,"children":3784},{"class":269},[3785],{"type":172,"value":381},{"type":167,"tag":246,"props":3787,"children":3788},{"class":384},[3789],{"type":172,"value":974},{"type":167,"tag":246,"props":3791,"children":3792},{"class":389},[3793],{"type":172,"value":392},{"type":167,"tag":246,"props":3795,"children":3796},{"class":269},[3797],{"type":172,"value":272},{"type":167,"tag":246,"props":3799,"children":3800},{"class":275},[3801],{"type":172,"value":372},{"type":167,"tag":246,"props":3803,"children":3804},{"class":248,"line":338},[3805,3809,3814,3818,3822],{"type":167,"tag":246,"props":3806,"children":3807},{"class":269},[3808],{"type":172,"value":520},{"type":167,"tag":246,"props":3810,"children":3811},{"class":384},[3812],{"type":172,"value":3813},"prerender",{"type":167,"tag":246,"props":3815,"children":3816},{"class":389},[3817],{"type":172,"value":392},{"type":167,"tag":246,"props":3819,"children":3820},{"class":269},[3821],{"type":172,"value":272},{"type":167,"tag":246,"props":3823,"children":3824},{"class":275},[3825],{"type":172,"value":372},{"type":167,"tag":246,"props":3827,"children":3828},{"class":248,"line":375},[3829,3833,3838,3842,3846,3850,3854,3858],{"type":167,"tag":246,"props":3830,"children":3831},{"class":269},[3832],{"type":172,"value":542},{"type":167,"tag":246,"props":3834,"children":3835},{"class":384},[3836],{"type":172,"value":3837},"routes",{"type":167,"tag":246,"props":3839,"children":3840},{"class":389},[3841],{"type":172,"value":392},{"type":167,"tag":246,"props":3843,"children":3844},{"class":269},[3845],{"type":172,"value":435},{"type":167,"tag":246,"props":3847,"children":3848},{"class":314},[3849],{"type":172,"value":317},{"type":167,"tag":246,"props":3851,"children":3852},{"class":320},[3853],{"type":172,"value":3028},{"type":167,"tag":246,"props":3855,"children":3856},{"class":314},[3857],{"type":172,"value":317},{"type":167,"tag":246,"props":3859,"children":3860},{"class":269},[3861],{"type":172,"value":3862},"]\n",{"type":167,"tag":246,"props":3864,"children":3865},{"class":248,"line":417},[3866,3870],{"type":167,"tag":246,"props":3867,"children":3868},{"class":269},[3869],{"type":172,"value":520},{"type":167,"tag":246,"props":3871,"children":3872},{"class":275},[3873],{"type":172,"value":696},{"type":167,"tag":246,"props":3875,"children":3876},{"class":248,"line":460},[3877,3881],{"type":167,"tag":246,"props":3878,"children":3879},{"class":269},[3880],{"type":172,"value":381},{"type":167,"tag":246,"props":3882,"children":3883},{"class":275},[3884],{"type":172,"value":696},{"type":167,"tag":246,"props":3886,"children":3887},{"class":248,"line":514},[3888,3892],{"type":167,"tag":246,"props":3889,"children":3890},{"class":275},[3891],{"type":172,"value":298},{"type":167,"tag":246,"props":3893,"children":3894},{"class":269},[3895],{"type":172,"value":503},{"type":167,"tag":1736,"props":3897,"children":3898},{},[3899],{"type":172,"value":3900},".solarized-light_dark-plus_material-theme-lighter{color:#657B83;background:#FDF6E3;}.dark .solarized-light_dark-plus_material-theme-lighter{color:#D4D4D4;background:#1E1E1E;}.light .solarized-light_dark-plus_material-theme-lighter{color:#90A4AE;background:#FAFAFA;}.ct-560301{color:#268BD2;}.dark .ct-560301{color:#DCDCAA;}.light .ct-560301{color:#E2931D;}.ct-916772{color:#657B83;}.dark .ct-916772{color:#D4D4D4;}.light .ct-916772{color:#90A4AE;}.ct-084644{color:#2AA198;}.dark .ct-084644{color:#CE9178;}.light .ct-084644{color:#91B859;}.ct-702290{color:#859900;}.dark .ct-702290{color:#C586C0;}.light .ct-702290{color:#39ADB5;font-style:italic;}.ct-001462{color:#657B83;}.dark .ct-001462{color:#D4D4D4;}.light .ct-001462{color:#39ADB5;}.ct-589478{color:#657B83;}.dark .ct-589478{color:#D4D4D4;}.light .ct-589478{color:#E53935;}.ct-604459{color:#268BD2;}.dark .ct-604459{color:#9CDCFE;}.light .ct-604459{color:#90A4AE;}.ct-659886{color:#2AA198;}.dark .ct-659886{color:#CE9178;}.light .ct-659886{color:#39ADB5;}.ct-187170{color:#268BD2;}.dark .ct-187170{color:#DCDCAA;}.light .ct-187170{color:#6182B8;}.ct-696419{color:#586E75;font-weight:bold;}.dark .ct-696419{color:#569CD6;font-weight:unset;}.light .ct-696419{color:#9C3EDA;font-weight:unset;}.ct-120243{color:#657B83;}.dark .ct-120243{color:#9CDCFE;}.light .ct-120243{color:#90A4AE;font-style:italic;}.ct-798230{color:#93A1A1;font-style:italic;}.dark .ct-798230{color:#6A9955;font-style:unset;}.light .ct-798230{color:#90A4AE;font-style:italic;}.ct-263069{color:#268BD2;}.dark .ct-263069{color:#4FC1FF;}.light .ct-263069{color:#90A4AE;}.ct-773118{color:#859900;}.dark .ct-773118{color:#D4D4D4;}.light .ct-773118{color:#39ADB5;}.ct-105231{color:#859900;}.dark .ct-105231{color:#569CD6;}.light .ct-105231{color:#39ADB5;}.ct-340802{color:#657B83;}.dark .ct-340802{color:#9CDCFE;}.light .ct-340802{color:#E53935;}.ct-931742{color:#657B83;}.dark .ct-931742{color:#9CDCFE;}.light .ct-931742{color:#39ADB5;}",{"title":161,"searchDepth":259,"depth":259,"links":3902},[3903],{"id":2980,"depth":259,"text":2983},"content:6.recipes:3.sitemap.md","6.recipes/3.sitemap.md",1695728530250]