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