[{"data":1,"prerenderedAt":3162},["ShallowReactive",2],{"navigation":3,"docs-/recipes/transformers":164,"docs-/recipes/transformers-surround":1396},[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,"_stem":1394,"_extension":1395},"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","6.recipes/2.transformers","md",[1397,2313],{"_path":108,"_dir":165,"_draft":166,"_partial":166,"_locale":167,"title":107,"description":1398,"body":1399,"_type":1390,"_id":2310,"_source":1392,"_file":2311,"_stem":2312,"_extension":1395},"Nuxt Content exposes hooks to allow you to modify the content before it is parsed and after it is parsed.",{"type":170,"children":1400,"toc":2306},[1401,1406,1427,1440,1508,1519,1524,1533,1547,1555,1560,1849,1859,1864,1873,1886,1893,1898,2302],{"type":173,"tag":174,"props":1402,"children":1403},{},[1404],{"type":178,"value":1405},"The module adds some hooks you can use:",{"type":173,"tag":174,"props":1407,"children":1408},{},[1409,1415,1417,1426],{"type":173,"tag":203,"props":1410,"children":1412},{"className":1411},[],[1413],{"type":178,"value":1414},"content:file:*",{"type":178,"value":1416}," hooks are available in nitro runtime, in order to use them you need to create a custom ",{"type":173,"tag":1418,"props":1419,"children":1423},"a",{"href":1420,"rel":1421},"https://nitro.unjs.io/guide/plugins",[1422],"nofollow",[1424],{"type":178,"value":1425},"nitro plugin",{"type":178,"value":533},{"type":173,"tag":174,"props":1428,"children":1429},{},[1430,1432,1438],{"type":178,"value":1431},"Create a plugin in the ",{"type":173,"tag":203,"props":1433,"children":1435},{"className":1434},[],[1436],{"type":178,"value":1437},"server/plugins/",{"type":178,"value":1439}," directory",{"type":173,"tag":245,"props":1441,"children":1444},{"className":247,"code":1442,"filename":1443,"language":250,"meta":167,"style":167},"export default defineNitroPlugin((nitroApp) => {\n  // ...\n})\n","server/plugins/content.ts",[1445],{"type":173,"tag":203,"props":1446,"children":1447},{"__ignoreMap":167},[1448,1489,1497],{"type":173,"tag":256,"props":1449,"children":1450},{"class":258,"line":259},[1451,1455,1459,1464,1468,1472,1477,1481,1485],{"type":173,"tag":256,"props":1452,"children":1453},{"style":273},[1454],{"type":178,"value":333},{"type":173,"tag":256,"props":1456,"children":1457},{"style":273},[1458],{"type":178,"value":338},{"type":173,"tag":256,"props":1460,"children":1461},{"style":341},[1462],{"type":178,"value":1463}," defineNitroPlugin",{"type":173,"tag":256,"props":1465,"children":1466},{"style":285},[1467],{"type":178,"value":348},{"type":173,"tag":256,"props":1469,"children":1470},{"style":279},[1471],{"type":178,"value":348},{"type":173,"tag":256,"props":1473,"children":1474},{"style":444},[1475],{"type":178,"value":1476},"nitroApp",{"type":173,"tag":256,"props":1478,"children":1479},{"style":279},[1480],{"type":178,"value":480},{"type":173,"tag":256,"props":1482,"children":1483},{"style":593},[1484],{"type":178,"value":596},{"type":173,"tag":256,"props":1486,"children":1487},{"style":279},[1488],{"type":178,"value":485},{"type":173,"tag":256,"props":1490,"children":1491},{"class":258,"line":269},[1492],{"type":173,"tag":256,"props":1493,"children":1494},{"style":263},[1495],{"type":178,"value":1496},"  // ...\n",{"type":173,"tag":256,"props":1498,"children":1499},{"class":258,"line":317},[1500,1504],{"type":173,"tag":256,"props":1501,"children":1502},{"style":279},[1503],{"type":178,"value":655},{"type":173,"tag":256,"props":1505,"children":1506},{"style":285},[1507],{"type":178,"value":660},{"type":173,"tag":1509,"props":1510,"children":1512},"h2",{"id":1511},"contentfilebeforeparse",[1513],{"type":173,"tag":203,"props":1514,"children":1516},{"className":1515},[],[1517],{"type":178,"value":1518},"content:file:beforeParse",{"type":173,"tag":174,"props":1520,"children":1521},{},[1522],{"type":178,"value":1523},"Allows you to modify the contents of a file before it is handled by the parsers.",{"type":173,"tag":174,"props":1525,"children":1526},{},[1527],{"type":173,"tag":1528,"props":1529,"children":1530},"strong",{},[1531],{"type":178,"value":1532},"Arguments:",{"type":173,"tag":196,"props":1534,"children":1535},{},[1536],{"type":173,"tag":190,"props":1537,"children":1538},{},[1539,1541],{"type":178,"value":1540},"file: ",{"type":173,"tag":203,"props":1542,"children":1544},{"className":1543},[],[1545],{"type":178,"value":1546},"{ _id: string, body: string }",{"type":173,"tag":174,"props":1548,"children":1549},{},[1550],{"type":173,"tag":1528,"props":1551,"children":1552},{},[1553],{"type":178,"value":1554},"Example:",{"type":173,"tag":174,"props":1556,"children":1557},{},[1558],{"type":178,"value":1559},"Changing all occurrences of React to Vue in all Markdown files:",{"type":173,"tag":245,"props":1561,"children":1563},{"className":247,"code":1562,"filename":1443,"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",[1564],{"type":173,"tag":203,"props":1565,"children":1566},{"__ignoreMap":167},[1567,1606,1672,1731,1819,1826,1838],{"type":173,"tag":256,"props":1568,"children":1569},{"class":258,"line":259},[1570,1574,1578,1582,1586,1590,1594,1598,1602],{"type":173,"tag":256,"props":1571,"children":1572},{"style":273},[1573],{"type":178,"value":333},{"type":173,"tag":256,"props":1575,"children":1576},{"style":273},[1577],{"type":178,"value":338},{"type":173,"tag":256,"props":1579,"children":1580},{"style":341},[1581],{"type":178,"value":1463},{"type":173,"tag":256,"props":1583,"children":1584},{"style":285},[1585],{"type":178,"value":348},{"type":173,"tag":256,"props":1587,"children":1588},{"style":279},[1589],{"type":178,"value":348},{"type":173,"tag":256,"props":1591,"children":1592},{"style":444},[1593],{"type":178,"value":1476},{"type":173,"tag":256,"props":1595,"children":1596},{"style":279},[1597],{"type":178,"value":480},{"type":173,"tag":256,"props":1599,"children":1600},{"style":593},[1601],{"type":178,"value":596},{"type":173,"tag":256,"props":1603,"children":1604},{"style":279},[1605],{"type":178,"value":485},{"type":173,"tag":256,"props":1607,"children":1608},{"class":258,"line":269},[1609,1614,1618,1623,1627,1631,1635,1639,1643,1647,1651,1655,1660,1664,1668],{"type":173,"tag":256,"props":1610,"children":1611},{"style":285},[1612],{"type":178,"value":1613},"  nitroApp",{"type":173,"tag":256,"props":1615,"children":1616},{"style":279},[1617],{"type":178,"value":533},{"type":173,"tag":256,"props":1619,"children":1620},{"style":285},[1621],{"type":178,"value":1622},"hooks",{"type":173,"tag":256,"props":1624,"children":1625},{"style":279},[1626],{"type":178,"value":533},{"type":173,"tag":256,"props":1628,"children":1629},{"style":341},[1630],{"type":178,"value":1084},{"type":173,"tag":256,"props":1632,"children":1633},{"style":360},[1634],{"type":178,"value":348},{"type":173,"tag":256,"props":1636,"children":1637},{"style":279},[1638],{"type":178,"value":382},{"type":173,"tag":256,"props":1640,"children":1641},{"style":306},[1642],{"type":178,"value":1518},{"type":173,"tag":256,"props":1644,"children":1645},{"style":279},[1646],{"type":178,"value":382},{"type":173,"tag":256,"props":1648,"children":1649},{"style":279},[1650],{"type":178,"value":462},{"type":173,"tag":256,"props":1652,"children":1653},{"style":279},[1654],{"type":178,"value":441},{"type":173,"tag":256,"props":1656,"children":1657},{"style":444},[1658],{"type":178,"value":1659},"file",{"type":173,"tag":256,"props":1661,"children":1662},{"style":279},[1663],{"type":178,"value":480},{"type":173,"tag":256,"props":1665,"children":1666},{"style":593},[1667],{"type":178,"value":596},{"type":173,"tag":256,"props":1669,"children":1670},{"style":279},[1671],{"type":178,"value":485},{"type":173,"tag":256,"props":1673,"children":1674},{"class":258,"line":317},[1675,1680,1684,1688,1692,1696,1700,1705,1709,1713,1718,1722,1727],{"type":173,"tag":256,"props":1676,"children":1677},{"style":273},[1678],{"type":178,"value":1679},"    if",{"type":173,"tag":256,"props":1681,"children":1682},{"style":360},[1683],{"type":178,"value":441},{"type":173,"tag":256,"props":1685,"children":1686},{"style":285},[1687],{"type":178,"value":1659},{"type":173,"tag":256,"props":1689,"children":1690},{"style":279},[1691],{"type":178,"value":533},{"type":173,"tag":256,"props":1693,"children":1694},{"style":285},[1695],{"type":178,"value":447},{"type":173,"tag":256,"props":1697,"children":1698},{"style":279},[1699],{"type":178,"value":533},{"type":173,"tag":256,"props":1701,"children":1702},{"style":341},[1703],{"type":178,"value":1704},"endsWith",{"type":173,"tag":256,"props":1706,"children":1707},{"style":360},[1708],{"type":178,"value":348},{"type":173,"tag":256,"props":1710,"children":1711},{"style":279},[1712],{"type":178,"value":382},{"type":173,"tag":256,"props":1714,"children":1715},{"style":306},[1716],{"type":178,"value":1717},".md",{"type":173,"tag":256,"props":1719,"children":1720},{"style":279},[1721],{"type":178,"value":382},{"type":173,"tag":256,"props":1723,"children":1724},{"style":360},[1725],{"type":178,"value":1726},")) ",{"type":173,"tag":256,"props":1728,"children":1729},{"style":279},[1730],{"type":178,"value":353},{"type":173,"tag":256,"props":1732,"children":1733},{"class":258,"line":327},[1734,1739,1743,1748,1752,1757,1761,1765,1769,1774,1778,1783,1788,1792,1798,1802,1806,1811,1815],{"type":173,"tag":256,"props":1735,"children":1736},{"style":285},[1737],{"type":178,"value":1738},"      file",{"type":173,"tag":256,"props":1740,"children":1741},{"style":279},[1742],{"type":178,"value":533},{"type":173,"tag":256,"props":1744,"children":1745},{"style":285},[1746],{"type":178,"value":1747},"body",{"type":173,"tag":256,"props":1749,"children":1750},{"style":279},[1751],{"type":178,"value":854},{"type":173,"tag":256,"props":1753,"children":1754},{"style":285},[1755],{"type":178,"value":1756}," file",{"type":173,"tag":256,"props":1758,"children":1759},{"style":279},[1760],{"type":178,"value":533},{"type":173,"tag":256,"props":1762,"children":1763},{"style":285},[1764],{"type":178,"value":1747},{"type":173,"tag":256,"props":1766,"children":1767},{"style":279},[1768],{"type":178,"value":533},{"type":173,"tag":256,"props":1770,"children":1771},{"style":341},[1772],{"type":178,"value":1773},"replace",{"type":173,"tag":256,"props":1775,"children":1776},{"style":360},[1777],{"type":178,"value":348},{"type":173,"tag":256,"props":1779,"children":1780},{"style":279},[1781],{"type":178,"value":1782},"/",{"type":173,"tag":256,"props":1784,"children":1785},{"style":306},[1786],{"type":178,"value":1787},"react",{"type":173,"tag":256,"props":1789,"children":1790},{"style":279},[1791],{"type":178,"value":1782},{"type":173,"tag":256,"props":1793,"children":1795},{"style":1794},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[1796],{"type":178,"value":1797},"g",{"type":173,"tag":256,"props":1799,"children":1800},{"style":279},[1801],{"type":178,"value":462},{"type":173,"tag":256,"props":1803,"children":1804},{"style":279},[1805],{"type":178,"value":303},{"type":173,"tag":256,"props":1807,"children":1808},{"style":306},[1809],{"type":178,"value":1810},"vue",{"type":173,"tag":256,"props":1812,"children":1813},{"style":279},[1814],{"type":178,"value":382},{"type":173,"tag":256,"props":1816,"children":1817},{"style":360},[1818],{"type":178,"value":660},{"type":173,"tag":256,"props":1820,"children":1821},{"class":258,"line":356},[1822],{"type":173,"tag":256,"props":1823,"children":1824},{"style":279},[1825],{"type":178,"value":637},{"type":173,"tag":256,"props":1827,"children":1828},{"class":258,"line":390},[1829,1834],{"type":173,"tag":256,"props":1830,"children":1831},{"style":279},[1832],{"type":178,"value":1833},"  }",{"type":173,"tag":256,"props":1835,"children":1836},{"style":360},[1837],{"type":178,"value":660},{"type":173,"tag":256,"props":1839,"children":1840},{"class":258,"line":430},[1841,1845],{"type":173,"tag":256,"props":1842,"children":1843},{"style":279},[1844],{"type":178,"value":655},{"type":173,"tag":256,"props":1846,"children":1847},{"style":285},[1848],{"type":178,"value":660},{"type":173,"tag":1509,"props":1850,"children":1852},{"id":1851},"contentfileafterparse",[1853],{"type":173,"tag":203,"props":1854,"children":1856},{"className":1855},[],[1857],{"type":178,"value":1858},"content:file:afterParse",{"type":173,"tag":174,"props":1860,"children":1861},{},[1862],{"type":178,"value":1863},"Allows you to modify a document after being parsed by parsers.",{"type":173,"tag":174,"props":1865,"children":1866},{},[1867,1872],{"type":173,"tag":1528,"props":1868,"children":1869},{},[1870],{"type":178,"value":1871},"Arguments",{"type":178,"value":368},{"type":173,"tag":196,"props":1874,"children":1875},{},[1876],{"type":173,"tag":190,"props":1877,"children":1878},{},[1879,1880],{"type":178,"value":1540},{"type":173,"tag":203,"props":1881,"children":1883},{"className":1882},[],[1884],{"type":178,"value":1885},"{ _id: string, body: any }",{"type":173,"tag":174,"props":1887,"children":1888},{},[1889],{"type":173,"tag":1528,"props":1890,"children":1891},{},[1892],{"type":178,"value":1554},{"type":173,"tag":174,"props":1894,"children":1895},{},[1896],{"type":178,"value":1897},"Using content's first picture as cover image.",{"type":173,"tag":245,"props":1899,"children":1901},{"className":247,"code":1900,"filename":1443,"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",[1902],{"type":173,"tag":203,"props":1903,"children":1904},{"__ignoreMap":167},[1905,1942,1949,1988,2051,2106,2217,2261,2273,2280,2291],{"type":173,"tag":256,"props":1906,"children":1907},{"class":258,"line":259},[1908,1912,1916,1921,1925,1929,1933,1938],{"type":173,"tag":256,"props":1909,"children":1910},{"style":273},[1911],{"type":178,"value":276},{"type":173,"tag":256,"props":1913,"children":1914},{"style":279},[1915],{"type":178,"value":282},{"type":173,"tag":256,"props":1917,"children":1918},{"style":285},[1919],{"type":178,"value":1920}," visit",{"type":173,"tag":256,"props":1922,"children":1923},{"style":279},[1924],{"type":178,"value":293},{"type":173,"tag":256,"props":1926,"children":1927},{"style":273},[1928],{"type":178,"value":298},{"type":173,"tag":256,"props":1930,"children":1931},{"style":279},[1932],{"type":178,"value":303},{"type":173,"tag":256,"props":1934,"children":1935},{"style":306},[1936],{"type":178,"value":1937},"unist-util-visit",{"type":173,"tag":256,"props":1939,"children":1940},{"style":279},[1941],{"type":178,"value":314},{"type":173,"tag":256,"props":1943,"children":1944},{"class":258,"line":269},[1945],{"type":173,"tag":256,"props":1946,"children":1947},{"emptyLinePlaceholder":321},[1948],{"type":178,"value":324},{"type":173,"tag":256,"props":1950,"children":1951},{"class":258,"line":317},[1952,1956,1960,1964,1968,1972,1976,1980,1984],{"type":173,"tag":256,"props":1953,"children":1954},{"style":273},[1955],{"type":178,"value":333},{"type":173,"tag":256,"props":1957,"children":1958},{"style":273},[1959],{"type":178,"value":338},{"type":173,"tag":256,"props":1961,"children":1962},{"style":341},[1963],{"type":178,"value":1463},{"type":173,"tag":256,"props":1965,"children":1966},{"style":285},[1967],{"type":178,"value":348},{"type":173,"tag":256,"props":1969,"children":1970},{"style":279},[1971],{"type":178,"value":348},{"type":173,"tag":256,"props":1973,"children":1974},{"style":444},[1975],{"type":178,"value":1476},{"type":173,"tag":256,"props":1977,"children":1978},{"style":279},[1979],{"type":178,"value":480},{"type":173,"tag":256,"props":1981,"children":1982},{"style":593},[1983],{"type":178,"value":596},{"type":173,"tag":256,"props":1985,"children":1986},{"style":279},[1987],{"type":178,"value":485},{"type":173,"tag":256,"props":1989,"children":1990},{"class":258,"line":327},[1991,1995,1999,2003,2007,2011,2015,2019,2023,2027,2031,2035,2039,2043,2047],{"type":173,"tag":256,"props":1992,"children":1993},{"style":285},[1994],{"type":178,"value":1613},{"type":173,"tag":256,"props":1996,"children":1997},{"style":279},[1998],{"type":178,"value":533},{"type":173,"tag":256,"props":2000,"children":2001},{"style":285},[2002],{"type":178,"value":1622},{"type":173,"tag":256,"props":2004,"children":2005},{"style":279},[2006],{"type":178,"value":533},{"type":173,"tag":256,"props":2008,"children":2009},{"style":341},[2010],{"type":178,"value":1084},{"type":173,"tag":256,"props":2012,"children":2013},{"style":360},[2014],{"type":178,"value":348},{"type":173,"tag":256,"props":2016,"children":2017},{"style":279},[2018],{"type":178,"value":382},{"type":173,"tag":256,"props":2020,"children":2021},{"style":306},[2022],{"type":178,"value":1858},{"type":173,"tag":256,"props":2024,"children":2025},{"style":279},[2026],{"type":178,"value":382},{"type":173,"tag":256,"props":2028,"children":2029},{"style":279},[2030],{"type":178,"value":462},{"type":173,"tag":256,"props":2032,"children":2033},{"style":279},[2034],{"type":178,"value":441},{"type":173,"tag":256,"props":2036,"children":2037},{"style":444},[2038],{"type":178,"value":1659},{"type":173,"tag":256,"props":2040,"children":2041},{"style":279},[2042],{"type":178,"value":480},{"type":173,"tag":256,"props":2044,"children":2045},{"style":593},[2046],{"type":178,"value":596},{"type":173,"tag":256,"props":2048,"children":2049},{"style":279},[2050],{"type":178,"value":485},{"type":173,"tag":256,"props":2052,"children":2053},{"class":258,"line":356},[2054,2058,2062,2066,2070,2074,2078,2082,2086,2090,2094,2098,2102],{"type":173,"tag":256,"props":2055,"children":2056},{"style":273},[2057],{"type":178,"value":1679},{"type":173,"tag":256,"props":2059,"children":2060},{"style":360},[2061],{"type":178,"value":441},{"type":173,"tag":256,"props":2063,"children":2064},{"style":285},[2065],{"type":178,"value":1659},{"type":173,"tag":256,"props":2067,"children":2068},{"style":279},[2069],{"type":178,"value":533},{"type":173,"tag":256,"props":2071,"children":2072},{"style":285},[2073],{"type":178,"value":447},{"type":173,"tag":256,"props":2075,"children":2076},{"style":279},[2077],{"type":178,"value":533},{"type":173,"tag":256,"props":2079,"children":2080},{"style":341},[2081],{"type":178,"value":1704},{"type":173,"tag":256,"props":2083,"children":2084},{"style":360},[2085],{"type":178,"value":348},{"type":173,"tag":256,"props":2087,"children":2088},{"style":279},[2089],{"type":178,"value":382},{"type":173,"tag":256,"props":2091,"children":2092},{"style":306},[2093],{"type":178,"value":1717},{"type":173,"tag":256,"props":2095,"children":2096},{"style":279},[2097],{"type":178,"value":382},{"type":173,"tag":256,"props":2099,"children":2100},{"style":360},[2101],{"type":178,"value":1726},{"type":173,"tag":256,"props":2103,"children":2104},{"style":279},[2105],{"type":178,"value":353},{"type":173,"tag":256,"props":2107,"children":2108},{"class":258,"line":390},[2109,2114,2118,2122,2126,2130,2134,2138,2143,2147,2152,2156,2160,2165,2169,2174,2179,2183,2188,2192,2196,2200,2205,2209,2213],{"type":173,"tag":256,"props":2110,"children":2111},{"style":341},[2112],{"type":178,"value":2113},"      visit",{"type":173,"tag":256,"props":2115,"children":2116},{"style":360},[2117],{"type":178,"value":348},{"type":173,"tag":256,"props":2119,"children":2120},{"style":285},[2121],{"type":178,"value":1659},{"type":173,"tag":256,"props":2123,"children":2124},{"style":279},[2125],{"type":178,"value":533},{"type":173,"tag":256,"props":2127,"children":2128},{"style":285},[2129],{"type":178,"value":1747},{"type":173,"tag":256,"props":2131,"children":2132},{"style":279},[2133],{"type":178,"value":462},{"type":173,"tag":256,"props":2135,"children":2136},{"style":279},[2137],{"type":178,"value":441},{"type":173,"tag":256,"props":2139,"children":2140},{"style":444},[2141],{"type":178,"value":2142},"n",{"type":173,"tag":256,"props":2144,"children":2145},{"style":279},[2146],{"type":178,"value":368},{"type":173,"tag":256,"props":2148,"children":2149},{"style":454},[2150],{"type":178,"value":2151}," any",{"type":173,"tag":256,"props":2153,"children":2154},{"style":279},[2155],{"type":178,"value":480},{"type":173,"tag":256,"props":2157,"children":2158},{"style":593},[2159],{"type":178,"value":596},{"type":173,"tag":256,"props":2161,"children":2162},{"style":285},[2163],{"type":178,"value":2164}," n",{"type":173,"tag":256,"props":2166,"children":2167},{"style":279},[2168],{"type":178,"value":533},{"type":173,"tag":256,"props":2170,"children":2171},{"style":285},[2172],{"type":178,"value":2173},"tag",{"type":173,"tag":256,"props":2175,"children":2176},{"style":279},[2177],{"type":178,"value":2178}," ===",{"type":173,"tag":256,"props":2180,"children":2181},{"style":279},[2182],{"type":178,"value":303},{"type":173,"tag":256,"props":2184,"children":2185},{"style":306},[2186],{"type":178,"value":2187},"img",{"type":173,"tag":256,"props":2189,"children":2190},{"style":279},[2191],{"type":178,"value":382},{"type":173,"tag":256,"props":2193,"children":2194},{"style":279},[2195],{"type":178,"value":462},{"type":173,"tag":256,"props":2197,"children":2198},{"style":279},[2199],{"type":178,"value":441},{"type":173,"tag":256,"props":2201,"children":2202},{"style":444},[2203],{"type":178,"value":2204},"node",{"type":173,"tag":256,"props":2206,"children":2207},{"style":279},[2208],{"type":178,"value":480},{"type":173,"tag":256,"props":2210,"children":2211},{"style":593},[2212],{"type":178,"value":596},{"type":173,"tag":256,"props":2214,"children":2215},{"style":279},[2216],{"type":178,"value":485},{"type":173,"tag":256,"props":2218,"children":2219},{"class":258,"line":430},[2220,2225,2229,2234,2238,2243,2247,2252,2256],{"type":173,"tag":256,"props":2221,"children":2222},{"style":285},[2223],{"type":178,"value":2224},"        file",{"type":173,"tag":256,"props":2226,"children":2227},{"style":279},[2228],{"type":178,"value":533},{"type":173,"tag":256,"props":2230,"children":2231},{"style":285},[2232],{"type":178,"value":2233},"coverImage",{"type":173,"tag":256,"props":2235,"children":2236},{"style":279},[2237],{"type":178,"value":854},{"type":173,"tag":256,"props":2239,"children":2240},{"style":285},[2241],{"type":178,"value":2242}," node",{"type":173,"tag":256,"props":2244,"children":2245},{"style":279},[2246],{"type":178,"value":533},{"type":173,"tag":256,"props":2248,"children":2249},{"style":285},[2250],{"type":178,"value":2251},"props",{"type":173,"tag":256,"props":2253,"children":2254},{"style":279},[2255],{"type":178,"value":533},{"type":173,"tag":256,"props":2257,"children":2258},{"style":285},[2259],{"type":178,"value":2260},"src\n",{"type":173,"tag":256,"props":2262,"children":2263},{"class":258,"line":488},[2264,2269],{"type":173,"tag":256,"props":2265,"children":2266},{"style":279},[2267],{"type":178,"value":2268},"      }",{"type":173,"tag":256,"props":2270,"children":2271},{"style":360},[2272],{"type":178,"value":660},{"type":173,"tag":256,"props":2274,"children":2275},{"class":258,"line":501},[2276],{"type":173,"tag":256,"props":2277,"children":2278},{"style":279},[2279],{"type":178,"value":637},{"type":173,"tag":256,"props":2281,"children":2282},{"class":258,"line":514},[2283,2287],{"type":173,"tag":256,"props":2284,"children":2285},{"style":279},[2286],{"type":178,"value":1833},{"type":173,"tag":256,"props":2288,"children":2289},{"style":360},[2290],{"type":178,"value":660},{"type":173,"tag":256,"props":2292,"children":2293},{"class":258,"line":631},[2294,2298],{"type":173,"tag":256,"props":2295,"children":2296},{"style":279},[2297],{"type":178,"value":655},{"type":173,"tag":256,"props":2299,"children":2300},{"style":285},[2301],{"type":178,"value":660},{"type":173,"tag":1383,"props":2303,"children":2304},{},[2305],{"type":178,"value":1387},{"title":167,"searchDepth":269,"depth":269,"links":2307},[2308,2309],{"id":1511,"depth":269,"text":1518},{"id":1851,"depth":269,"text":1858},"content:6.recipes:1.hooks.md","6.recipes/1.hooks.md","6.recipes/1.hooks",{"_path":114,"_dir":165,"_draft":166,"_partial":166,"_locale":167,"title":113,"description":2314,"body":2315,"_type":1390,"_id":3159,"_source":1392,"_file":3160,"_stem":3161,"_extension":1395},"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":2316,"toc":3155},[2317,2331,2336,2342,2355,2433,2439,2461,2489,2494,2978,2991,3004,3024,3151],{"type":173,"tag":174,"props":2318,"children":2319},{},[2320,2322,2329],{"type":178,"value":2321},"Need a complete Sitemap solution? Check out ",{"type":173,"tag":1418,"props":2323,"children":2326},{"href":2324,"rel":2325},"https://nuxtseo.com/sitemap/integrations/content",[1422],[2327],{"type":178,"value":2328},"Nuxt Simple Sitemap",{"type":178,"value":2330},", it integrates with Nuxt Content's document-driven mode and frontmatter.",{"type":173,"tag":174,"props":2332,"children":2333},{},[2334],{"type":178,"value":2335},"Otherwise, feel free to implement your own with the below guide.",{"type":173,"tag":1509,"props":2337,"children":2339},{"id":2338},"add-dependencies",[2340],{"type":178,"value":2341},"Add dependencies",{"type":173,"tag":174,"props":2343,"children":2344},{},[2345,2347,2353],{"type":178,"value":2346},"This can be created by utilising the ",{"type":173,"tag":203,"props":2348,"children":2350},{"className":2349},[],[2351],{"type":178,"value":2352},"sitemap",{"type":178,"value":2354}," library, which can be installed as follows:",{"type":173,"tag":2356,"props":2357,"children":2358},"code-group",{},[2359,2386,2409],{"type":173,"tag":245,"props":2360,"children":2365},{"className":2361,"code":2362,"filename":2363,"language":2364,"meta":167,"style":167},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","pnpm add sitemap\n","pnpm","bash",[2366],{"type":173,"tag":203,"props":2367,"children":2368},{"__ignoreMap":167},[2369],{"type":173,"tag":256,"props":2370,"children":2371},{"class":258,"line":259},[2372,2376,2381],{"type":173,"tag":256,"props":2373,"children":2374},{"style":454},[2375],{"type":178,"value":2363},{"type":173,"tag":256,"props":2377,"children":2378},{"style":306},[2379],{"type":178,"value":2380}," add",{"type":173,"tag":256,"props":2382,"children":2383},{"style":306},[2384],{"type":178,"value":2385}," sitemap\n",{"type":173,"tag":245,"props":2387,"children":2390},{"className":2361,"code":2388,"filename":2389,"language":2364,"meta":167,"style":167},"yarn add sitemap\n","yarn",[2391],{"type":173,"tag":203,"props":2392,"children":2393},{"__ignoreMap":167},[2394],{"type":173,"tag":256,"props":2395,"children":2396},{"class":258,"line":259},[2397,2401,2405],{"type":173,"tag":256,"props":2398,"children":2399},{"style":454},[2400],{"type":178,"value":2389},{"type":173,"tag":256,"props":2402,"children":2403},{"style":306},[2404],{"type":178,"value":2380},{"type":173,"tag":256,"props":2406,"children":2407},{"style":306},[2408],{"type":178,"value":2385},{"type":173,"tag":245,"props":2410,"children":2413},{"className":2361,"code":2411,"filename":2412,"language":2364,"meta":167,"style":167},"npm install sitemap\n","npm",[2414],{"type":173,"tag":203,"props":2415,"children":2416},{"__ignoreMap":167},[2417],{"type":173,"tag":256,"props":2418,"children":2419},{"class":258,"line":259},[2420,2424,2429],{"type":173,"tag":256,"props":2421,"children":2422},{"style":454},[2423],{"type":178,"value":2412},{"type":173,"tag":256,"props":2425,"children":2426},{"style":306},[2427],{"type":178,"value":2428}," install",{"type":173,"tag":256,"props":2430,"children":2431},{"style":306},[2432],{"type":178,"value":2385},{"type":173,"tag":1509,"props":2434,"children":2436},{"id":2435},"server-route",[2437],{"type":178,"value":2438},"Server Route",{"type":173,"tag":174,"props":2440,"children":2441},{},[2442,2444,2451,2453,2459],{"type":178,"value":2443},"We will be utilising the ",{"type":173,"tag":1418,"props":2445,"children":2448},{"href":2446,"rel":2447},"https://nuxt.com/docs/guide/directory-structure/server#server-routes",[1422],[2449],{"type":178,"value":2450},"server routes",{"type":178,"value":2452}," available within Nuxt, and to do so you'll need to create the ",{"type":173,"tag":203,"props":2454,"children":2456},{"className":2455},[],[2457],{"type":178,"value":2458},"server/",{"type":178,"value":2460}," directory within your website's root directly.",{"type":173,"tag":174,"props":2462,"children":2463},{},[2464,2466,2472,2474,2480,2482,2488],{"type":178,"value":2465},"Once this is done, create a ",{"type":173,"tag":203,"props":2467,"children":2469},{"className":2468},[],[2470],{"type":178,"value":2471},"routes/",{"type":178,"value":2473}," directory inside this, and add a ",{"type":173,"tag":203,"props":2475,"children":2477},{"className":2476},[],[2478],{"type":178,"value":2479},"sitemap.xml.ts",{"type":178,"value":2481}," file, this will translate to ",{"type":173,"tag":203,"props":2483,"children":2485},{"className":2484},[],[2486],{"type":178,"value":2487},"/sitemap.xml",{"type":178,"value":533},{"type":173,"tag":174,"props":2490,"children":2491},{},[2492],{"type":178,"value":2493},"You'll need to add the following:",{"type":173,"tag":245,"props":2495,"children":2498},{"className":247,"code":2496,"filename":2497,"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",[2499],{"type":173,"tag":203,"props":2500,"children":2501},{"__ignoreMap":167},[2502,2539,2584,2591,2637,2645,2696,2729,2754,2765,2772,2812,2837,2866,2891,2903,2911,2933,2941,2966],{"type":173,"tag":256,"props":2503,"children":2504},{"class":258,"line":259},[2505,2509,2513,2518,2522,2526,2530,2535],{"type":173,"tag":256,"props":2506,"children":2507},{"style":273},[2508],{"type":178,"value":276},{"type":173,"tag":256,"props":2510,"children":2511},{"style":279},[2512],{"type":178,"value":282},{"type":173,"tag":256,"props":2514,"children":2515},{"style":285},[2516],{"type":178,"value":2517}," serverQueryContent",{"type":173,"tag":256,"props":2519,"children":2520},{"style":279},[2521],{"type":178,"value":293},{"type":173,"tag":256,"props":2523,"children":2524},{"style":273},[2525],{"type":178,"value":298},{"type":173,"tag":256,"props":2527,"children":2528},{"style":279},[2529],{"type":178,"value":303},{"type":173,"tag":256,"props":2531,"children":2532},{"style":306},[2533],{"type":178,"value":2534},"#content/server",{"type":173,"tag":256,"props":2536,"children":2537},{"style":279},[2538],{"type":178,"value":314},{"type":173,"tag":256,"props":2540,"children":2541},{"class":258,"line":269},[2542,2546,2550,2555,2559,2564,2568,2572,2576,2580],{"type":173,"tag":256,"props":2543,"children":2544},{"style":273},[2545],{"type":178,"value":276},{"type":173,"tag":256,"props":2547,"children":2548},{"style":279},[2549],{"type":178,"value":282},{"type":173,"tag":256,"props":2551,"children":2552},{"style":285},[2553],{"type":178,"value":2554}," SitemapStream",{"type":173,"tag":256,"props":2556,"children":2557},{"style":279},[2558],{"type":178,"value":462},{"type":173,"tag":256,"props":2560,"children":2561},{"style":285},[2562],{"type":178,"value":2563}," streamToPromise",{"type":173,"tag":256,"props":2565,"children":2566},{"style":279},[2567],{"type":178,"value":293},{"type":173,"tag":256,"props":2569,"children":2570},{"style":273},[2571],{"type":178,"value":298},{"type":173,"tag":256,"props":2573,"children":2574},{"style":279},[2575],{"type":178,"value":303},{"type":173,"tag":256,"props":2577,"children":2578},{"style":306},[2579],{"type":178,"value":2352},{"type":173,"tag":256,"props":2581,"children":2582},{"style":279},[2583],{"type":178,"value":314},{"type":173,"tag":256,"props":2585,"children":2586},{"class":258,"line":317},[2587],{"type":173,"tag":256,"props":2588,"children":2589},{"emptyLinePlaceholder":321},[2590],{"type":178,"value":324},{"type":173,"tag":256,"props":2592,"children":2593},{"class":258,"line":327},[2594,2598,2602,2607,2611,2616,2620,2625,2629,2633],{"type":173,"tag":256,"props":2595,"children":2596},{"style":273},[2597],{"type":178,"value":333},{"type":173,"tag":256,"props":2599,"children":2600},{"style":273},[2601],{"type":178,"value":338},{"type":173,"tag":256,"props":2603,"children":2604},{"style":341},[2605],{"type":178,"value":2606}," defineEventHandler",{"type":173,"tag":256,"props":2608,"children":2609},{"style":285},[2610],{"type":178,"value":348},{"type":173,"tag":256,"props":2612,"children":2613},{"style":593},[2614],{"type":178,"value":2615},"async",{"type":173,"tag":256,"props":2617,"children":2618},{"style":279},[2619],{"type":178,"value":441},{"type":173,"tag":256,"props":2621,"children":2622},{"style":444},[2623],{"type":178,"value":2624},"event",{"type":173,"tag":256,"props":2626,"children":2627},{"style":279},[2628],{"type":178,"value":480},{"type":173,"tag":256,"props":2630,"children":2631},{"style":593},[2632],{"type":178,"value":596},{"type":173,"tag":256,"props":2634,"children":2635},{"style":279},[2636],{"type":178,"value":485},{"type":173,"tag":256,"props":2638,"children":2639},{"class":258,"line":356},[2640],{"type":173,"tag":256,"props":2641,"children":2642},{"style":263},[2643],{"type":178,"value":2644},"  // Fetch all documents\n",{"type":173,"tag":256,"props":2646,"children":2647},{"class":258,"line":390},[2648,2653,2658,2662,2667,2671,2675,2679,2683,2687,2692],{"type":173,"tag":256,"props":2649,"children":2650},{"style":593},[2651],{"type":178,"value":2652},"  const",{"type":173,"tag":256,"props":2654,"children":2655},{"style":285},[2656],{"type":178,"value":2657}," docs",{"type":173,"tag":256,"props":2659,"children":2660},{"style":279},[2661],{"type":178,"value":854},{"type":173,"tag":256,"props":2663,"children":2664},{"style":273},[2665],{"type":178,"value":2666}," await",{"type":173,"tag":256,"props":2668,"children":2669},{"style":341},[2670],{"type":178,"value":2517},{"type":173,"tag":256,"props":2672,"children":2673},{"style":360},[2674],{"type":178,"value":348},{"type":173,"tag":256,"props":2676,"children":2677},{"style":285},[2678],{"type":178,"value":2624},{"type":173,"tag":256,"props":2680,"children":2681},{"style":360},[2682],{"type":178,"value":480},{"type":173,"tag":256,"props":2684,"children":2685},{"style":279},[2686],{"type":178,"value":533},{"type":173,"tag":256,"props":2688,"children":2689},{"style":341},[2690],{"type":178,"value":2691},"find",{"type":173,"tag":256,"props":2693,"children":2694},{"style":360},[2695],{"type":178,"value":628},{"type":173,"tag":256,"props":2697,"children":2698},{"class":258,"line":430},[2699,2703,2708,2712,2717,2721,2725],{"type":173,"tag":256,"props":2700,"children":2701},{"style":593},[2702],{"type":178,"value":2652},{"type":173,"tag":256,"props":2704,"children":2705},{"style":285},[2706],{"type":178,"value":2707}," sitemap",{"type":173,"tag":256,"props":2709,"children":2710},{"style":279},[2711],{"type":178,"value":854},{"type":173,"tag":256,"props":2713,"children":2714},{"style":279},[2715],{"type":178,"value":2716}," new",{"type":173,"tag":256,"props":2718,"children":2719},{"style":341},[2720],{"type":178,"value":2554},{"type":173,"tag":256,"props":2722,"children":2723},{"style":360},[2724],{"type":178,"value":348},{"type":173,"tag":256,"props":2726,"children":2727},{"style":279},[2728],{"type":178,"value":353},{"type":173,"tag":256,"props":2730,"children":2731},{"class":258,"line":488},[2732,2737,2741,2745,2750],{"type":173,"tag":256,"props":2733,"children":2734},{"style":360},[2735],{"type":178,"value":2736},"    hostname",{"type":173,"tag":256,"props":2738,"children":2739},{"style":279},[2740],{"type":178,"value":368},{"type":173,"tag":256,"props":2742,"children":2743},{"style":279},[2744],{"type":178,"value":303},{"type":173,"tag":256,"props":2746,"children":2747},{"style":306},[2748],{"type":178,"value":2749},"https://example.com",{"type":173,"tag":256,"props":2751,"children":2752},{"style":279},[2753],{"type":178,"value":314},{"type":173,"tag":256,"props":2755,"children":2756},{"class":258,"line":501},[2757,2761],{"type":173,"tag":256,"props":2758,"children":2759},{"style":279},[2760],{"type":178,"value":1833},{"type":173,"tag":256,"props":2762,"children":2763},{"style":360},[2764],{"type":178,"value":660},{"type":173,"tag":256,"props":2766,"children":2767},{"class":258,"line":514},[2768],{"type":173,"tag":256,"props":2769,"children":2770},{"emptyLinePlaceholder":321},[2771],{"type":178,"value":324},{"type":173,"tag":256,"props":2773,"children":2774},{"class":258,"line":631},[2775,2780,2784,2789,2794,2799,2803,2808],{"type":173,"tag":256,"props":2776,"children":2777},{"style":273},[2778],{"type":178,"value":2779},"  for",{"type":173,"tag":256,"props":2781,"children":2782},{"style":360},[2783],{"type":178,"value":441},{"type":173,"tag":256,"props":2785,"children":2786},{"style":593},[2787],{"type":178,"value":2788},"const",{"type":173,"tag":256,"props":2790,"children":2791},{"style":285},[2792],{"type":178,"value":2793}," doc",{"type":173,"tag":256,"props":2795,"children":2796},{"style":279},[2797],{"type":178,"value":2798}," of",{"type":173,"tag":256,"props":2800,"children":2801},{"style":285},[2802],{"type":178,"value":2657},{"type":173,"tag":256,"props":2804,"children":2805},{"style":360},[2806],{"type":178,"value":2807},") ",{"type":173,"tag":256,"props":2809,"children":2810},{"style":279},[2811],{"type":178,"value":353},{"type":173,"tag":256,"props":2813,"children":2814},{"class":258,"line":640},[2815,2820,2824,2829,2833],{"type":173,"tag":256,"props":2816,"children":2817},{"style":285},[2818],{"type":178,"value":2819},"    sitemap",{"type":173,"tag":256,"props":2821,"children":2822},{"style":279},[2823],{"type":178,"value":533},{"type":173,"tag":256,"props":2825,"children":2826},{"style":341},[2827],{"type":178,"value":2828},"write",{"type":173,"tag":256,"props":2830,"children":2831},{"style":360},[2832],{"type":178,"value":348},{"type":173,"tag":256,"props":2834,"children":2835},{"style":279},[2836],{"type":178,"value":353},{"type":173,"tag":256,"props":2838,"children":2839},{"class":258,"line":649},[2840,2845,2849,2853,2857,2862],{"type":173,"tag":256,"props":2841,"children":2842},{"style":360},[2843],{"type":178,"value":2844},"      url",{"type":173,"tag":256,"props":2846,"children":2847},{"style":279},[2848],{"type":178,"value":368},{"type":173,"tag":256,"props":2850,"children":2851},{"style":285},[2852],{"type":178,"value":2793},{"type":173,"tag":256,"props":2854,"children":2855},{"style":279},[2856],{"type":178,"value":533},{"type":173,"tag":256,"props":2858,"children":2859},{"style":285},[2860],{"type":178,"value":2861},"_path",{"type":173,"tag":256,"props":2863,"children":2864},{"style":279},[2865],{"type":178,"value":387},{"type":173,"tag":256,"props":2867,"children":2868},{"class":258,"line":1202},[2869,2874,2878,2882,2887],{"type":173,"tag":256,"props":2870,"children":2871},{"style":360},[2872],{"type":178,"value":2873},"      changefreq",{"type":173,"tag":256,"props":2875,"children":2876},{"style":279},[2877],{"type":178,"value":368},{"type":173,"tag":256,"props":2879,"children":2880},{"style":279},[2881],{"type":178,"value":303},{"type":173,"tag":256,"props":2883,"children":2884},{"style":306},[2885],{"type":178,"value":2886},"monthly",{"type":173,"tag":256,"props":2888,"children":2889},{"style":279},[2890],{"type":178,"value":314},{"type":173,"tag":256,"props":2892,"children":2894},{"class":258,"line":2893},15,[2895,2899],{"type":173,"tag":256,"props":2896,"children":2897},{"style":279},[2898],{"type":178,"value":1188},{"type":173,"tag":256,"props":2900,"children":2901},{"style":360},[2902],{"type":178,"value":660},{"type":173,"tag":256,"props":2904,"children":2906},{"class":258,"line":2905},16,[2907],{"type":173,"tag":256,"props":2908,"children":2909},{"style":279},[2910],{"type":178,"value":646},{"type":173,"tag":256,"props":2912,"children":2914},{"class":258,"line":2913},17,[2915,2920,2924,2929],{"type":173,"tag":256,"props":2916,"children":2917},{"style":285},[2918],{"type":178,"value":2919},"  sitemap",{"type":173,"tag":256,"props":2921,"children":2922},{"style":279},[2923],{"type":178,"value":533},{"type":173,"tag":256,"props":2925,"children":2926},{"style":341},[2927],{"type":178,"value":2928},"end",{"type":173,"tag":256,"props":2930,"children":2931},{"style":360},[2932],{"type":178,"value":628},{"type":173,"tag":256,"props":2934,"children":2936},{"class":258,"line":2935},18,[2937],{"type":173,"tag":256,"props":2938,"children":2939},{"emptyLinePlaceholder":321},[2940],{"type":178,"value":324},{"type":173,"tag":256,"props":2942,"children":2944},{"class":258,"line":2943},19,[2945,2950,2954,2958,2962],{"type":173,"tag":256,"props":2946,"children":2947},{"style":273},[2948],{"type":178,"value":2949},"  return",{"type":173,"tag":256,"props":2951,"children":2952},{"style":341},[2953],{"type":178,"value":2563},{"type":173,"tag":256,"props":2955,"children":2956},{"style":360},[2957],{"type":178,"value":348},{"type":173,"tag":256,"props":2959,"children":2960},{"style":285},[2961],{"type":178,"value":2352},{"type":173,"tag":256,"props":2963,"children":2964},{"style":360},[2965],{"type":178,"value":660},{"type":173,"tag":256,"props":2967,"children":2969},{"class":258,"line":2968},20,[2970,2974],{"type":173,"tag":256,"props":2971,"children":2972},{"style":279},[2973],{"type":178,"value":655},{"type":173,"tag":256,"props":2975,"children":2976},{"style":285},[2977],{"type":178,"value":660},{"type":173,"tag":174,"props":2979,"children":2980},{},[2981,2983,2989],{"type":178,"value":2982},"Now, once users go to ",{"type":173,"tag":203,"props":2984,"children":2986},{"className":2985},[],[2987],{"type":178,"value":2988},"https://example.com/sitemap.xml",{"type":178,"value":2990},", you'll find the generated XML file with all your pages.",{"type":173,"tag":174,"props":2992,"children":2993},{},[2994,2996,3002],{"type":178,"value":2995},"When using ",{"type":173,"tag":203,"props":2997,"children":2999},{"className":2998},[],[3000],{"type":178,"value":3001},"nuxt generate",{"type":178,"value":3003},", 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":3005,"children":3006},{},[3007,3009,3015,3017,3023],{"type":178,"value":3008},"You can do this using the ",{"type":173,"tag":203,"props":3010,"children":3012},{"className":3011},[],[3013],{"type":178,"value":3014},"nitro.prerender",{"type":178,"value":3016}," option in your ",{"type":173,"tag":203,"props":3018,"children":3020},{"className":3019},[],[3021],{"type":178,"value":3022},"nuxt.config",{"type":178,"value":368},{"type":173,"tag":245,"props":3025,"children":3027},{"className":247,"code":3026,"filename":1223,"language":250,"meta":167,"style":167},"export default defineNuxtConfig({\n  // ...\n  nitro: {\n    prerender: {\n      routes: ['/sitemap.xml']\n    }\n  }\n})\n",[3028],{"type":173,"tag":203,"props":3029,"children":3030},{"__ignoreMap":167},[3031,3054,3061,3077,3093,3126,3133,3140],{"type":173,"tag":256,"props":3032,"children":3033},{"class":258,"line":259},[3034,3038,3042,3046,3050],{"type":173,"tag":256,"props":3035,"children":3036},{"style":273},[3037],{"type":178,"value":333},{"type":173,"tag":256,"props":3039,"children":3040},{"style":273},[3041],{"type":178,"value":338},{"type":173,"tag":256,"props":3043,"children":3044},{"style":341},[3045],{"type":178,"value":1280},{"type":173,"tag":256,"props":3047,"children":3048},{"style":285},[3049],{"type":178,"value":348},{"type":173,"tag":256,"props":3051,"children":3052},{"style":279},[3053],{"type":178,"value":353},{"type":173,"tag":256,"props":3055,"children":3056},{"class":258,"line":269},[3057],{"type":173,"tag":256,"props":3058,"children":3059},{"style":263},[3060],{"type":178,"value":1496},{"type":173,"tag":256,"props":3062,"children":3063},{"class":258,"line":317},[3064,3069,3073],{"type":173,"tag":256,"props":3065,"children":3066},{"style":360},[3067],{"type":178,"value":3068},"  nitro",{"type":173,"tag":256,"props":3070,"children":3071},{"style":279},[3072],{"type":178,"value":368},{"type":173,"tag":256,"props":3074,"children":3075},{"style":279},[3076],{"type":178,"value":485},{"type":173,"tag":256,"props":3078,"children":3079},{"class":258,"line":327},[3080,3085,3089],{"type":173,"tag":256,"props":3081,"children":3082},{"style":360},[3083],{"type":178,"value":3084},"    prerender",{"type":173,"tag":256,"props":3086,"children":3087},{"style":279},[3088],{"type":178,"value":368},{"type":173,"tag":256,"props":3090,"children":3091},{"style":279},[3092],{"type":178,"value":485},{"type":173,"tag":256,"props":3094,"children":3095},{"class":258,"line":356},[3096,3101,3105,3109,3113,3117,3121],{"type":173,"tag":256,"props":3097,"children":3098},{"style":360},[3099],{"type":178,"value":3100},"      routes",{"type":173,"tag":256,"props":3102,"children":3103},{"style":279},[3104],{"type":178,"value":368},{"type":173,"tag":256,"props":3106,"children":3107},{"style":285},[3108],{"type":178,"value":405},{"type":173,"tag":256,"props":3110,"children":3111},{"style":279},[3112],{"type":178,"value":382},{"type":173,"tag":256,"props":3114,"children":3115},{"style":306},[3116],{"type":178,"value":2487},{"type":173,"tag":256,"props":3118,"children":3119},{"style":279},[3120],{"type":178,"value":382},{"type":173,"tag":256,"props":3122,"children":3123},{"style":285},[3124],{"type":178,"value":3125},"]\n",{"type":173,"tag":256,"props":3127,"children":3128},{"class":258,"line":390},[3129],{"type":173,"tag":256,"props":3130,"children":3131},{"style":279},[3132],{"type":178,"value":637},{"type":173,"tag":256,"props":3134,"children":3135},{"class":258,"line":430},[3136],{"type":173,"tag":256,"props":3137,"children":3138},{"style":279},[3139],{"type":178,"value":646},{"type":173,"tag":256,"props":3141,"children":3142},{"class":258,"line":488},[3143,3147],{"type":173,"tag":256,"props":3144,"children":3145},{"style":279},[3146],{"type":178,"value":655},{"type":173,"tag":256,"props":3148,"children":3149},{"style":285},[3150],{"type":178,"value":660},{"type":173,"tag":1383,"props":3152,"children":3153},{},[3154],{"type":178,"value":1387},{"title":167,"searchDepth":269,"depth":269,"links":3156},[3157,3158],{"id":2338,"depth":269,"text":2341},{"id":2435,"depth":269,"text":2438},"content:6.recipes:3.sitemap.md","6.recipes/3.sitemap.md","6.recipes/3.sitemap",1725981874616]