[{"data":1,"prerenderedAt":4644},["ShallowReactive",2],{"navigation":3,"docs-/document-driven/use-content":164,"docs-/document-driven/use-content-surround":1528},[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":101,"_dir":165,"_draft":166,"_partial":166,"_locale":167,"title":100,"description":168,"body":169,"_type":1523,"_id":1524,"_source":1525,"_file":1526,"_extension":1527},"document-driven",false,"","The useContent() composable gives access to the current page, surrounding pages and global data.",{"type":170,"children":171,"toc":1518},"root",[172,188,464,471,476,691,697,1064,1070,1512],{"type":173,"tag":174,"props":175,"children":176},"element","p",{},[177,180,186],{"type":178,"value":179},"text","When the document driven mode is enabled, ",{"type":173,"tag":181,"props":182,"children":184},"code",{"className":183},[],[185],{"type":178,"value":100},{"type":178,"value":187}," is available everywhere in your app and gives access to a list of refs based on your content.",{"type":173,"tag":189,"props":190,"children":194},"pre",{"className":191,"code":192,"language":193,"meta":167,"style":167},"language-vue shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cscript setup lang=\"ts\">\nconst {\n  // Global references\n  globals,\n  navigation,\n  surround,\n  page,\n  // Computed properties from `page` key\n  excerpt,\n  toc,\n  type,\n  layout,\n  // Computed properties from `surround` key\n  next,\n  prev\n} = useContent()\n\u003C/script>\n","vue",[195],{"type":173,"tag":181,"props":196,"children":197},{"__ignoreMap":167},[198,252,266,276,291,304,317,330,339,352,365,378,391,400,413,422,447],{"type":173,"tag":199,"props":200,"children":203},"span",{"class":201,"line":202},"line",1,[204,210,216,222,227,232,237,243,247],{"type":173,"tag":199,"props":205,"children":207},{"style":206},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[208],{"type":178,"value":209},"\u003C",{"type":173,"tag":199,"props":211,"children":213},{"style":212},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[214],{"type":178,"value":215},"script",{"type":173,"tag":199,"props":217,"children":219},{"style":218},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[220],{"type":178,"value":221}," setup",{"type":173,"tag":199,"props":223,"children":224},{"style":218},[225],{"type":178,"value":226}," lang",{"type":173,"tag":199,"props":228,"children":229},{"style":206},[230],{"type":178,"value":231},"=",{"type":173,"tag":199,"props":233,"children":234},{"style":206},[235],{"type":178,"value":236},"\"",{"type":173,"tag":199,"props":238,"children":240},{"style":239},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[241],{"type":178,"value":242},"ts",{"type":173,"tag":199,"props":244,"children":245},{"style":206},[246],{"type":178,"value":236},{"type":173,"tag":199,"props":248,"children":249},{"style":206},[250],{"type":178,"value":251},">\n",{"type":173,"tag":199,"props":253,"children":255},{"class":201,"line":254},2,[256,261],{"type":173,"tag":199,"props":257,"children":258},{"style":218},[259],{"type":178,"value":260},"const",{"type":173,"tag":199,"props":262,"children":263},{"style":206},[264],{"type":178,"value":265}," {\n",{"type":173,"tag":199,"props":267,"children":269},{"class":201,"line":268},3,[270],{"type":173,"tag":199,"props":271,"children":273},{"style":272},"--shiki-light:#90A4AE;--shiki-default:#546E7A;--shiki-dark:#676E95;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[274],{"type":178,"value":275},"  // Global references\n",{"type":173,"tag":199,"props":277,"children":279},{"class":201,"line":278},4,[280,286],{"type":173,"tag":199,"props":281,"children":283},{"style":282},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[284],{"type":178,"value":285},"  globals",{"type":173,"tag":199,"props":287,"children":288},{"style":206},[289],{"type":178,"value":290},",\n",{"type":173,"tag":199,"props":292,"children":294},{"class":201,"line":293},5,[295,300],{"type":173,"tag":199,"props":296,"children":297},{"style":282},[298],{"type":178,"value":299},"  navigation",{"type":173,"tag":199,"props":301,"children":302},{"style":206},[303],{"type":178,"value":290},{"type":173,"tag":199,"props":305,"children":307},{"class":201,"line":306},6,[308,313],{"type":173,"tag":199,"props":309,"children":310},{"style":282},[311],{"type":178,"value":312},"  surround",{"type":173,"tag":199,"props":314,"children":315},{"style":206},[316],{"type":178,"value":290},{"type":173,"tag":199,"props":318,"children":320},{"class":201,"line":319},7,[321,326],{"type":173,"tag":199,"props":322,"children":323},{"style":282},[324],{"type":178,"value":325},"  page",{"type":173,"tag":199,"props":327,"children":328},{"style":206},[329],{"type":178,"value":290},{"type":173,"tag":199,"props":331,"children":333},{"class":201,"line":332},8,[334],{"type":173,"tag":199,"props":335,"children":336},{"style":272},[337],{"type":178,"value":338},"  // Computed properties from `page` key\n",{"type":173,"tag":199,"props":340,"children":342},{"class":201,"line":341},9,[343,348],{"type":173,"tag":199,"props":344,"children":345},{"style":282},[346],{"type":178,"value":347},"  excerpt",{"type":173,"tag":199,"props":349,"children":350},{"style":206},[351],{"type":178,"value":290},{"type":173,"tag":199,"props":353,"children":355},{"class":201,"line":354},10,[356,361],{"type":173,"tag":199,"props":357,"children":358},{"style":282},[359],{"type":178,"value":360},"  toc",{"type":173,"tag":199,"props":362,"children":363},{"style":206},[364],{"type":178,"value":290},{"type":173,"tag":199,"props":366,"children":368},{"class":201,"line":367},11,[369,374],{"type":173,"tag":199,"props":370,"children":371},{"style":282},[372],{"type":178,"value":373},"  type",{"type":173,"tag":199,"props":375,"children":376},{"style":206},[377],{"type":178,"value":290},{"type":173,"tag":199,"props":379,"children":381},{"class":201,"line":380},12,[382,387],{"type":173,"tag":199,"props":383,"children":384},{"style":282},[385],{"type":178,"value":386},"  layout",{"type":173,"tag":199,"props":388,"children":389},{"style":206},[390],{"type":178,"value":290},{"type":173,"tag":199,"props":392,"children":394},{"class":201,"line":393},13,[395],{"type":173,"tag":199,"props":396,"children":397},{"style":272},[398],{"type":178,"value":399},"  // Computed properties from `surround` key\n",{"type":173,"tag":199,"props":401,"children":403},{"class":201,"line":402},14,[404,409],{"type":173,"tag":199,"props":405,"children":406},{"style":282},[407],{"type":178,"value":408},"  next",{"type":173,"tag":199,"props":410,"children":411},{"style":206},[412],{"type":178,"value":290},{"type":173,"tag":199,"props":414,"children":416},{"class":201,"line":415},15,[417],{"type":173,"tag":199,"props":418,"children":419},{"style":282},[420],{"type":178,"value":421},"  prev\n",{"type":173,"tag":199,"props":423,"children":425},{"class":201,"line":424},16,[426,431,436,442],{"type":173,"tag":199,"props":427,"children":428},{"style":206},[429],{"type":178,"value":430},"}",{"type":173,"tag":199,"props":432,"children":433},{"style":206},[434],{"type":178,"value":435}," =",{"type":173,"tag":199,"props":437,"children":439},{"style":438},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[440],{"type":178,"value":441}," useContent",{"type":173,"tag":199,"props":443,"children":444},{"style":282},[445],{"type":178,"value":446},"()\n",{"type":173,"tag":199,"props":448,"children":450},{"class":201,"line":449},17,[451,456,460],{"type":173,"tag":199,"props":452,"children":453},{"style":206},[454],{"type":178,"value":455},"\u003C/",{"type":173,"tag":199,"props":457,"children":458},{"style":212},[459],{"type":178,"value":215},{"type":173,"tag":199,"props":461,"children":462},{"style":206},[463],{"type":178,"value":251},{"type":173,"tag":465,"props":466,"children":468},"h2",{"id":467},"rendering-the-page",[469],{"type":178,"value":470},"Rendering the page",{"type":173,"tag":174,"props":472,"children":473},{},[474],{"type":178,"value":475},"Rendering the current page becomes a bliss with this composable:",{"type":173,"tag":189,"props":477,"children":480},{"className":191,"code":478,"filename":479,"language":193,"meta":167,"style":167},"\u003Cscript setup lang=\"ts\">\nconst { page } = useContent()\n\u003C/script>\n\n\u003Ctemplate>\n  \u003CContentRenderer :key=\"page._id\" :value=\"page\" />\n\u003C/template>\n","pages/[...slug].vue",[481],{"type":173,"tag":181,"props":482,"children":483},{"__ignoreMap":167},[484,523,556,571,580,596,676],{"type":173,"tag":199,"props":485,"children":486},{"class":201,"line":202},[487,491,495,499,503,507,511,515,519],{"type":173,"tag":199,"props":488,"children":489},{"style":206},[490],{"type":178,"value":209},{"type":173,"tag":199,"props":492,"children":493},{"style":212},[494],{"type":178,"value":215},{"type":173,"tag":199,"props":496,"children":497},{"style":218},[498],{"type":178,"value":221},{"type":173,"tag":199,"props":500,"children":501},{"style":218},[502],{"type":178,"value":226},{"type":173,"tag":199,"props":504,"children":505},{"style":206},[506],{"type":178,"value":231},{"type":173,"tag":199,"props":508,"children":509},{"style":206},[510],{"type":178,"value":236},{"type":173,"tag":199,"props":512,"children":513},{"style":239},[514],{"type":178,"value":242},{"type":173,"tag":199,"props":516,"children":517},{"style":206},[518],{"type":178,"value":236},{"type":173,"tag":199,"props":520,"children":521},{"style":206},[522],{"type":178,"value":251},{"type":173,"tag":199,"props":524,"children":525},{"class":201,"line":254},[526,530,535,540,544,548,552],{"type":173,"tag":199,"props":527,"children":528},{"style":218},[529],{"type":178,"value":260},{"type":173,"tag":199,"props":531,"children":532},{"style":206},[533],{"type":178,"value":534}," {",{"type":173,"tag":199,"props":536,"children":537},{"style":282},[538],{"type":178,"value":539}," page ",{"type":173,"tag":199,"props":541,"children":542},{"style":206},[543],{"type":178,"value":430},{"type":173,"tag":199,"props":545,"children":546},{"style":206},[547],{"type":178,"value":435},{"type":173,"tag":199,"props":549,"children":550},{"style":438},[551],{"type":178,"value":441},{"type":173,"tag":199,"props":553,"children":554},{"style":282},[555],{"type":178,"value":446},{"type":173,"tag":199,"props":557,"children":558},{"class":201,"line":268},[559,563,567],{"type":173,"tag":199,"props":560,"children":561},{"style":206},[562],{"type":178,"value":455},{"type":173,"tag":199,"props":564,"children":565},{"style":212},[566],{"type":178,"value":215},{"type":173,"tag":199,"props":568,"children":569},{"style":206},[570],{"type":178,"value":251},{"type":173,"tag":199,"props":572,"children":573},{"class":201,"line":278},[574],{"type":173,"tag":199,"props":575,"children":577},{"emptyLinePlaceholder":576},true,[578],{"type":178,"value":579},"\n",{"type":173,"tag":199,"props":581,"children":582},{"class":201,"line":293},[583,587,592],{"type":173,"tag":199,"props":584,"children":585},{"style":206},[586],{"type":178,"value":209},{"type":173,"tag":199,"props":588,"children":589},{"style":212},[590],{"type":178,"value":591},"template",{"type":173,"tag":199,"props":593,"children":594},{"style":206},[595],{"type":178,"value":251},{"type":173,"tag":199,"props":597,"children":598},{"class":201,"line":306},[599,604,609,614,619,623,627,632,637,642,646,650,655,659,663,667,671],{"type":173,"tag":199,"props":600,"children":601},{"style":206},[602],{"type":178,"value":603},"  \u003C",{"type":173,"tag":199,"props":605,"children":606},{"style":212},[607],{"type":178,"value":608},"ContentRenderer",{"type":173,"tag":199,"props":610,"children":611},{"style":206},[612],{"type":178,"value":613}," :",{"type":173,"tag":199,"props":615,"children":616},{"style":218},[617],{"type":178,"value":618},"key",{"type":173,"tag":199,"props":620,"children":621},{"style":206},[622],{"type":178,"value":231},{"type":173,"tag":199,"props":624,"children":625},{"style":206},[626],{"type":178,"value":236},{"type":173,"tag":199,"props":628,"children":629},{"style":282},[630],{"type":178,"value":631},"page",{"type":173,"tag":199,"props":633,"children":634},{"style":206},[635],{"type":178,"value":636},".",{"type":173,"tag":199,"props":638,"children":639},{"style":282},[640],{"type":178,"value":641},"_id",{"type":173,"tag":199,"props":643,"children":644},{"style":206},[645],{"type":178,"value":236},{"type":173,"tag":199,"props":647,"children":648},{"style":206},[649],{"type":178,"value":613},{"type":173,"tag":199,"props":651,"children":652},{"style":218},[653],{"type":178,"value":654},"value",{"type":173,"tag":199,"props":656,"children":657},{"style":206},[658],{"type":178,"value":231},{"type":173,"tag":199,"props":660,"children":661},{"style":206},[662],{"type":178,"value":236},{"type":173,"tag":199,"props":664,"children":665},{"style":282},[666],{"type":178,"value":631},{"type":173,"tag":199,"props":668,"children":669},{"style":206},[670],{"type":178,"value":236},{"type":173,"tag":199,"props":672,"children":673},{"style":206},[674],{"type":178,"value":675}," />\n",{"type":173,"tag":199,"props":677,"children":678},{"class":201,"line":319},[679,683,687],{"type":173,"tag":199,"props":680,"children":681},{"style":206},[682],{"type":178,"value":455},{"type":173,"tag":199,"props":684,"children":685},{"style":212},[686],{"type":178,"value":591},{"type":173,"tag":199,"props":688,"children":689},{"style":206},[690],{"type":178,"value":251},{"type":173,"tag":465,"props":692,"children":694},{"id":693},"previousnext-page-component",[695],{"type":178,"value":696},"Previous/next page component",{"type":173,"tag":189,"props":698,"children":701},{"className":191,"code":699,"filename":700,"language":193,"meta":167,"style":167},"\u003Cscript setup lang=\"ts\">\nconst { prev, next } = useContent()\n\u003C/script>\n\n\u003Ctemplate>\n  \u003Cdiv>\n    \u003CNuxtLink v-if=\"prev\" :to=\"prev._path\">{{ prev.title }}\u003C/NuxtLink>\n    \u003CNuxtLink v-if=\"next\" :to=\"next._path\">{{ next.title }}\u003C/NuxtLink>\n  \u003C/div>\n\u003C/template>\n","PagePrevNext.vue",[702],{"type":173,"tag":181,"props":703,"children":704},{"__ignoreMap":167},[705,744,786,801,808,823,839,940,1033,1049],{"type":173,"tag":199,"props":706,"children":707},{"class":201,"line":202},[708,712,716,720,724,728,732,736,740],{"type":173,"tag":199,"props":709,"children":710},{"style":206},[711],{"type":178,"value":209},{"type":173,"tag":199,"props":713,"children":714},{"style":212},[715],{"type":178,"value":215},{"type":173,"tag":199,"props":717,"children":718},{"style":218},[719],{"type":178,"value":221},{"type":173,"tag":199,"props":721,"children":722},{"style":218},[723],{"type":178,"value":226},{"type":173,"tag":199,"props":725,"children":726},{"style":206},[727],{"type":178,"value":231},{"type":173,"tag":199,"props":729,"children":730},{"style":206},[731],{"type":178,"value":236},{"type":173,"tag":199,"props":733,"children":734},{"style":239},[735],{"type":178,"value":242},{"type":173,"tag":199,"props":737,"children":738},{"style":206},[739],{"type":178,"value":236},{"type":173,"tag":199,"props":741,"children":742},{"style":206},[743],{"type":178,"value":251},{"type":173,"tag":199,"props":745,"children":746},{"class":201,"line":254},[747,751,755,760,765,770,774,778,782],{"type":173,"tag":199,"props":748,"children":749},{"style":218},[750],{"type":178,"value":260},{"type":173,"tag":199,"props":752,"children":753},{"style":206},[754],{"type":178,"value":534},{"type":173,"tag":199,"props":756,"children":757},{"style":282},[758],{"type":178,"value":759}," prev",{"type":173,"tag":199,"props":761,"children":762},{"style":206},[763],{"type":178,"value":764},",",{"type":173,"tag":199,"props":766,"children":767},{"style":282},[768],{"type":178,"value":769}," next ",{"type":173,"tag":199,"props":771,"children":772},{"style":206},[773],{"type":178,"value":430},{"type":173,"tag":199,"props":775,"children":776},{"style":206},[777],{"type":178,"value":435},{"type":173,"tag":199,"props":779,"children":780},{"style":438},[781],{"type":178,"value":441},{"type":173,"tag":199,"props":783,"children":784},{"style":282},[785],{"type":178,"value":446},{"type":173,"tag":199,"props":787,"children":788},{"class":201,"line":268},[789,793,797],{"type":173,"tag":199,"props":790,"children":791},{"style":206},[792],{"type":178,"value":455},{"type":173,"tag":199,"props":794,"children":795},{"style":212},[796],{"type":178,"value":215},{"type":173,"tag":199,"props":798,"children":799},{"style":206},[800],{"type":178,"value":251},{"type":173,"tag":199,"props":802,"children":803},{"class":201,"line":278},[804],{"type":173,"tag":199,"props":805,"children":806},{"emptyLinePlaceholder":576},[807],{"type":178,"value":579},{"type":173,"tag":199,"props":809,"children":810},{"class":201,"line":293},[811,815,819],{"type":173,"tag":199,"props":812,"children":813},{"style":206},[814],{"type":178,"value":209},{"type":173,"tag":199,"props":816,"children":817},{"style":212},[818],{"type":178,"value":591},{"type":173,"tag":199,"props":820,"children":821},{"style":206},[822],{"type":178,"value":251},{"type":173,"tag":199,"props":824,"children":825},{"class":201,"line":306},[826,830,835],{"type":173,"tag":199,"props":827,"children":828},{"style":206},[829],{"type":178,"value":603},{"type":173,"tag":199,"props":831,"children":832},{"style":212},[833],{"type":178,"value":834},"div",{"type":173,"tag":199,"props":836,"children":837},{"style":206},[838],{"type":178,"value":251},{"type":173,"tag":199,"props":840,"children":841},{"class":201,"line":319},[842,847,852,858,862,866,871,875,879,884,888,892,896,900,905,909,914,918,922,927,932,936],{"type":173,"tag":199,"props":843,"children":844},{"style":206},[845],{"type":178,"value":846},"    \u003C",{"type":173,"tag":199,"props":848,"children":849},{"style":212},[850],{"type":178,"value":851},"NuxtLink",{"type":173,"tag":199,"props":853,"children":855},{"style":854},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[856],{"type":178,"value":857}," v-if",{"type":173,"tag":199,"props":859,"children":860},{"style":206},[861],{"type":178,"value":231},{"type":173,"tag":199,"props":863,"children":864},{"style":206},[865],{"type":178,"value":236},{"type":173,"tag":199,"props":867,"children":868},{"style":282},[869],{"type":178,"value":870},"prev",{"type":173,"tag":199,"props":872,"children":873},{"style":206},[874],{"type":178,"value":236},{"type":173,"tag":199,"props":876,"children":877},{"style":206},[878],{"type":178,"value":613},{"type":173,"tag":199,"props":880,"children":881},{"style":218},[882],{"type":178,"value":883},"to",{"type":173,"tag":199,"props":885,"children":886},{"style":206},[887],{"type":178,"value":231},{"type":173,"tag":199,"props":889,"children":890},{"style":206},[891],{"type":178,"value":236},{"type":173,"tag":199,"props":893,"children":894},{"style":282},[895],{"type":178,"value":870},{"type":173,"tag":199,"props":897,"children":898},{"style":206},[899],{"type":178,"value":636},{"type":173,"tag":199,"props":901,"children":902},{"style":282},[903],{"type":178,"value":904},"_path",{"type":173,"tag":199,"props":906,"children":907},{"style":206},[908],{"type":178,"value":236},{"type":173,"tag":199,"props":910,"children":911},{"style":206},[912],{"type":178,"value":913},">{{",{"type":173,"tag":199,"props":915,"children":916},{"style":282},[917],{"type":178,"value":759},{"type":173,"tag":199,"props":919,"children":920},{"style":206},[921],{"type":178,"value":636},{"type":173,"tag":199,"props":923,"children":924},{"style":282},[925],{"type":178,"value":926},"title ",{"type":173,"tag":199,"props":928,"children":929},{"style":206},[930],{"type":178,"value":931},"}}\u003C/",{"type":173,"tag":199,"props":933,"children":934},{"style":212},[935],{"type":178,"value":851},{"type":173,"tag":199,"props":937,"children":938},{"style":206},[939],{"type":178,"value":251},{"type":173,"tag":199,"props":941,"children":942},{"class":201,"line":332},[943,947,951,955,959,963,968,972,976,980,984,988,992,996,1000,1004,1008,1013,1017,1021,1025,1029],{"type":173,"tag":199,"props":944,"children":945},{"style":206},[946],{"type":178,"value":846},{"type":173,"tag":199,"props":948,"children":949},{"style":212},[950],{"type":178,"value":851},{"type":173,"tag":199,"props":952,"children":953},{"style":854},[954],{"type":178,"value":857},{"type":173,"tag":199,"props":956,"children":957},{"style":206},[958],{"type":178,"value":231},{"type":173,"tag":199,"props":960,"children":961},{"style":206},[962],{"type":178,"value":236},{"type":173,"tag":199,"props":964,"children":965},{"style":282},[966],{"type":178,"value":967},"next",{"type":173,"tag":199,"props":969,"children":970},{"style":206},[971],{"type":178,"value":236},{"type":173,"tag":199,"props":973,"children":974},{"style":206},[975],{"type":178,"value":613},{"type":173,"tag":199,"props":977,"children":978},{"style":218},[979],{"type":178,"value":883},{"type":173,"tag":199,"props":981,"children":982},{"style":206},[983],{"type":178,"value":231},{"type":173,"tag":199,"props":985,"children":986},{"style":206},[987],{"type":178,"value":236},{"type":173,"tag":199,"props":989,"children":990},{"style":282},[991],{"type":178,"value":967},{"type":173,"tag":199,"props":993,"children":994},{"style":206},[995],{"type":178,"value":636},{"type":173,"tag":199,"props":997,"children":998},{"style":282},[999],{"type":178,"value":904},{"type":173,"tag":199,"props":1001,"children":1002},{"style":206},[1003],{"type":178,"value":236},{"type":173,"tag":199,"props":1005,"children":1006},{"style":206},[1007],{"type":178,"value":913},{"type":173,"tag":199,"props":1009,"children":1010},{"style":282},[1011],{"type":178,"value":1012}," next",{"type":173,"tag":199,"props":1014,"children":1015},{"style":206},[1016],{"type":178,"value":636},{"type":173,"tag":199,"props":1018,"children":1019},{"style":282},[1020],{"type":178,"value":926},{"type":173,"tag":199,"props":1022,"children":1023},{"style":206},[1024],{"type":178,"value":931},{"type":173,"tag":199,"props":1026,"children":1027},{"style":212},[1028],{"type":178,"value":851},{"type":173,"tag":199,"props":1030,"children":1031},{"style":206},[1032],{"type":178,"value":251},{"type":173,"tag":199,"props":1034,"children":1035},{"class":201,"line":341},[1036,1041,1045],{"type":173,"tag":199,"props":1037,"children":1038},{"style":206},[1039],{"type":178,"value":1040},"  \u003C/",{"type":173,"tag":199,"props":1042,"children":1043},{"style":212},[1044],{"type":178,"value":834},{"type":173,"tag":199,"props":1046,"children":1047},{"style":206},[1048],{"type":178,"value":251},{"type":173,"tag":199,"props":1050,"children":1051},{"class":201,"line":354},[1052,1056,1060],{"type":173,"tag":199,"props":1053,"children":1054},{"style":206},[1055],{"type":178,"value":455},{"type":173,"tag":199,"props":1057,"children":1058},{"style":212},[1059],{"type":178,"value":591},{"type":173,"tag":199,"props":1061,"children":1062},{"style":206},[1063],{"type":178,"value":251},{"type":173,"tag":465,"props":1065,"children":1067},{"id":1066},"table-of-contents-component",[1068],{"type":178,"value":1069},"Table of Contents component",{"type":173,"tag":189,"props":1071,"children":1074},{"className":191,"code":1072,"filename":1073,"language":193,"meta":167,"style":167},"\u003Cscript setup lang=\"ts\">\nconst { toc } = useContent()\n\u003C/script>\n\n\u003Ctemplate>\n  \u003Cdiv>\n    \u003Cul v-if=\"toc && toc.links\">\n      \u003Cli v-for=\"link in toc.links\" :key=\"link.text\">\n        \u003Ca :href=\"`#${link.id}`\">\n          {{ link.text }}\n        \u003C/a>\n      \u003C/li>\n    \u003C/ul>\n  \u003C/div>\n\u003C/template>\n","PageToc.vue",[1075],{"type":173,"tag":181,"props":1076,"children":1077},{"__ignoreMap":167},[1078,1117,1149,1164,1171,1186,1201,1256,1344,1407,1434,1450,1466,1482,1497],{"type":173,"tag":199,"props":1079,"children":1080},{"class":201,"line":202},[1081,1085,1089,1093,1097,1101,1105,1109,1113],{"type":173,"tag":199,"props":1082,"children":1083},{"style":206},[1084],{"type":178,"value":209},{"type":173,"tag":199,"props":1086,"children":1087},{"style":212},[1088],{"type":178,"value":215},{"type":173,"tag":199,"props":1090,"children":1091},{"style":218},[1092],{"type":178,"value":221},{"type":173,"tag":199,"props":1094,"children":1095},{"style":218},[1096],{"type":178,"value":226},{"type":173,"tag":199,"props":1098,"children":1099},{"style":206},[1100],{"type":178,"value":231},{"type":173,"tag":199,"props":1102,"children":1103},{"style":206},[1104],{"type":178,"value":236},{"type":173,"tag":199,"props":1106,"children":1107},{"style":239},[1108],{"type":178,"value":242},{"type":173,"tag":199,"props":1110,"children":1111},{"style":206},[1112],{"type":178,"value":236},{"type":173,"tag":199,"props":1114,"children":1115},{"style":206},[1116],{"type":178,"value":251},{"type":173,"tag":199,"props":1118,"children":1119},{"class":201,"line":254},[1120,1124,1128,1133,1137,1141,1145],{"type":173,"tag":199,"props":1121,"children":1122},{"style":218},[1123],{"type":178,"value":260},{"type":173,"tag":199,"props":1125,"children":1126},{"style":206},[1127],{"type":178,"value":534},{"type":173,"tag":199,"props":1129,"children":1130},{"style":282},[1131],{"type":178,"value":1132}," toc ",{"type":173,"tag":199,"props":1134,"children":1135},{"style":206},[1136],{"type":178,"value":430},{"type":173,"tag":199,"props":1138,"children":1139},{"style":206},[1140],{"type":178,"value":435},{"type":173,"tag":199,"props":1142,"children":1143},{"style":438},[1144],{"type":178,"value":441},{"type":173,"tag":199,"props":1146,"children":1147},{"style":282},[1148],{"type":178,"value":446},{"type":173,"tag":199,"props":1150,"children":1151},{"class":201,"line":268},[1152,1156,1160],{"type":173,"tag":199,"props":1153,"children":1154},{"style":206},[1155],{"type":178,"value":455},{"type":173,"tag":199,"props":1157,"children":1158},{"style":212},[1159],{"type":178,"value":215},{"type":173,"tag":199,"props":1161,"children":1162},{"style":206},[1163],{"type":178,"value":251},{"type":173,"tag":199,"props":1165,"children":1166},{"class":201,"line":278},[1167],{"type":173,"tag":199,"props":1168,"children":1169},{"emptyLinePlaceholder":576},[1170],{"type":178,"value":579},{"type":173,"tag":199,"props":1172,"children":1173},{"class":201,"line":293},[1174,1178,1182],{"type":173,"tag":199,"props":1175,"children":1176},{"style":206},[1177],{"type":178,"value":209},{"type":173,"tag":199,"props":1179,"children":1180},{"style":212},[1181],{"type":178,"value":591},{"type":173,"tag":199,"props":1183,"children":1184},{"style":206},[1185],{"type":178,"value":251},{"type":173,"tag":199,"props":1187,"children":1188},{"class":201,"line":306},[1189,1193,1197],{"type":173,"tag":199,"props":1190,"children":1191},{"style":206},[1192],{"type":178,"value":603},{"type":173,"tag":199,"props":1194,"children":1195},{"style":212},[1196],{"type":178,"value":834},{"type":173,"tag":199,"props":1198,"children":1199},{"style":206},[1200],{"type":178,"value":251},{"type":173,"tag":199,"props":1202,"children":1203},{"class":201,"line":319},[1204,1208,1213,1217,1221,1225,1230,1235,1239,1243,1248,1252],{"type":173,"tag":199,"props":1205,"children":1206},{"style":206},[1207],{"type":178,"value":846},{"type":173,"tag":199,"props":1209,"children":1210},{"style":212},[1211],{"type":178,"value":1212},"ul",{"type":173,"tag":199,"props":1214,"children":1215},{"style":854},[1216],{"type":178,"value":857},{"type":173,"tag":199,"props":1218,"children":1219},{"style":206},[1220],{"type":178,"value":231},{"type":173,"tag":199,"props":1222,"children":1223},{"style":206},[1224],{"type":178,"value":236},{"type":173,"tag":199,"props":1226,"children":1227},{"style":282},[1228],{"type":178,"value":1229},"toc",{"type":173,"tag":199,"props":1231,"children":1232},{"style":206},[1233],{"type":178,"value":1234}," && ",{"type":173,"tag":199,"props":1236,"children":1237},{"style":282},[1238],{"type":178,"value":1229},{"type":173,"tag":199,"props":1240,"children":1241},{"style":206},[1242],{"type":178,"value":636},{"type":173,"tag":199,"props":1244,"children":1245},{"style":282},[1246],{"type":178,"value":1247},"links",{"type":173,"tag":199,"props":1249,"children":1250},{"style":206},[1251],{"type":178,"value":236},{"type":173,"tag":199,"props":1253,"children":1254},{"style":206},[1255],{"type":178,"value":251},{"type":173,"tag":199,"props":1257,"children":1258},{"class":201,"line":332},[1259,1264,1269,1274,1278,1282,1287,1292,1296,1300,1304,1308,1312,1316,1320,1324,1328,1332,1336,1340],{"type":173,"tag":199,"props":1260,"children":1261},{"style":206},[1262],{"type":178,"value":1263},"      \u003C",{"type":173,"tag":199,"props":1265,"children":1266},{"style":212},[1267],{"type":178,"value":1268},"li",{"type":173,"tag":199,"props":1270,"children":1271},{"style":854},[1272],{"type":178,"value":1273}," v-for",{"type":173,"tag":199,"props":1275,"children":1276},{"style":206},[1277],{"type":178,"value":231},{"type":173,"tag":199,"props":1279,"children":1280},{"style":206},[1281],{"type":178,"value":236},{"type":173,"tag":199,"props":1283,"children":1284},{"style":282},[1285],{"type":178,"value":1286},"link",{"type":173,"tag":199,"props":1288,"children":1289},{"style":206},[1290],{"type":178,"value":1291}," in ",{"type":173,"tag":199,"props":1293,"children":1294},{"style":282},[1295],{"type":178,"value":1229},{"type":173,"tag":199,"props":1297,"children":1298},{"style":206},[1299],{"type":178,"value":636},{"type":173,"tag":199,"props":1301,"children":1302},{"style":282},[1303],{"type":178,"value":1247},{"type":173,"tag":199,"props":1305,"children":1306},{"style":206},[1307],{"type":178,"value":236},{"type":173,"tag":199,"props":1309,"children":1310},{"style":206},[1311],{"type":178,"value":613},{"type":173,"tag":199,"props":1313,"children":1314},{"style":218},[1315],{"type":178,"value":618},{"type":173,"tag":199,"props":1317,"children":1318},{"style":206},[1319],{"type":178,"value":231},{"type":173,"tag":199,"props":1321,"children":1322},{"style":206},[1323],{"type":178,"value":236},{"type":173,"tag":199,"props":1325,"children":1326},{"style":282},[1327],{"type":178,"value":1286},{"type":173,"tag":199,"props":1329,"children":1330},{"style":206},[1331],{"type":178,"value":636},{"type":173,"tag":199,"props":1333,"children":1334},{"style":282},[1335],{"type":178,"value":178},{"type":173,"tag":199,"props":1337,"children":1338},{"style":206},[1339],{"type":178,"value":236},{"type":173,"tag":199,"props":1341,"children":1342},{"style":206},[1343],{"type":178,"value":251},{"type":173,"tag":199,"props":1345,"children":1346},{"class":201,"line":341},[1347,1352,1357,1361,1366,1370,1375,1380,1385,1389,1393,1398,1403],{"type":173,"tag":199,"props":1348,"children":1349},{"style":206},[1350],{"type":178,"value":1351},"        \u003C",{"type":173,"tag":199,"props":1353,"children":1354},{"style":212},[1355],{"type":178,"value":1356},"a",{"type":173,"tag":199,"props":1358,"children":1359},{"style":206},[1360],{"type":178,"value":613},{"type":173,"tag":199,"props":1362,"children":1363},{"style":218},[1364],{"type":178,"value":1365},"href",{"type":173,"tag":199,"props":1367,"children":1368},{"style":206},[1369],{"type":178,"value":231},{"type":173,"tag":199,"props":1371,"children":1372},{"style":206},[1373],{"type":178,"value":1374},"\"`",{"type":173,"tag":199,"props":1376,"children":1377},{"style":239},[1378],{"type":178,"value":1379},"#",{"type":173,"tag":199,"props":1381,"children":1382},{"style":206},[1383],{"type":178,"value":1384},"${",{"type":173,"tag":199,"props":1386,"children":1387},{"style":282},[1388],{"type":178,"value":1286},{"type":173,"tag":199,"props":1390,"children":1391},{"style":206},[1392],{"type":178,"value":636},{"type":173,"tag":199,"props":1394,"children":1395},{"style":282},[1396],{"type":178,"value":1397},"id",{"type":173,"tag":199,"props":1399,"children":1400},{"style":206},[1401],{"type":178,"value":1402},"}`\"",{"type":173,"tag":199,"props":1404,"children":1405},{"style":206},[1406],{"type":178,"value":251},{"type":173,"tag":199,"props":1408,"children":1409},{"class":201,"line":354},[1410,1415,1420,1424,1429],{"type":173,"tag":199,"props":1411,"children":1412},{"style":206},[1413],{"type":178,"value":1414},"          {{",{"type":173,"tag":199,"props":1416,"children":1417},{"style":282},[1418],{"type":178,"value":1419}," link",{"type":173,"tag":199,"props":1421,"children":1422},{"style":206},[1423],{"type":178,"value":636},{"type":173,"tag":199,"props":1425,"children":1426},{"style":282},[1427],{"type":178,"value":1428},"text ",{"type":173,"tag":199,"props":1430,"children":1431},{"style":206},[1432],{"type":178,"value":1433},"}}\n",{"type":173,"tag":199,"props":1435,"children":1436},{"class":201,"line":367},[1437,1442,1446],{"type":173,"tag":199,"props":1438,"children":1439},{"style":206},[1440],{"type":178,"value":1441},"        \u003C/",{"type":173,"tag":199,"props":1443,"children":1444},{"style":212},[1445],{"type":178,"value":1356},{"type":173,"tag":199,"props":1447,"children":1448},{"style":206},[1449],{"type":178,"value":251},{"type":173,"tag":199,"props":1451,"children":1452},{"class":201,"line":380},[1453,1458,1462],{"type":173,"tag":199,"props":1454,"children":1455},{"style":206},[1456],{"type":178,"value":1457},"      \u003C/",{"type":173,"tag":199,"props":1459,"children":1460},{"style":212},[1461],{"type":178,"value":1268},{"type":173,"tag":199,"props":1463,"children":1464},{"style":206},[1465],{"type":178,"value":251},{"type":173,"tag":199,"props":1467,"children":1468},{"class":201,"line":393},[1469,1474,1478],{"type":173,"tag":199,"props":1470,"children":1471},{"style":206},[1472],{"type":178,"value":1473},"    \u003C/",{"type":173,"tag":199,"props":1475,"children":1476},{"style":212},[1477],{"type":178,"value":1212},{"type":173,"tag":199,"props":1479,"children":1480},{"style":206},[1481],{"type":178,"value":251},{"type":173,"tag":199,"props":1483,"children":1484},{"class":201,"line":402},[1485,1489,1493],{"type":173,"tag":199,"props":1486,"children":1487},{"style":206},[1488],{"type":178,"value":1040},{"type":173,"tag":199,"props":1490,"children":1491},{"style":212},[1492],{"type":178,"value":834},{"type":173,"tag":199,"props":1494,"children":1495},{"style":206},[1496],{"type":178,"value":251},{"type":173,"tag":199,"props":1498,"children":1499},{"class":201,"line":415},[1500,1504,1508],{"type":173,"tag":199,"props":1501,"children":1502},{"style":206},[1503],{"type":178,"value":455},{"type":173,"tag":199,"props":1505,"children":1506},{"style":212},[1507],{"type":178,"value":591},{"type":173,"tag":199,"props":1509,"children":1510},{"style":206},[1511],{"type":178,"value":251},{"type":173,"tag":1513,"props":1514,"children":1515},"style",{},[1516],{"type":178,"value":1517},"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":254,"depth":254,"links":1519},[1520,1521,1522],{"id":467,"depth":254,"text":470},{"id":693,"depth":254,"text":696},{"id":1066,"depth":254,"text":1069},"markdown","content:5.document-driven:2.use-content.md","content","5.document-driven/2.use-content.md","md",[1529,3725],{"_path":98,"_dir":165,"_draft":166,"_partial":166,"_locale":167,"title":97,"description":1530,"body":1531,"_type":1523,"_id":3723,"_source":1525,"_file":3724,"_extension":1527},"The Document-driven mode gives a lot more power to Markdown-based websites.",{"type":170,"children":1532,"toc":3706},[1533,1550,1556,1563,1588,1718,1724,1729,1816,1827,1833,1847,1861,1869,1881,1887,1892,1905,1917,1922,1996,2008,2013,2083,2089,2094,2150,2163,2181,2305,2339,2345,2359,2382,2419,2577,2583,2588,2608,2847,2867,2886,2935,2940,2946,2958,2964,2998,3103,3109,3121,3278,3284,3303,3503,3702],{"type":173,"tag":1534,"props":1535,"children":1536},"callout",{},[1537],{"type":173,"tag":174,"props":1538,"children":1539},{},[1540,1542,1548],{"type":178,"value":1541},"Note that this mode is still experimental and may break in the future. We are considering a more stable API for the future leveraging ",{"type":173,"tag":181,"props":1543,"children":1545},{"className":1544},[],[1546],{"type":178,"value":1547},"pages/*.md",{"type":178,"value":1549}," files.",{"type":173,"tag":465,"props":1551,"children":1553},{"id":1552},"enable-the-mode",[1554],{"type":178,"value":1555},"Enable the mode",{"type":173,"tag":1557,"props":1558,"children":1560},"h3",{"id":1559},"existing-project",[1561],{"type":178,"value":1562},"Existing project",{"type":173,"tag":174,"props":1564,"children":1565},{},[1566,1568,1578,1580,1586],{"type":178,"value":1567},"Add the ",{"type":173,"tag":1356,"props":1569,"children":1571},{"href":1570},"/get-started/configuration#documentdriven",[1572],{"type":173,"tag":181,"props":1573,"children":1575},{"className":1574},[],[1576],{"type":178,"value":1577},"documentDriven",{"type":178,"value":1579}," option in the ",{"type":173,"tag":181,"props":1581,"children":1583},{"className":1582},[],[1584],{"type":178,"value":1585},"nuxt.config",{"type":178,"value":1587},":",{"type":173,"tag":189,"props":1589,"children":1592},{"code":1590,"language":242,"meta":167,"className":1591,"style":167},"export default defineNuxtConfig({\n  modules: ['@nuxt/content'],\n  content: {\n    documentDriven: true\n  }\n})\n","language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight",[1593],{"type":173,"tag":181,"props":1594,"children":1595},{"__ignoreMap":167},[1596,1624,1664,1680,1698,1706],{"type":173,"tag":199,"props":1597,"children":1598},{"class":201,"line":202},[1599,1604,1609,1614,1619],{"type":173,"tag":199,"props":1600,"children":1601},{"style":854},[1602],{"type":178,"value":1603},"export",{"type":173,"tag":199,"props":1605,"children":1606},{"style":854},[1607],{"type":178,"value":1608}," default",{"type":173,"tag":199,"props":1610,"children":1611},{"style":438},[1612],{"type":178,"value":1613}," defineNuxtConfig",{"type":173,"tag":199,"props":1615,"children":1616},{"style":282},[1617],{"type":178,"value":1618},"(",{"type":173,"tag":199,"props":1620,"children":1621},{"style":206},[1622],{"type":178,"value":1623},"{\n",{"type":173,"tag":199,"props":1625,"children":1626},{"class":201,"line":254},[1627,1632,1636,1641,1646,1651,1655,1660],{"type":173,"tag":199,"props":1628,"children":1629},{"style":212},[1630],{"type":178,"value":1631},"  modules",{"type":173,"tag":199,"props":1633,"children":1634},{"style":206},[1635],{"type":178,"value":1587},{"type":173,"tag":199,"props":1637,"children":1638},{"style":282},[1639],{"type":178,"value":1640}," [",{"type":173,"tag":199,"props":1642,"children":1643},{"style":206},[1644],{"type":178,"value":1645},"'",{"type":173,"tag":199,"props":1647,"children":1648},{"style":239},[1649],{"type":178,"value":1650},"@nuxt/content",{"type":173,"tag":199,"props":1652,"children":1653},{"style":206},[1654],{"type":178,"value":1645},{"type":173,"tag":199,"props":1656,"children":1657},{"style":282},[1658],{"type":178,"value":1659},"]",{"type":173,"tag":199,"props":1661,"children":1662},{"style":206},[1663],{"type":178,"value":290},{"type":173,"tag":199,"props":1665,"children":1666},{"class":201,"line":268},[1667,1672,1676],{"type":173,"tag":199,"props":1668,"children":1669},{"style":212},[1670],{"type":178,"value":1671},"  content",{"type":173,"tag":199,"props":1673,"children":1674},{"style":206},[1675],{"type":178,"value":1587},{"type":173,"tag":199,"props":1677,"children":1678},{"style":206},[1679],{"type":178,"value":265},{"type":173,"tag":199,"props":1681,"children":1682},{"class":201,"line":278},[1683,1688,1692],{"type":173,"tag":199,"props":1684,"children":1685},{"style":212},[1686],{"type":178,"value":1687},"    documentDriven",{"type":173,"tag":199,"props":1689,"children":1690},{"style":206},[1691],{"type":178,"value":1587},{"type":173,"tag":199,"props":1693,"children":1695},{"style":1694},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[1696],{"type":178,"value":1697}," true\n",{"type":173,"tag":199,"props":1699,"children":1700},{"class":201,"line":293},[1701],{"type":173,"tag":199,"props":1702,"children":1703},{"style":206},[1704],{"type":178,"value":1705},"  }\n",{"type":173,"tag":199,"props":1707,"children":1708},{"class":201,"line":306},[1709,1713],{"type":173,"tag":199,"props":1710,"children":1711},{"style":206},[1712],{"type":178,"value":430},{"type":173,"tag":199,"props":1714,"children":1715},{"style":282},[1716],{"type":178,"value":1717},")\n",{"type":173,"tag":1557,"props":1719,"children":1721},{"id":1720},"fresh-project",[1722],{"type":178,"value":1723},"Fresh project",{"type":173,"tag":174,"props":1725,"children":1726},{},[1727],{"type":178,"value":1728},"Start a new project with the document-driven mode enabled:",{"type":173,"tag":1730,"props":1731,"children":1732},"code-group",{},[1733,1776],{"type":173,"tag":189,"props":1734,"children":1739},{"code":1735,"filename":1736,"language":1737,"meta":167,"className":1738,"style":167},"npx nuxi init doc-driven-app -t doc-driven\n","npx","bash","language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight",[1740],{"type":173,"tag":181,"props":1741,"children":1742},{"__ignoreMap":167},[1743],{"type":173,"tag":199,"props":1744,"children":1745},{"class":201,"line":202},[1746,1751,1756,1761,1766,1771],{"type":173,"tag":199,"props":1747,"children":1749},{"style":1748},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[1750],{"type":178,"value":1736},{"type":173,"tag":199,"props":1752,"children":1753},{"style":239},[1754],{"type":178,"value":1755}," nuxi",{"type":173,"tag":199,"props":1757,"children":1758},{"style":239},[1759],{"type":178,"value":1760}," init",{"type":173,"tag":199,"props":1762,"children":1763},{"style":239},[1764],{"type":178,"value":1765}," doc-driven-app",{"type":173,"tag":199,"props":1767,"children":1768},{"style":239},[1769],{"type":178,"value":1770}," -t",{"type":173,"tag":199,"props":1772,"children":1773},{"style":239},[1774],{"type":178,"value":1775}," doc-driven\n",{"type":173,"tag":189,"props":1777,"children":1780},{"code":1778,"filename":1779,"language":1737,"meta":167,"className":1738,"style":167},"pnpm dlx nuxi init doc-driven-app -t doc-driven\n","pnpm",[1781],{"type":173,"tag":181,"props":1782,"children":1783},{"__ignoreMap":167},[1784],{"type":173,"tag":199,"props":1785,"children":1786},{"class":201,"line":202},[1787,1791,1796,1800,1804,1808,1812],{"type":173,"tag":199,"props":1788,"children":1789},{"style":1748},[1790],{"type":178,"value":1779},{"type":173,"tag":199,"props":1792,"children":1793},{"style":239},[1794],{"type":178,"value":1795}," dlx",{"type":173,"tag":199,"props":1797,"children":1798},{"style":239},[1799],{"type":178,"value":1755},{"type":173,"tag":199,"props":1801,"children":1802},{"style":239},[1803],{"type":178,"value":1760},{"type":173,"tag":199,"props":1805,"children":1806},{"style":239},[1807],{"type":178,"value":1765},{"type":173,"tag":199,"props":1809,"children":1810},{"style":239},[1811],{"type":178,"value":1770},{"type":173,"tag":199,"props":1813,"children":1814},{"style":239},[1815],{"type":178,"value":1775},{"type":173,"tag":174,"props":1817,"children":1818},{},[1819,1821,1826],{"type":178,"value":1820},"You can also use an object to configure the behavior of the mode, checkout the ",{"type":173,"tag":1356,"props":1822,"children":1823},{"href":1570},[1824],{"type":178,"value":1825},"configuration section",{"type":178,"value":636},{"type":173,"tag":465,"props":1828,"children":1830},{"id":1829},"catch-all-page",[1831],{"type":178,"value":1832},"Catch-all page",{"type":173,"tag":174,"props":1834,"children":1835},{},[1836,1838,1846],{"type":178,"value":1837},"The document driven mode ships a pre-configured ",{"type":173,"tag":1356,"props":1839,"children":1843},{"href":1840,"rel":1841},"https://nuxt.com/docs/guide/directory-structure/pages#catch-all-route",[1842],"nofollow",[1844],{"type":178,"value":1845},"catch-all route",{"type":178,"value":636},{"type":173,"tag":174,"props":1848,"children":1849},{},[1850,1852,1859],{"type":178,"value":1851},"This ",{"type":173,"tag":1356,"props":1853,"children":1856},{"href":1854,"rel":1855},"https://github.com/nuxt/content/blob/main/src/runtime/pages/document-driven.vue",[1842],[1857],{"type":178,"value":1858},"injected Vue page",{"type":178,"value":1860}," is useful for having a minimal project structure:",{"type":173,"tag":189,"props":1862,"children":1864},{"code":1863},"my-project/\n  content/\n    index.md\n  nuxt.config.ts\n  package.json\n  tsconfig.json\n",[1865],{"type":173,"tag":181,"props":1866,"children":1867},{"__ignoreMap":167},[1868],{"type":178,"value":1863},{"type":173,"tag":174,"props":1870,"children":1871},{},[1872,1874,1879],{"type":178,"value":1873},"It comes with a direct binding between your page's meta data to the OpenGraph tags using the ",{"type":173,"tag":1356,"props":1875,"children":1876},{"href":57},[1877],{"type":178,"value":1878},"useContentHead() composable",{"type":178,"value":1880},", providing effective SEO with no configuration.",{"type":173,"tag":1557,"props":1882,"children":1884},{"id":1883},"page-slots",[1885],{"type":178,"value":1886},"Page slots",{"type":173,"tag":174,"props":1888,"children":1889},{},[1890],{"type":178,"value":1891},"The page comes with 2 slot components that you can replace at your project level.",{"type":173,"tag":174,"props":1893,"children":1894},{},[1895,1897,1903],{"type":178,"value":1896},"To do so, you only have to create a component with the same name in your project ",{"type":173,"tag":181,"props":1898,"children":1900},{"className":1899},[],[1901],{"type":178,"value":1902},"components/",{"type":178,"value":1904}," directory.",{"type":173,"tag":1212,"props":1906,"children":1907},{},[1908],{"type":173,"tag":1268,"props":1909,"children":1910},{},[1911],{"type":173,"tag":181,"props":1912,"children":1914},{"className":1913},[],[1915],{"type":178,"value":1916},"\u003CDocumentDrivenNotFound />",{"type":173,"tag":174,"props":1918,"children":1919},{},[1920],{"type":178,"value":1921},"This component will be shown when no page has been found for the current URL.",{"type":173,"tag":189,"props":1923,"children":1928},{"code":1924,"filename":1925,"language":1926,"meta":167,"className":1927,"style":167},"\u003Ctemplate>\n  \u003Ch1>Page not found\u003C/h1>\n\u003C/template>\n","components/DocumentDrivenNotFound.vue","html","language-html shiki shiki-themes material-theme-lighter material-theme material-theme-palenight",[1929],{"type":173,"tag":181,"props":1930,"children":1931},{"__ignoreMap":167},[1932,1947,1981],{"type":173,"tag":199,"props":1933,"children":1934},{"class":201,"line":202},[1935,1939,1943],{"type":173,"tag":199,"props":1936,"children":1937},{"style":206},[1938],{"type":178,"value":209},{"type":173,"tag":199,"props":1940,"children":1941},{"style":212},[1942],{"type":178,"value":591},{"type":173,"tag":199,"props":1944,"children":1945},{"style":206},[1946],{"type":178,"value":251},{"type":173,"tag":199,"props":1948,"children":1949},{"class":201,"line":254},[1950,1954,1959,1964,1969,1973,1977],{"type":173,"tag":199,"props":1951,"children":1952},{"style":206},[1953],{"type":178,"value":603},{"type":173,"tag":199,"props":1955,"children":1956},{"style":212},[1957],{"type":178,"value":1958},"h1",{"type":173,"tag":199,"props":1960,"children":1961},{"style":206},[1962],{"type":178,"value":1963},">",{"type":173,"tag":199,"props":1965,"children":1966},{"style":282},[1967],{"type":178,"value":1968},"Page not found",{"type":173,"tag":199,"props":1970,"children":1971},{"style":206},[1972],{"type":178,"value":455},{"type":173,"tag":199,"props":1974,"children":1975},{"style":212},[1976],{"type":178,"value":1958},{"type":173,"tag":199,"props":1978,"children":1979},{"style":206},[1980],{"type":178,"value":251},{"type":173,"tag":199,"props":1982,"children":1983},{"class":201,"line":268},[1984,1988,1992],{"type":173,"tag":199,"props":1985,"children":1986},{"style":206},[1987],{"type":178,"value":455},{"type":173,"tag":199,"props":1989,"children":1990},{"style":212},[1991],{"type":178,"value":591},{"type":173,"tag":199,"props":1993,"children":1994},{"style":206},[1995],{"type":178,"value":251},{"type":173,"tag":1212,"props":1997,"children":1998},{},[1999],{"type":173,"tag":1268,"props":2000,"children":2001},{},[2002],{"type":173,"tag":181,"props":2003,"children":2005},{"className":2004},[],[2006],{"type":178,"value":2007},"\u003CDocumentDrivenEmpty />",{"type":173,"tag":174,"props":2009,"children":2010},{},[2011],{"type":178,"value":2012},"This component will be shown when there is no content for the current page, but the page exists.",{"type":173,"tag":189,"props":2014,"children":2017},{"code":2015,"filename":2016,"language":1926,"meta":167,"className":1927,"style":167},"\u003Ctemplate>\n  \u003Ch1>This page is empty\u003C/h1>\n\u003C/template>\n","components/DocumentDrivenEmpty.vue",[2018],{"type":173,"tag":181,"props":2019,"children":2020},{"__ignoreMap":167},[2021,2036,2068],{"type":173,"tag":199,"props":2022,"children":2023},{"class":201,"line":202},[2024,2028,2032],{"type":173,"tag":199,"props":2025,"children":2026},{"style":206},[2027],{"type":178,"value":209},{"type":173,"tag":199,"props":2029,"children":2030},{"style":212},[2031],{"type":178,"value":591},{"type":173,"tag":199,"props":2033,"children":2034},{"style":206},[2035],{"type":178,"value":251},{"type":173,"tag":199,"props":2037,"children":2038},{"class":201,"line":254},[2039,2043,2047,2051,2056,2060,2064],{"type":173,"tag":199,"props":2040,"children":2041},{"style":206},[2042],{"type":178,"value":603},{"type":173,"tag":199,"props":2044,"children":2045},{"style":212},[2046],{"type":178,"value":1958},{"type":173,"tag":199,"props":2048,"children":2049},{"style":206},[2050],{"type":178,"value":1963},{"type":173,"tag":199,"props":2052,"children":2053},{"style":282},[2054],{"type":178,"value":2055},"This page is empty",{"type":173,"tag":199,"props":2057,"children":2058},{"style":206},[2059],{"type":178,"value":455},{"type":173,"tag":199,"props":2061,"children":2062},{"style":212},[2063],{"type":178,"value":1958},{"type":173,"tag":199,"props":2065,"children":2066},{"style":206},[2067],{"type":178,"value":251},{"type":173,"tag":199,"props":2069,"children":2070},{"class":201,"line":268},[2071,2075,2079],{"type":173,"tag":199,"props":2072,"children":2073},{"style":206},[2074],{"type":178,"value":455},{"type":173,"tag":199,"props":2076,"children":2077},{"style":212},[2078],{"type":178,"value":591},{"type":173,"tag":199,"props":2080,"children":2081},{"style":206},[2082],{"type":178,"value":251},{"type":173,"tag":465,"props":2084,"children":2086},{"id":2085},"layout-binding",[2087],{"type":178,"value":2088},"Layout binding",{"type":173,"tag":174,"props":2090,"children":2091},{},[2092],{"type":178,"value":2093},"As the page data is available beforehand, the layout can be defined in the page front-matter:",{"type":173,"tag":189,"props":2095,"children":2099},{"code":2096,"filename":2097,"language":1527,"meta":167,"className":2098,"style":167},"---\nlayout: article\n---\n\nThis page will use the article layout!\n","content/blog/hello-world.md","language-md shiki shiki-themes material-theme-lighter material-theme material-theme-palenight",[2100],{"type":173,"tag":181,"props":2101,"children":2102},{"__ignoreMap":167},[2103,2111,2128,2135,2142],{"type":173,"tag":199,"props":2104,"children":2105},{"class":201,"line":202},[2106],{"type":173,"tag":199,"props":2107,"children":2108},{"style":282},[2109],{"type":178,"value":2110},"---\n",{"type":173,"tag":199,"props":2112,"children":2113},{"class":201,"line":254},[2114,2119,2123],{"type":173,"tag":199,"props":2115,"children":2116},{"style":212},[2117],{"type":178,"value":2118},"layout",{"type":173,"tag":199,"props":2120,"children":2121},{"style":206},[2122],{"type":178,"value":1587},{"type":173,"tag":199,"props":2124,"children":2125},{"style":239},[2126],{"type":178,"value":2127}," article\n",{"type":173,"tag":199,"props":2129,"children":2130},{"class":201,"line":268},[2131],{"type":173,"tag":199,"props":2132,"children":2133},{"style":282},[2134],{"type":178,"value":2110},{"type":173,"tag":199,"props":2136,"children":2137},{"class":201,"line":278},[2138],{"type":173,"tag":199,"props":2139,"children":2140},{"emptyLinePlaceholder":576},[2141],{"type":178,"value":579},{"type":173,"tag":199,"props":2143,"children":2144},{"class":201,"line":293},[2145],{"type":173,"tag":199,"props":2146,"children":2147},{"style":282},[2148],{"type":178,"value":2149},"This page will use the article layout!\n",{"type":173,"tag":174,"props":2151,"children":2152},{},[2153,2155,2161],{"type":178,"value":2154},"By default, it uses the ",{"type":173,"tag":181,"props":2156,"children":2158},{"className":2157},[],[2159],{"type":178,"value":2160},"default",{"type":178,"value":2162}," layout if none is specified.",{"type":173,"tag":174,"props":2164,"children":2165},{},[2166,2168,2174,2175,2180],{"type":178,"value":2167},"If you want to use another layout by default, use the ",{"type":173,"tag":181,"props":2169,"children":2171},{"className":2170},[],[2172],{"type":178,"value":2173},"layoutFallbacks",{"type":178,"value":1579},{"type":173,"tag":181,"props":2176,"children":2178},{"className":2177},[],[2179],{"type":178,"value":1585},{"type":178,"value":1587},{"type":173,"tag":189,"props":2182,"children":2185},{"code":2183,"filename":2184,"language":242,"meta":167,"className":1591,"style":167},"export default defineNuxtConfig({\n  content: {\n    documentDriven: {\n      layoutFallbacks: ['theme'],\n    }\n  }\n})\n","nuxt.config.ts",[2186],{"type":173,"tag":181,"props":2187,"children":2188},{"__ignoreMap":167},[2189,2212,2227,2242,2279,2287,2294],{"type":173,"tag":199,"props":2190,"children":2191},{"class":201,"line":202},[2192,2196,2200,2204,2208],{"type":173,"tag":199,"props":2193,"children":2194},{"style":854},[2195],{"type":178,"value":1603},{"type":173,"tag":199,"props":2197,"children":2198},{"style":854},[2199],{"type":178,"value":1608},{"type":173,"tag":199,"props":2201,"children":2202},{"style":438},[2203],{"type":178,"value":1613},{"type":173,"tag":199,"props":2205,"children":2206},{"style":282},[2207],{"type":178,"value":1618},{"type":173,"tag":199,"props":2209,"children":2210},{"style":206},[2211],{"type":178,"value":1623},{"type":173,"tag":199,"props":2213,"children":2214},{"class":201,"line":254},[2215,2219,2223],{"type":173,"tag":199,"props":2216,"children":2217},{"style":212},[2218],{"type":178,"value":1671},{"type":173,"tag":199,"props":2220,"children":2221},{"style":206},[2222],{"type":178,"value":1587},{"type":173,"tag":199,"props":2224,"children":2225},{"style":206},[2226],{"type":178,"value":265},{"type":173,"tag":199,"props":2228,"children":2229},{"class":201,"line":268},[2230,2234,2238],{"type":173,"tag":199,"props":2231,"children":2232},{"style":212},[2233],{"type":178,"value":1687},{"type":173,"tag":199,"props":2235,"children":2236},{"style":206},[2237],{"type":178,"value":1587},{"type":173,"tag":199,"props":2239,"children":2240},{"style":206},[2241],{"type":178,"value":265},{"type":173,"tag":199,"props":2243,"children":2244},{"class":201,"line":278},[2245,2250,2254,2258,2262,2267,2271,2275],{"type":173,"tag":199,"props":2246,"children":2247},{"style":212},[2248],{"type":178,"value":2249},"      layoutFallbacks",{"type":173,"tag":199,"props":2251,"children":2252},{"style":206},[2253],{"type":178,"value":1587},{"type":173,"tag":199,"props":2255,"children":2256},{"style":282},[2257],{"type":178,"value":1640},{"type":173,"tag":199,"props":2259,"children":2260},{"style":206},[2261],{"type":178,"value":1645},{"type":173,"tag":199,"props":2263,"children":2264},{"style":239},[2265],{"type":178,"value":2266},"theme",{"type":173,"tag":199,"props":2268,"children":2269},{"style":206},[2270],{"type":178,"value":1645},{"type":173,"tag":199,"props":2272,"children":2273},{"style":282},[2274],{"type":178,"value":1659},{"type":173,"tag":199,"props":2276,"children":2277},{"style":206},[2278],{"type":178,"value":290},{"type":173,"tag":199,"props":2280,"children":2281},{"class":201,"line":293},[2282],{"type":173,"tag":199,"props":2283,"children":2284},{"style":206},[2285],{"type":178,"value":2286},"    }\n",{"type":173,"tag":199,"props":2288,"children":2289},{"class":201,"line":306},[2290],{"type":173,"tag":199,"props":2291,"children":2292},{"style":206},[2293],{"type":178,"value":1705},{"type":173,"tag":199,"props":2295,"children":2296},{"class":201,"line":319},[2297,2301],{"type":173,"tag":199,"props":2298,"children":2299},{"style":206},[2300],{"type":178,"value":430},{"type":173,"tag":199,"props":2302,"children":2303},{"style":282},[2304],{"type":178,"value":1717},{"type":173,"tag":174,"props":2306,"children":2307},{},[2308,2310,2315,2317,2323,2325,2330,2332,2337],{"type":178,"value":2309},"This option will search for a ",{"type":173,"tag":181,"props":2311,"children":2313},{"className":2312},[],[2314],{"type":178,"value":2266},{"type":178,"value":2316}," key in ",{"type":173,"tag":181,"props":2318,"children":2320},{"className":2319},[],[2321],{"type":178,"value":2322},"globals",{"type":178,"value":2324},", then search for a ",{"type":173,"tag":181,"props":2326,"children":2328},{"className":2327},[],[2329],{"type":178,"value":2118},{"type":178,"value":2331}," key inside that object. If found, that ",{"type":173,"tag":181,"props":2333,"children":2335},{"className":2334},[],[2336],{"type":178,"value":2118},{"type":178,"value":2338}," key will be used as a fallback.",{"type":173,"tag":465,"props":2340,"children":2342},{"id":2341},"global-variables",[2343],{"type":178,"value":2344},"Global variables",{"type":173,"tag":174,"props":2346,"children":2347},{},[2348,2350,2357],{"type":178,"value":2349},"Queries are being made from a ",{"type":173,"tag":1356,"props":2351,"children":2354},{"href":2352,"rel":2353},"https://nuxt.com/docs/guide/directory-structure/middleware",[1842],[2355],{"type":178,"value":2356},"route middleware",{"type":178,"value":2358}," and are resolved before your page renders.",{"type":173,"tag":174,"props":2360,"children":2361},{},[2362,2364,2372,2374,2380],{"type":178,"value":2363},"This gives access to the ",{"type":173,"tag":1356,"props":2365,"children":2366},{"href":101},[2367],{"type":173,"tag":181,"props":2368,"children":2370},{"className":2369},[],[2371],{"type":178,"value":100},{"type":178,"value":2373}," composable ",{"type":173,"tag":2375,"props":2376,"children":2377},"strong",{},[2378],{"type":178,"value":2379},"anywhere in your app",{"type":178,"value":2381}," with the following variables:",{"type":173,"tag":1212,"props":2383,"children":2384},{},[2385,2393,2402,2411],{"type":173,"tag":1268,"props":2386,"children":2387},{},[2388],{"type":173,"tag":181,"props":2389,"children":2391},{"className":2390},[],[2392],{"type":178,"value":631},{"type":173,"tag":1268,"props":2394,"children":2395},{},[2396],{"type":173,"tag":181,"props":2397,"children":2399},{"className":2398},[],[2400],{"type":178,"value":2401},"surround",{"type":173,"tag":1268,"props":2403,"children":2404},{},[2405],{"type":173,"tag":181,"props":2406,"children":2408},{"className":2407},[],[2409],{"type":178,"value":2410},"navigation",{"type":173,"tag":1268,"props":2412,"children":2413},{},[2414],{"type":173,"tag":181,"props":2415,"children":2417},{"className":2416},[],[2418],{"type":178,"value":2322},{"type":173,"tag":189,"props":2420,"children":2422},{"code":2421,"language":1926,"meta":167,"className":1927,"style":167},"\u003Cscript setup lang=\"ts\">\nconst { navigation, page, surround, globals } = useContent()\n\nconsole.log(page.value)\n\u003C/script>\n",[2423],{"type":173,"tag":181,"props":2424,"children":2425},{"__ignoreMap":167},[2426,2465,2524,2531,2562],{"type":173,"tag":199,"props":2427,"children":2428},{"class":201,"line":202},[2429,2433,2437,2441,2445,2449,2453,2457,2461],{"type":173,"tag":199,"props":2430,"children":2431},{"style":206},[2432],{"type":178,"value":209},{"type":173,"tag":199,"props":2434,"children":2435},{"style":212},[2436],{"type":178,"value":215},{"type":173,"tag":199,"props":2438,"children":2439},{"style":218},[2440],{"type":178,"value":221},{"type":173,"tag":199,"props":2442,"children":2443},{"style":218},[2444],{"type":178,"value":226},{"type":173,"tag":199,"props":2446,"children":2447},{"style":206},[2448],{"type":178,"value":231},{"type":173,"tag":199,"props":2450,"children":2451},{"style":206},[2452],{"type":178,"value":236},{"type":173,"tag":199,"props":2454,"children":2455},{"style":239},[2456],{"type":178,"value":242},{"type":173,"tag":199,"props":2458,"children":2459},{"style":206},[2460],{"type":178,"value":236},{"type":173,"tag":199,"props":2462,"children":2463},{"style":206},[2464],{"type":178,"value":251},{"type":173,"tag":199,"props":2466,"children":2467},{"class":201,"line":254},[2468,2472,2476,2481,2485,2490,2494,2499,2503,2508,2512,2516,2520],{"type":173,"tag":199,"props":2469,"children":2470},{"style":218},[2471],{"type":178,"value":260},{"type":173,"tag":199,"props":2473,"children":2474},{"style":206},[2475],{"type":178,"value":534},{"type":173,"tag":199,"props":2477,"children":2478},{"style":282},[2479],{"type":178,"value":2480}," navigation",{"type":173,"tag":199,"props":2482,"children":2483},{"style":206},[2484],{"type":178,"value":764},{"type":173,"tag":199,"props":2486,"children":2487},{"style":282},[2488],{"type":178,"value":2489}," page",{"type":173,"tag":199,"props":2491,"children":2492},{"style":206},[2493],{"type":178,"value":764},{"type":173,"tag":199,"props":2495,"children":2496},{"style":282},[2497],{"type":178,"value":2498}," surround",{"type":173,"tag":199,"props":2500,"children":2501},{"style":206},[2502],{"type":178,"value":764},{"type":173,"tag":199,"props":2504,"children":2505},{"style":282},[2506],{"type":178,"value":2507}," globals ",{"type":173,"tag":199,"props":2509,"children":2510},{"style":206},[2511],{"type":178,"value":430},{"type":173,"tag":199,"props":2513,"children":2514},{"style":206},[2515],{"type":178,"value":435},{"type":173,"tag":199,"props":2517,"children":2518},{"style":438},[2519],{"type":178,"value":441},{"type":173,"tag":199,"props":2521,"children":2522},{"style":282},[2523],{"type":178,"value":446},{"type":173,"tag":199,"props":2525,"children":2526},{"class":201,"line":268},[2527],{"type":173,"tag":199,"props":2528,"children":2529},{"emptyLinePlaceholder":576},[2530],{"type":178,"value":579},{"type":173,"tag":199,"props":2532,"children":2533},{"class":201,"line":278},[2534,2539,2543,2548,2553,2557],{"type":173,"tag":199,"props":2535,"children":2536},{"style":282},[2537],{"type":178,"value":2538},"console",{"type":173,"tag":199,"props":2540,"children":2541},{"style":206},[2542],{"type":178,"value":636},{"type":173,"tag":199,"props":2544,"children":2545},{"style":438},[2546],{"type":178,"value":2547},"log",{"type":173,"tag":199,"props":2549,"children":2550},{"style":282},[2551],{"type":178,"value":2552},"(page",{"type":173,"tag":199,"props":2554,"children":2555},{"style":206},[2556],{"type":178,"value":636},{"type":173,"tag":199,"props":2558,"children":2559},{"style":282},[2560],{"type":178,"value":2561},"value)\n",{"type":173,"tag":199,"props":2563,"children":2564},{"class":201,"line":293},[2565,2569,2573],{"type":173,"tag":199,"props":2566,"children":2567},{"style":206},[2568],{"type":178,"value":455},{"type":173,"tag":199,"props":2570,"children":2571},{"style":212},[2572],{"type":178,"value":215},{"type":173,"tag":199,"props":2574,"children":2575},{"style":206},[2576],{"type":178,"value":251},{"type":173,"tag":465,"props":2578,"children":2580},{"id":2579},"extend-global-variables",[2581],{"type":178,"value":2582},"Extend global variables",{"type":173,"tag":174,"props":2584,"children":2585},{},[2586],{"type":178,"value":2587},"This mode gives you a convenient way to access file data globally in your application.",{"type":173,"tag":174,"props":2589,"children":2590},{},[2591,2593,2599,2601,2606],{"type":178,"value":2592},"Use the ",{"type":173,"tag":181,"props":2594,"children":2596},{"className":2595},[],[2597],{"type":178,"value":2598},"documentDriven.globals",{"type":178,"value":2600}," key of in your ",{"type":173,"tag":181,"props":2602,"children":2604},{"className":2603},[],[2605],{"type":178,"value":1585},{"type":178,"value":2607}," to specify a query:",{"type":173,"tag":189,"props":2609,"children":2611},{"code":2610,"filename":2184,"language":242,"meta":167,"className":1591,"style":167},"export default defineNuxtConfig({\n  content: {\n    documentDriven: {\n      globals: {\n        theme: {\n          where: [\n            {\n              _id: 'content:_theme.yml'\n            }\n          ],\n          without: ['_']\n        }\n      }\n    }\n  }\n})\n",[2612],{"type":173,"tag":181,"props":2613,"children":2614},{"__ignoreMap":167},[2615,2638,2653,2668,2684,2700,2717,2725,2752,2760,2772,2806,2814,2822,2829,2836],{"type":173,"tag":199,"props":2616,"children":2617},{"class":201,"line":202},[2618,2622,2626,2630,2634],{"type":173,"tag":199,"props":2619,"children":2620},{"style":854},[2621],{"type":178,"value":1603},{"type":173,"tag":199,"props":2623,"children":2624},{"style":854},[2625],{"type":178,"value":1608},{"type":173,"tag":199,"props":2627,"children":2628},{"style":438},[2629],{"type":178,"value":1613},{"type":173,"tag":199,"props":2631,"children":2632},{"style":282},[2633],{"type":178,"value":1618},{"type":173,"tag":199,"props":2635,"children":2636},{"style":206},[2637],{"type":178,"value":1623},{"type":173,"tag":199,"props":2639,"children":2640},{"class":201,"line":254},[2641,2645,2649],{"type":173,"tag":199,"props":2642,"children":2643},{"style":212},[2644],{"type":178,"value":1671},{"type":173,"tag":199,"props":2646,"children":2647},{"style":206},[2648],{"type":178,"value":1587},{"type":173,"tag":199,"props":2650,"children":2651},{"style":206},[2652],{"type":178,"value":265},{"type":173,"tag":199,"props":2654,"children":2655},{"class":201,"line":268},[2656,2660,2664],{"type":173,"tag":199,"props":2657,"children":2658},{"style":212},[2659],{"type":178,"value":1687},{"type":173,"tag":199,"props":2661,"children":2662},{"style":206},[2663],{"type":178,"value":1587},{"type":173,"tag":199,"props":2665,"children":2666},{"style":206},[2667],{"type":178,"value":265},{"type":173,"tag":199,"props":2669,"children":2670},{"class":201,"line":278},[2671,2676,2680],{"type":173,"tag":199,"props":2672,"children":2673},{"style":212},[2674],{"type":178,"value":2675},"      globals",{"type":173,"tag":199,"props":2677,"children":2678},{"style":206},[2679],{"type":178,"value":1587},{"type":173,"tag":199,"props":2681,"children":2682},{"style":206},[2683],{"type":178,"value":265},{"type":173,"tag":199,"props":2685,"children":2686},{"class":201,"line":293},[2687,2692,2696],{"type":173,"tag":199,"props":2688,"children":2689},{"style":212},[2690],{"type":178,"value":2691},"        theme",{"type":173,"tag":199,"props":2693,"children":2694},{"style":206},[2695],{"type":178,"value":1587},{"type":173,"tag":199,"props":2697,"children":2698},{"style":206},[2699],{"type":178,"value":265},{"type":173,"tag":199,"props":2701,"children":2702},{"class":201,"line":306},[2703,2708,2712],{"type":173,"tag":199,"props":2704,"children":2705},{"style":212},[2706],{"type":178,"value":2707},"          where",{"type":173,"tag":199,"props":2709,"children":2710},{"style":206},[2711],{"type":178,"value":1587},{"type":173,"tag":199,"props":2713,"children":2714},{"style":282},[2715],{"type":178,"value":2716}," [\n",{"type":173,"tag":199,"props":2718,"children":2719},{"class":201,"line":319},[2720],{"type":173,"tag":199,"props":2721,"children":2722},{"style":206},[2723],{"type":178,"value":2724},"            {\n",{"type":173,"tag":199,"props":2726,"children":2727},{"class":201,"line":332},[2728,2733,2737,2742,2747],{"type":173,"tag":199,"props":2729,"children":2730},{"style":212},[2731],{"type":178,"value":2732},"              _id",{"type":173,"tag":199,"props":2734,"children":2735},{"style":206},[2736],{"type":178,"value":1587},{"type":173,"tag":199,"props":2738,"children":2739},{"style":206},[2740],{"type":178,"value":2741}," '",{"type":173,"tag":199,"props":2743,"children":2744},{"style":239},[2745],{"type":178,"value":2746},"content:_theme.yml",{"type":173,"tag":199,"props":2748,"children":2749},{"style":206},[2750],{"type":178,"value":2751},"'\n",{"type":173,"tag":199,"props":2753,"children":2754},{"class":201,"line":341},[2755],{"type":173,"tag":199,"props":2756,"children":2757},{"style":206},[2758],{"type":178,"value":2759},"            }\n",{"type":173,"tag":199,"props":2761,"children":2762},{"class":201,"line":354},[2763,2768],{"type":173,"tag":199,"props":2764,"children":2765},{"style":282},[2766],{"type":178,"value":2767},"          ]",{"type":173,"tag":199,"props":2769,"children":2770},{"style":206},[2771],{"type":178,"value":290},{"type":173,"tag":199,"props":2773,"children":2774},{"class":201,"line":367},[2775,2780,2784,2788,2792,2797,2801],{"type":173,"tag":199,"props":2776,"children":2777},{"style":212},[2778],{"type":178,"value":2779},"          without",{"type":173,"tag":199,"props":2781,"children":2782},{"style":206},[2783],{"type":178,"value":1587},{"type":173,"tag":199,"props":2785,"children":2786},{"style":282},[2787],{"type":178,"value":1640},{"type":173,"tag":199,"props":2789,"children":2790},{"style":206},[2791],{"type":178,"value":1645},{"type":173,"tag":199,"props":2793,"children":2794},{"style":239},[2795],{"type":178,"value":2796},"_",{"type":173,"tag":199,"props":2798,"children":2799},{"style":206},[2800],{"type":178,"value":1645},{"type":173,"tag":199,"props":2802,"children":2803},{"style":282},[2804],{"type":178,"value":2805},"]\n",{"type":173,"tag":199,"props":2807,"children":2808},{"class":201,"line":380},[2809],{"type":173,"tag":199,"props":2810,"children":2811},{"style":206},[2812],{"type":178,"value":2813},"        }\n",{"type":173,"tag":199,"props":2815,"children":2816},{"class":201,"line":393},[2817],{"type":173,"tag":199,"props":2818,"children":2819},{"style":206},[2820],{"type":178,"value":2821},"      }\n",{"type":173,"tag":199,"props":2823,"children":2824},{"class":201,"line":402},[2825],{"type":173,"tag":199,"props":2826,"children":2827},{"style":206},[2828],{"type":178,"value":2286},{"type":173,"tag":199,"props":2830,"children":2831},{"class":201,"line":415},[2832],{"type":173,"tag":199,"props":2833,"children":2834},{"style":206},[2835],{"type":178,"value":1705},{"type":173,"tag":199,"props":2837,"children":2838},{"class":201,"line":424},[2839,2843],{"type":173,"tag":199,"props":2840,"children":2841},{"style":206},[2842],{"type":178,"value":430},{"type":173,"tag":199,"props":2844,"children":2845},{"style":282},[2846],{"type":178,"value":1717},{"type":173,"tag":174,"props":2848,"children":2849},{},[2850,2852,2858,2860,2866],{"type":178,"value":2851},"This configuration will search for a ",{"type":173,"tag":181,"props":2853,"children":2855},{"className":2854},[],[2856],{"type":178,"value":2857},"_theme.yml",{"type":178,"value":2859}," file in the ",{"type":173,"tag":181,"props":2861,"children":2863},{"className":2862},[],[2864],{"type":178,"value":2865},"content/",{"type":178,"value":1904},{"type":173,"tag":174,"props":2868,"children":2869},{},[2870,2872,2877,2879,2885],{"type":178,"value":2871},"If found, a ",{"type":173,"tag":181,"props":2873,"children":2875},{"className":2874},[],[2876],{"type":178,"value":2266},{"type":178,"value":2878}," object will be accessible via ",{"type":173,"tag":181,"props":2880,"children":2882},{"className":2881},[],[2883],{"type":178,"value":2884},"useContent().globals",{"type":178,"value":1587},{"type":173,"tag":189,"props":2887,"children":2889},{"code":2888,"language":242,"meta":167,"className":1591,"style":167},"const { theme } = useContent().globals\n",[2890],{"type":173,"tag":181,"props":2891,"children":2892},{"__ignoreMap":167},[2893],{"type":173,"tag":199,"props":2894,"children":2895},{"class":201,"line":202},[2896,2900,2904,2909,2913,2917,2921,2926,2930],{"type":173,"tag":199,"props":2897,"children":2898},{"style":218},[2899],{"type":178,"value":260},{"type":173,"tag":199,"props":2901,"children":2902},{"style":206},[2903],{"type":178,"value":534},{"type":173,"tag":199,"props":2905,"children":2906},{"style":282},[2907],{"type":178,"value":2908}," theme ",{"type":173,"tag":199,"props":2910,"children":2911},{"style":206},[2912],{"type":178,"value":430},{"type":173,"tag":199,"props":2914,"children":2915},{"style":206},[2916],{"type":178,"value":435},{"type":173,"tag":199,"props":2918,"children":2919},{"style":438},[2920],{"type":178,"value":441},{"type":173,"tag":199,"props":2922,"children":2923},{"style":282},[2924],{"type":178,"value":2925},"()",{"type":173,"tag":199,"props":2927,"children":2928},{"style":206},[2929],{"type":178,"value":636},{"type":173,"tag":199,"props":2931,"children":2932},{"style":282},[2933],{"type":178,"value":2934},"globals\n",{"type":173,"tag":174,"props":2936,"children":2937},{},[2938],{"type":178,"value":2939},"Any changes to these files will be automatically reflected in the application during development.",{"type":173,"tag":465,"props":2941,"children":2943},{"id":2942},"disable-or-control-the-page-data",[2944],{"type":178,"value":2945},"Disable or control the page data",{"type":173,"tag":174,"props":2947,"children":2948},{},[2949,2951,2956],{"type":178,"value":2950},"Using special ",{"type":173,"tag":181,"props":2952,"children":2954},{"className":2953},[],[2955],{"type":178,"value":1577},{"type":178,"value":2957}," meta in your pages, you can disable this feature for specific route or control it's behavior.",{"type":173,"tag":1557,"props":2959,"children":2961},{"id":2960},"disable-document-driven",[2962],{"type":178,"value":2963},"Disable document driven",{"type":173,"tag":174,"props":2965,"children":2966},{},[2967,2969,2974,2976,2982,2984,2989,2991,2997],{"type":178,"value":2968},"Setting ",{"type":173,"tag":181,"props":2970,"children":2972},{"className":2971},[],[2973],{"type":178,"value":1577},{"type":178,"value":2975}," to ",{"type":173,"tag":181,"props":2977,"children":2979},{"className":2978},[],[2980],{"type":178,"value":2981},"false",{"type":178,"value":2983}," will disable document driven. This means that exposed refs from ",{"type":173,"tag":181,"props":2985,"children":2987},{"className":2986},[],[2988],{"type":178,"value":100},{"type":178,"value":2990}," will be ",{"type":173,"tag":181,"props":2992,"children":2994},{"className":2993},[],[2995],{"type":178,"value":2996},"undefined",{"type":178,"value":636},{"type":173,"tag":189,"props":2999,"children":3001},{"code":3000,"language":1926,"meta":167,"className":1927,"style":167},"\u003Cscript setup lang=\"ts\">\ndefinePageMeta({\n  documentDriven: false\n})\n\u003C/script>\n",[3002],{"type":173,"tag":181,"props":3003,"children":3004},{"__ignoreMap":167},[3005,3044,3060,3077,3088],{"type":173,"tag":199,"props":3006,"children":3007},{"class":201,"line":202},[3008,3012,3016,3020,3024,3028,3032,3036,3040],{"type":173,"tag":199,"props":3009,"children":3010},{"style":206},[3011],{"type":178,"value":209},{"type":173,"tag":199,"props":3013,"children":3014},{"style":212},[3015],{"type":178,"value":215},{"type":173,"tag":199,"props":3017,"children":3018},{"style":218},[3019],{"type":178,"value":221},{"type":173,"tag":199,"props":3021,"children":3022},{"style":218},[3023],{"type":178,"value":226},{"type":173,"tag":199,"props":3025,"children":3026},{"style":206},[3027],{"type":178,"value":231},{"type":173,"tag":199,"props":3029,"children":3030},{"style":206},[3031],{"type":178,"value":236},{"type":173,"tag":199,"props":3033,"children":3034},{"style":239},[3035],{"type":178,"value":242},{"type":173,"tag":199,"props":3037,"children":3038},{"style":206},[3039],{"type":178,"value":236},{"type":173,"tag":199,"props":3041,"children":3042},{"style":206},[3043],{"type":178,"value":251},{"type":173,"tag":199,"props":3045,"children":3046},{"class":201,"line":254},[3047,3052,3056],{"type":173,"tag":199,"props":3048,"children":3049},{"style":438},[3050],{"type":178,"value":3051},"definePageMeta",{"type":173,"tag":199,"props":3053,"children":3054},{"style":282},[3055],{"type":178,"value":1618},{"type":173,"tag":199,"props":3057,"children":3058},{"style":206},[3059],{"type":178,"value":1623},{"type":173,"tag":199,"props":3061,"children":3062},{"class":201,"line":268},[3063,3068,3072],{"type":173,"tag":199,"props":3064,"children":3065},{"style":212},[3066],{"type":178,"value":3067},"  documentDriven",{"type":173,"tag":199,"props":3069,"children":3070},{"style":206},[3071],{"type":178,"value":1587},{"type":173,"tag":199,"props":3073,"children":3074},{"style":1694},[3075],{"type":178,"value":3076}," false\n",{"type":173,"tag":199,"props":3078,"children":3079},{"class":201,"line":278},[3080,3084],{"type":173,"tag":199,"props":3081,"children":3082},{"style":206},[3083],{"type":178,"value":430},{"type":173,"tag":199,"props":3085,"children":3086},{"style":282},[3087],{"type":178,"value":1717},{"type":173,"tag":199,"props":3089,"children":3090},{"class":201,"line":293},[3091,3095,3099],{"type":173,"tag":199,"props":3092,"children":3093},{"style":206},[3094],{"type":178,"value":455},{"type":173,"tag":199,"props":3096,"children":3097},{"style":212},[3098],{"type":178,"value":215},{"type":173,"tag":199,"props":3100,"children":3101},{"style":206},[3102],{"type":178,"value":251},{"type":173,"tag":1557,"props":3104,"children":3106},{"id":3105},"control-data",[3107],{"type":178,"value":3108},"Control data",{"type":173,"tag":174,"props":3110,"children":3111},{},[3112,3114,3119],{"type":178,"value":3113},"To control document driven data you can pass an object to ",{"type":173,"tag":181,"props":3115,"children":3117},{"className":3116},[],[3118],{"type":178,"value":1577},{"type":178,"value":3120}," meta key and enable/disable specific parts of it.",{"type":173,"tag":189,"props":3122,"children":3124},{"code":3123,"language":1926,"meta":167,"className":1927,"style":167},"\u003Cscript setup lang=\"ts\">\ndefinePageMeta({\n  documentDriven: {\n    page: true, // Keep page fetching enabled\n    surround: false // Disable surround fetching\n  }\n})\n\u003C/script>\n",[3125],{"type":173,"tag":181,"props":3126,"children":3127},{"__ignoreMap":167},[3128,3167,3182,3197,3223,3245,3252,3263],{"type":173,"tag":199,"props":3129,"children":3130},{"class":201,"line":202},[3131,3135,3139,3143,3147,3151,3155,3159,3163],{"type":173,"tag":199,"props":3132,"children":3133},{"style":206},[3134],{"type":178,"value":209},{"type":173,"tag":199,"props":3136,"children":3137},{"style":212},[3138],{"type":178,"value":215},{"type":173,"tag":199,"props":3140,"children":3141},{"style":218},[3142],{"type":178,"value":221},{"type":173,"tag":199,"props":3144,"children":3145},{"style":218},[3146],{"type":178,"value":226},{"type":173,"tag":199,"props":3148,"children":3149},{"style":206},[3150],{"type":178,"value":231},{"type":173,"tag":199,"props":3152,"children":3153},{"style":206},[3154],{"type":178,"value":236},{"type":173,"tag":199,"props":3156,"children":3157},{"style":239},[3158],{"type":178,"value":242},{"type":173,"tag":199,"props":3160,"children":3161},{"style":206},[3162],{"type":178,"value":236},{"type":173,"tag":199,"props":3164,"children":3165},{"style":206},[3166],{"type":178,"value":251},{"type":173,"tag":199,"props":3168,"children":3169},{"class":201,"line":254},[3170,3174,3178],{"type":173,"tag":199,"props":3171,"children":3172},{"style":438},[3173],{"type":178,"value":3051},{"type":173,"tag":199,"props":3175,"children":3176},{"style":282},[3177],{"type":178,"value":1618},{"type":173,"tag":199,"props":3179,"children":3180},{"style":206},[3181],{"type":178,"value":1623},{"type":173,"tag":199,"props":3183,"children":3184},{"class":201,"line":268},[3185,3189,3193],{"type":173,"tag":199,"props":3186,"children":3187},{"style":212},[3188],{"type":178,"value":3067},{"type":173,"tag":199,"props":3190,"children":3191},{"style":206},[3192],{"type":178,"value":1587},{"type":173,"tag":199,"props":3194,"children":3195},{"style":206},[3196],{"type":178,"value":265},{"type":173,"tag":199,"props":3198,"children":3199},{"class":201,"line":278},[3200,3205,3209,3214,3218],{"type":173,"tag":199,"props":3201,"children":3202},{"style":212},[3203],{"type":178,"value":3204},"    page",{"type":173,"tag":199,"props":3206,"children":3207},{"style":206},[3208],{"type":178,"value":1587},{"type":173,"tag":199,"props":3210,"children":3211},{"style":1694},[3212],{"type":178,"value":3213}," true",{"type":173,"tag":199,"props":3215,"children":3216},{"style":206},[3217],{"type":178,"value":764},{"type":173,"tag":199,"props":3219,"children":3220},{"style":272},[3221],{"type":178,"value":3222}," // Keep page fetching enabled\n",{"type":173,"tag":199,"props":3224,"children":3225},{"class":201,"line":293},[3226,3231,3235,3240],{"type":173,"tag":199,"props":3227,"children":3228},{"style":212},[3229],{"type":178,"value":3230},"    surround",{"type":173,"tag":199,"props":3232,"children":3233},{"style":206},[3234],{"type":178,"value":1587},{"type":173,"tag":199,"props":3236,"children":3237},{"style":1694},[3238],{"type":178,"value":3239}," false",{"type":173,"tag":199,"props":3241,"children":3242},{"style":272},[3243],{"type":178,"value":3244}," // Disable surround fetching\n",{"type":173,"tag":199,"props":3246,"children":3247},{"class":201,"line":306},[3248],{"type":173,"tag":199,"props":3249,"children":3250},{"style":206},[3251],{"type":178,"value":1705},{"type":173,"tag":199,"props":3253,"children":3254},{"class":201,"line":319},[3255,3259],{"type":173,"tag":199,"props":3256,"children":3257},{"style":206},[3258],{"type":178,"value":430},{"type":173,"tag":199,"props":3260,"children":3261},{"style":282},[3262],{"type":178,"value":1717},{"type":173,"tag":199,"props":3264,"children":3265},{"class":201,"line":332},[3266,3270,3274],{"type":173,"tag":199,"props":3267,"children":3268},{"style":206},[3269],{"type":178,"value":455},{"type":173,"tag":199,"props":3271,"children":3272},{"style":212},[3273],{"type":178,"value":215},{"type":173,"tag":199,"props":3275,"children":3276},{"style":206},[3277],{"type":178,"value":251},{"type":173,"tag":1557,"props":3279,"children":3281},{"id":3280},"config-content",[3282],{"type":178,"value":3283},"Config content",{"type":173,"tag":174,"props":3285,"children":3286},{},[3287,3289,3294,3296,3301],{"type":178,"value":3288},"You can pass custom path/query to ",{"type":173,"tag":181,"props":3290,"children":3292},{"className":3291},[],[3293],{"type":178,"value":631},{"type":178,"value":3295}," and ",{"type":173,"tag":181,"props":3297,"children":3299},{"className":3298},[],[3300],{"type":178,"value":2401},{"type":178,"value":3302}," options to config documentDriven content.",{"type":173,"tag":189,"props":3304,"children":3306},{"code":3305,"language":1926,"meta":167,"className":1927,"style":167},"\u003Cscript setup lang=\"ts\">\ndefinePageMeta({\n  documentDriven: {\n    // Simple Path\n    page: '/foo',\n    // Rich Query\n    surround: {\n      _path: '/foo/bar'\n    }\n  }\n})\n\u003C/script>\n",[3307],{"type":173,"tag":181,"props":3308,"children":3309},{"__ignoreMap":167},[3310,3349,3364,3379,3387,3415,3423,3438,3463,3470,3477,3488],{"type":173,"tag":199,"props":3311,"children":3312},{"class":201,"line":202},[3313,3317,3321,3325,3329,3333,3337,3341,3345],{"type":173,"tag":199,"props":3314,"children":3315},{"style":206},[3316],{"type":178,"value":209},{"type":173,"tag":199,"props":3318,"children":3319},{"style":212},[3320],{"type":178,"value":215},{"type":173,"tag":199,"props":3322,"children":3323},{"style":218},[3324],{"type":178,"value":221},{"type":173,"tag":199,"props":3326,"children":3327},{"style":218},[3328],{"type":178,"value":226},{"type":173,"tag":199,"props":3330,"children":3331},{"style":206},[3332],{"type":178,"value":231},{"type":173,"tag":199,"props":3334,"children":3335},{"style":206},[3336],{"type":178,"value":236},{"type":173,"tag":199,"props":3338,"children":3339},{"style":239},[3340],{"type":178,"value":242},{"type":173,"tag":199,"props":3342,"children":3343},{"style":206},[3344],{"type":178,"value":236},{"type":173,"tag":199,"props":3346,"children":3347},{"style":206},[3348],{"type":178,"value":251},{"type":173,"tag":199,"props":3350,"children":3351},{"class":201,"line":254},[3352,3356,3360],{"type":173,"tag":199,"props":3353,"children":3354},{"style":438},[3355],{"type":178,"value":3051},{"type":173,"tag":199,"props":3357,"children":3358},{"style":282},[3359],{"type":178,"value":1618},{"type":173,"tag":199,"props":3361,"children":3362},{"style":206},[3363],{"type":178,"value":1623},{"type":173,"tag":199,"props":3365,"children":3366},{"class":201,"line":268},[3367,3371,3375],{"type":173,"tag":199,"props":3368,"children":3369},{"style":212},[3370],{"type":178,"value":3067},{"type":173,"tag":199,"props":3372,"children":3373},{"style":206},[3374],{"type":178,"value":1587},{"type":173,"tag":199,"props":3376,"children":3377},{"style":206},[3378],{"type":178,"value":265},{"type":173,"tag":199,"props":3380,"children":3381},{"class":201,"line":278},[3382],{"type":173,"tag":199,"props":3383,"children":3384},{"style":272},[3385],{"type":178,"value":3386},"    // Simple Path\n",{"type":173,"tag":199,"props":3388,"children":3389},{"class":201,"line":293},[3390,3394,3398,3402,3407,3411],{"type":173,"tag":199,"props":3391,"children":3392},{"style":212},[3393],{"type":178,"value":3204},{"type":173,"tag":199,"props":3395,"children":3396},{"style":206},[3397],{"type":178,"value":1587},{"type":173,"tag":199,"props":3399,"children":3400},{"style":206},[3401],{"type":178,"value":2741},{"type":173,"tag":199,"props":3403,"children":3404},{"style":239},[3405],{"type":178,"value":3406},"/foo",{"type":173,"tag":199,"props":3408,"children":3409},{"style":206},[3410],{"type":178,"value":1645},{"type":173,"tag":199,"props":3412,"children":3413},{"style":206},[3414],{"type":178,"value":290},{"type":173,"tag":199,"props":3416,"children":3417},{"class":201,"line":306},[3418],{"type":173,"tag":199,"props":3419,"children":3420},{"style":272},[3421],{"type":178,"value":3422},"    // Rich Query\n",{"type":173,"tag":199,"props":3424,"children":3425},{"class":201,"line":319},[3426,3430,3434],{"type":173,"tag":199,"props":3427,"children":3428},{"style":212},[3429],{"type":178,"value":3230},{"type":173,"tag":199,"props":3431,"children":3432},{"style":206},[3433],{"type":178,"value":1587},{"type":173,"tag":199,"props":3435,"children":3436},{"style":206},[3437],{"type":178,"value":265},{"type":173,"tag":199,"props":3439,"children":3440},{"class":201,"line":332},[3441,3446,3450,3454,3459],{"type":173,"tag":199,"props":3442,"children":3443},{"style":212},[3444],{"type":178,"value":3445},"      _path",{"type":173,"tag":199,"props":3447,"children":3448},{"style":206},[3449],{"type":178,"value":1587},{"type":173,"tag":199,"props":3451,"children":3452},{"style":206},[3453],{"type":178,"value":2741},{"type":173,"tag":199,"props":3455,"children":3456},{"style":239},[3457],{"type":178,"value":3458},"/foo/bar",{"type":173,"tag":199,"props":3460,"children":3461},{"style":206},[3462],{"type":178,"value":2751},{"type":173,"tag":199,"props":3464,"children":3465},{"class":201,"line":341},[3466],{"type":173,"tag":199,"props":3467,"children":3468},{"style":206},[3469],{"type":178,"value":2286},{"type":173,"tag":199,"props":3471,"children":3472},{"class":201,"line":354},[3473],{"type":173,"tag":199,"props":3474,"children":3475},{"style":206},[3476],{"type":178,"value":1705},{"type":173,"tag":199,"props":3478,"children":3479},{"class":201,"line":367},[3480,3484],{"type":173,"tag":199,"props":3481,"children":3482},{"style":206},[3483],{"type":178,"value":430},{"type":173,"tag":199,"props":3485,"children":3486},{"style":282},[3487],{"type":178,"value":1717},{"type":173,"tag":199,"props":3489,"children":3490},{"class":201,"line":380},[3491,3495,3499],{"type":173,"tag":199,"props":3492,"children":3493},{"style":206},[3494],{"type":178,"value":455},{"type":173,"tag":199,"props":3496,"children":3497},{"style":212},[3498],{"type":178,"value":215},{"type":173,"tag":199,"props":3500,"children":3501},{"style":206},[3502],{"type":178,"value":251},{"type":173,"tag":1534,"props":3504,"children":3506},{"type":3505},"info",[3507,3539],{"type":173,"tag":174,"props":3508,"children":3509},{},[3510,3512,3517,3519,3524,3526,3531,3533,3538],{"type":178,"value":3511},"If you change ",{"type":173,"tag":181,"props":3513,"children":3515},{"className":3514},[],[3516],{"type":178,"value":631},{"type":178,"value":3518}," option and leave ",{"type":173,"tag":181,"props":3520,"children":3522},{"className":3521},[],[3523],{"type":178,"value":2401},{"type":178,"value":3525}," unset, ",{"type":173,"tag":181,"props":3527,"children":3529},{"className":3528},[],[3530],{"type":178,"value":2401},{"type":178,"value":3532}," option will use the same config and ",{"type":173,"tag":181,"props":3534,"children":3536},{"className":3535},[],[3537],{"type":178,"value":631},{"type":178,"value":636},{"type":173,"tag":189,"props":3540,"children":3542},{"code":3541,"language":1926,"meta":167,"className":1927,"style":167},"\u003Cscript setup lang=\"ts\">\ndefinePageMeta({\n  documentDriven: {\n    page: {\n      _path: '/foo/bar'\n    },\n    // surround will use `{ _path: '/foo/bar' }`\n  }\n})\n\u003C/script>\n",[3543],{"type":173,"tag":181,"props":3544,"children":3545},{"__ignoreMap":167},[3546,3585,3600,3615,3630,3653,3661,3669,3676,3687],{"type":173,"tag":199,"props":3547,"children":3548},{"class":201,"line":202},[3549,3553,3557,3561,3565,3569,3573,3577,3581],{"type":173,"tag":199,"props":3550,"children":3551},{"style":206},[3552],{"type":178,"value":209},{"type":173,"tag":199,"props":3554,"children":3555},{"style":212},[3556],{"type":178,"value":215},{"type":173,"tag":199,"props":3558,"children":3559},{"style":218},[3560],{"type":178,"value":221},{"type":173,"tag":199,"props":3562,"children":3563},{"style":218},[3564],{"type":178,"value":226},{"type":173,"tag":199,"props":3566,"children":3567},{"style":206},[3568],{"type":178,"value":231},{"type":173,"tag":199,"props":3570,"children":3571},{"style":206},[3572],{"type":178,"value":236},{"type":173,"tag":199,"props":3574,"children":3575},{"style":239},[3576],{"type":178,"value":242},{"type":173,"tag":199,"props":3578,"children":3579},{"style":206},[3580],{"type":178,"value":236},{"type":173,"tag":199,"props":3582,"children":3583},{"style":206},[3584],{"type":178,"value":251},{"type":173,"tag":199,"props":3586,"children":3587},{"class":201,"line":254},[3588,3592,3596],{"type":173,"tag":199,"props":3589,"children":3590},{"style":438},[3591],{"type":178,"value":3051},{"type":173,"tag":199,"props":3593,"children":3594},{"style":282},[3595],{"type":178,"value":1618},{"type":173,"tag":199,"props":3597,"children":3598},{"style":206},[3599],{"type":178,"value":1623},{"type":173,"tag":199,"props":3601,"children":3602},{"class":201,"line":268},[3603,3607,3611],{"type":173,"tag":199,"props":3604,"children":3605},{"style":212},[3606],{"type":178,"value":3067},{"type":173,"tag":199,"props":3608,"children":3609},{"style":206},[3610],{"type":178,"value":1587},{"type":173,"tag":199,"props":3612,"children":3613},{"style":206},[3614],{"type":178,"value":265},{"type":173,"tag":199,"props":3616,"children":3617},{"class":201,"line":278},[3618,3622,3626],{"type":173,"tag":199,"props":3619,"children":3620},{"style":212},[3621],{"type":178,"value":3204},{"type":173,"tag":199,"props":3623,"children":3624},{"style":206},[3625],{"type":178,"value":1587},{"type":173,"tag":199,"props":3627,"children":3628},{"style":206},[3629],{"type":178,"value":265},{"type":173,"tag":199,"props":3631,"children":3632},{"class":201,"line":293},[3633,3637,3641,3645,3649],{"type":173,"tag":199,"props":3634,"children":3635},{"style":212},[3636],{"type":178,"value":3445},{"type":173,"tag":199,"props":3638,"children":3639},{"style":206},[3640],{"type":178,"value":1587},{"type":173,"tag":199,"props":3642,"children":3643},{"style":206},[3644],{"type":178,"value":2741},{"type":173,"tag":199,"props":3646,"children":3647},{"style":239},[3648],{"type":178,"value":3458},{"type":173,"tag":199,"props":3650,"children":3651},{"style":206},[3652],{"type":178,"value":2751},{"type":173,"tag":199,"props":3654,"children":3655},{"class":201,"line":306},[3656],{"type":173,"tag":199,"props":3657,"children":3658},{"style":206},[3659],{"type":178,"value":3660},"    },\n",{"type":173,"tag":199,"props":3662,"children":3663},{"class":201,"line":319},[3664],{"type":173,"tag":199,"props":3665,"children":3666},{"style":272},[3667],{"type":178,"value":3668},"    // surround will use `{ _path: '/foo/bar' }`\n",{"type":173,"tag":199,"props":3670,"children":3671},{"class":201,"line":332},[3672],{"type":173,"tag":199,"props":3673,"children":3674},{"style":206},[3675],{"type":178,"value":1705},{"type":173,"tag":199,"props":3677,"children":3678},{"class":201,"line":341},[3679,3683],{"type":173,"tag":199,"props":3680,"children":3681},{"style":206},[3682],{"type":178,"value":430},{"type":173,"tag":199,"props":3684,"children":3685},{"style":282},[3686],{"type":178,"value":1717},{"type":173,"tag":199,"props":3688,"children":3689},{"class":201,"line":354},[3690,3694,3698],{"type":173,"tag":199,"props":3691,"children":3692},{"style":206},[3693],{"type":178,"value":455},{"type":173,"tag":199,"props":3695,"children":3696},{"style":212},[3697],{"type":178,"value":215},{"type":173,"tag":199,"props":3699,"children":3700},{"style":206},[3701],{"type":178,"value":251},{"type":173,"tag":1513,"props":3703,"children":3704},{},[3705],{"type":178,"value":1517},{"title":167,"searchDepth":254,"depth":254,"links":3707},[3708,3712,3715,3716,3717,3718],{"id":1552,"depth":254,"text":1555,"children":3709},[3710,3711],{"id":1559,"depth":268,"text":1562},{"id":1720,"depth":268,"text":1723},{"id":1829,"depth":254,"text":1832,"children":3713},[3714],{"id":1883,"depth":268,"text":1886},{"id":2085,"depth":254,"text":2088},{"id":2341,"depth":254,"text":2344},{"id":2579,"depth":254,"text":2582},{"id":2942,"depth":254,"text":2945,"children":3719},[3720,3721,3722],{"id":2960,"depth":268,"text":2963},{"id":3105,"depth":268,"text":3108},{"id":3280,"depth":268,"text":3283},"content:5.document-driven:1.introduction.md","5.document-driven/1.introduction.md",{"_path":108,"_dir":3726,"_draft":166,"_partial":166,"_locale":167,"title":107,"description":3727,"body":3728,"_type":1523,"_id":4642,"_source":1525,"_file":4643,"_extension":1527},"recipes","Nuxt Content exposes hooks to allow you to modify the content before it is parsed and after it is parsed.",{"type":170,"children":3729,"toc":4638},[3730,3735,3754,3767,3838,3848,3853,3861,3875,3883,3888,4178,4188,4193,4202,4215,4222,4227,4634],{"type":173,"tag":174,"props":3731,"children":3732},{},[3733],{"type":178,"value":3734},"The module adds some hooks you can use:",{"type":173,"tag":174,"props":3736,"children":3737},{},[3738,3744,3746,3753],{"type":173,"tag":181,"props":3739,"children":3741},{"className":3740},[],[3742],{"type":178,"value":3743},"content:file:*",{"type":178,"value":3745}," hooks are available in nitro runtime, in order to use them you need to create a custom ",{"type":173,"tag":1356,"props":3747,"children":3750},{"href":3748,"rel":3749},"https://nitro.unjs.io/guide/plugins",[1842],[3751],{"type":178,"value":3752},"nitro plugin",{"type":178,"value":636},{"type":173,"tag":174,"props":3755,"children":3756},{},[3757,3759,3765],{"type":178,"value":3758},"Create a plugin in the ",{"type":173,"tag":181,"props":3760,"children":3762},{"className":3761},[],[3763],{"type":178,"value":3764},"server/plugins/",{"type":178,"value":3766}," directory",{"type":173,"tag":189,"props":3768,"children":3771},{"className":1591,"code":3769,"filename":3770,"language":242,"meta":167,"style":167},"export default defineNitroPlugin((nitroApp) => {\n  // ...\n})\n","server/plugins/content.ts",[3772],{"type":173,"tag":181,"props":3773,"children":3774},{"__ignoreMap":167},[3775,3819,3827],{"type":173,"tag":199,"props":3776,"children":3777},{"class":201,"line":202},[3778,3782,3786,3791,3795,3799,3805,3810,3815],{"type":173,"tag":199,"props":3779,"children":3780},{"style":854},[3781],{"type":178,"value":1603},{"type":173,"tag":199,"props":3783,"children":3784},{"style":854},[3785],{"type":178,"value":1608},{"type":173,"tag":199,"props":3787,"children":3788},{"style":438},[3789],{"type":178,"value":3790}," defineNitroPlugin",{"type":173,"tag":199,"props":3792,"children":3793},{"style":282},[3794],{"type":178,"value":1618},{"type":173,"tag":199,"props":3796,"children":3797},{"style":206},[3798],{"type":178,"value":1618},{"type":173,"tag":199,"props":3800,"children":3802},{"style":3801},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8;--shiki-light-font-style:italic;--shiki-default-font-style:italic;--shiki-dark-font-style:italic",[3803],{"type":178,"value":3804},"nitroApp",{"type":173,"tag":199,"props":3806,"children":3807},{"style":206},[3808],{"type":178,"value":3809},")",{"type":173,"tag":199,"props":3811,"children":3812},{"style":218},[3813],{"type":178,"value":3814}," =>",{"type":173,"tag":199,"props":3816,"children":3817},{"style":206},[3818],{"type":178,"value":265},{"type":173,"tag":199,"props":3820,"children":3821},{"class":201,"line":254},[3822],{"type":173,"tag":199,"props":3823,"children":3824},{"style":272},[3825],{"type":178,"value":3826},"  // ...\n",{"type":173,"tag":199,"props":3828,"children":3829},{"class":201,"line":268},[3830,3834],{"type":173,"tag":199,"props":3831,"children":3832},{"style":206},[3833],{"type":178,"value":430},{"type":173,"tag":199,"props":3835,"children":3836},{"style":282},[3837],{"type":178,"value":1717},{"type":173,"tag":465,"props":3839,"children":3841},{"id":3840},"contentfilebeforeparse",[3842],{"type":173,"tag":181,"props":3843,"children":3845},{"className":3844},[],[3846],{"type":178,"value":3847},"content:file:beforeParse",{"type":173,"tag":174,"props":3849,"children":3850},{},[3851],{"type":178,"value":3852},"Allows you to modify the contents of a file before it is handled by the parsers.",{"type":173,"tag":174,"props":3854,"children":3855},{},[3856],{"type":173,"tag":2375,"props":3857,"children":3858},{},[3859],{"type":178,"value":3860},"Arguments:",{"type":173,"tag":1212,"props":3862,"children":3863},{},[3864],{"type":173,"tag":1268,"props":3865,"children":3866},{},[3867,3869],{"type":178,"value":3868},"file: ",{"type":173,"tag":181,"props":3870,"children":3872},{"className":3871},[],[3873],{"type":178,"value":3874},"{ _id: string, body: string }",{"type":173,"tag":174,"props":3876,"children":3877},{},[3878],{"type":173,"tag":2375,"props":3879,"children":3880},{},[3881],{"type":178,"value":3882},"Example:",{"type":173,"tag":174,"props":3884,"children":3885},{},[3886],{"type":178,"value":3887},"Changing all occurrences of React to Vue in all Markdown files:",{"type":173,"tag":189,"props":3889,"children":3891},{"className":1591,"code":3890,"filename":3770,"language":242,"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",[3892],{"type":173,"tag":181,"props":3893,"children":3894},{"__ignoreMap":167},[3895,3934,4002,4061,4148,4155,4167],{"type":173,"tag":199,"props":3896,"children":3897},{"class":201,"line":202},[3898,3902,3906,3910,3914,3918,3922,3926,3930],{"type":173,"tag":199,"props":3899,"children":3900},{"style":854},[3901],{"type":178,"value":1603},{"type":173,"tag":199,"props":3903,"children":3904},{"style":854},[3905],{"type":178,"value":1608},{"type":173,"tag":199,"props":3907,"children":3908},{"style":438},[3909],{"type":178,"value":3790},{"type":173,"tag":199,"props":3911,"children":3912},{"style":282},[3913],{"type":178,"value":1618},{"type":173,"tag":199,"props":3915,"children":3916},{"style":206},[3917],{"type":178,"value":1618},{"type":173,"tag":199,"props":3919,"children":3920},{"style":3801},[3921],{"type":178,"value":3804},{"type":173,"tag":199,"props":3923,"children":3924},{"style":206},[3925],{"type":178,"value":3809},{"type":173,"tag":199,"props":3927,"children":3928},{"style":218},[3929],{"type":178,"value":3814},{"type":173,"tag":199,"props":3931,"children":3932},{"style":206},[3933],{"type":178,"value":265},{"type":173,"tag":199,"props":3935,"children":3936},{"class":201,"line":254},[3937,3942,3946,3951,3955,3960,3964,3968,3972,3976,3980,3985,3990,3994,3998],{"type":173,"tag":199,"props":3938,"children":3939},{"style":282},[3940],{"type":178,"value":3941},"  nitroApp",{"type":173,"tag":199,"props":3943,"children":3944},{"style":206},[3945],{"type":178,"value":636},{"type":173,"tag":199,"props":3947,"children":3948},{"style":282},[3949],{"type":178,"value":3950},"hooks",{"type":173,"tag":199,"props":3952,"children":3953},{"style":206},[3954],{"type":178,"value":636},{"type":173,"tag":199,"props":3956,"children":3957},{"style":438},[3958],{"type":178,"value":3959},"hook",{"type":173,"tag":199,"props":3961,"children":3962},{"style":212},[3963],{"type":178,"value":1618},{"type":173,"tag":199,"props":3965,"children":3966},{"style":206},[3967],{"type":178,"value":1645},{"type":173,"tag":199,"props":3969,"children":3970},{"style":239},[3971],{"type":178,"value":3847},{"type":173,"tag":199,"props":3973,"children":3974},{"style":206},[3975],{"type":178,"value":1645},{"type":173,"tag":199,"props":3977,"children":3978},{"style":206},[3979],{"type":178,"value":764},{"type":173,"tag":199,"props":3981,"children":3982},{"style":206},[3983],{"type":178,"value":3984}," (",{"type":173,"tag":199,"props":3986,"children":3987},{"style":3801},[3988],{"type":178,"value":3989},"file",{"type":173,"tag":199,"props":3991,"children":3992},{"style":206},[3993],{"type":178,"value":3809},{"type":173,"tag":199,"props":3995,"children":3996},{"style":218},[3997],{"type":178,"value":3814},{"type":173,"tag":199,"props":3999,"children":4000},{"style":206},[4001],{"type":178,"value":265},{"type":173,"tag":199,"props":4003,"children":4004},{"class":201,"line":268},[4005,4010,4014,4018,4022,4026,4030,4035,4039,4043,4048,4052,4057],{"type":173,"tag":199,"props":4006,"children":4007},{"style":854},[4008],{"type":178,"value":4009},"    if",{"type":173,"tag":199,"props":4011,"children":4012},{"style":212},[4013],{"type":178,"value":3984},{"type":173,"tag":199,"props":4015,"children":4016},{"style":282},[4017],{"type":178,"value":3989},{"type":173,"tag":199,"props":4019,"children":4020},{"style":206},[4021],{"type":178,"value":636},{"type":173,"tag":199,"props":4023,"children":4024},{"style":282},[4025],{"type":178,"value":641},{"type":173,"tag":199,"props":4027,"children":4028},{"style":206},[4029],{"type":178,"value":636},{"type":173,"tag":199,"props":4031,"children":4032},{"style":438},[4033],{"type":178,"value":4034},"endsWith",{"type":173,"tag":199,"props":4036,"children":4037},{"style":212},[4038],{"type":178,"value":1618},{"type":173,"tag":199,"props":4040,"children":4041},{"style":206},[4042],{"type":178,"value":1645},{"type":173,"tag":199,"props":4044,"children":4045},{"style":239},[4046],{"type":178,"value":4047},".md",{"type":173,"tag":199,"props":4049,"children":4050},{"style":206},[4051],{"type":178,"value":1645},{"type":173,"tag":199,"props":4053,"children":4054},{"style":212},[4055],{"type":178,"value":4056},")) ",{"type":173,"tag":199,"props":4058,"children":4059},{"style":206},[4060],{"type":178,"value":1623},{"type":173,"tag":199,"props":4062,"children":4063},{"class":201,"line":278},[4064,4069,4073,4078,4082,4087,4091,4095,4099,4104,4108,4113,4118,4122,4128,4132,4136,4140,4144],{"type":173,"tag":199,"props":4065,"children":4066},{"style":282},[4067],{"type":178,"value":4068},"      file",{"type":173,"tag":199,"props":4070,"children":4071},{"style":206},[4072],{"type":178,"value":636},{"type":173,"tag":199,"props":4074,"children":4075},{"style":282},[4076],{"type":178,"value":4077},"body",{"type":173,"tag":199,"props":4079,"children":4080},{"style":206},[4081],{"type":178,"value":435},{"type":173,"tag":199,"props":4083,"children":4084},{"style":282},[4085],{"type":178,"value":4086}," file",{"type":173,"tag":199,"props":4088,"children":4089},{"style":206},[4090],{"type":178,"value":636},{"type":173,"tag":199,"props":4092,"children":4093},{"style":282},[4094],{"type":178,"value":4077},{"type":173,"tag":199,"props":4096,"children":4097},{"style":206},[4098],{"type":178,"value":636},{"type":173,"tag":199,"props":4100,"children":4101},{"style":438},[4102],{"type":178,"value":4103},"replace",{"type":173,"tag":199,"props":4105,"children":4106},{"style":212},[4107],{"type":178,"value":1618},{"type":173,"tag":199,"props":4109,"children":4110},{"style":206},[4111],{"type":178,"value":4112},"/",{"type":173,"tag":199,"props":4114,"children":4115},{"style":239},[4116],{"type":178,"value":4117},"react",{"type":173,"tag":199,"props":4119,"children":4120},{"style":206},[4121],{"type":178,"value":4112},{"type":173,"tag":199,"props":4123,"children":4125},{"style":4124},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[4126],{"type":178,"value":4127},"g",{"type":173,"tag":199,"props":4129,"children":4130},{"style":206},[4131],{"type":178,"value":764},{"type":173,"tag":199,"props":4133,"children":4134},{"style":206},[4135],{"type":178,"value":2741},{"type":173,"tag":199,"props":4137,"children":4138},{"style":239},[4139],{"type":178,"value":193},{"type":173,"tag":199,"props":4141,"children":4142},{"style":206},[4143],{"type":178,"value":1645},{"type":173,"tag":199,"props":4145,"children":4146},{"style":212},[4147],{"type":178,"value":1717},{"type":173,"tag":199,"props":4149,"children":4150},{"class":201,"line":293},[4151],{"type":173,"tag":199,"props":4152,"children":4153},{"style":206},[4154],{"type":178,"value":2286},{"type":173,"tag":199,"props":4156,"children":4157},{"class":201,"line":306},[4158,4163],{"type":173,"tag":199,"props":4159,"children":4160},{"style":206},[4161],{"type":178,"value":4162},"  }",{"type":173,"tag":199,"props":4164,"children":4165},{"style":212},[4166],{"type":178,"value":1717},{"type":173,"tag":199,"props":4168,"children":4169},{"class":201,"line":319},[4170,4174],{"type":173,"tag":199,"props":4171,"children":4172},{"style":206},[4173],{"type":178,"value":430},{"type":173,"tag":199,"props":4175,"children":4176},{"style":282},[4177],{"type":178,"value":1717},{"type":173,"tag":465,"props":4179,"children":4181},{"id":4180},"contentfileafterparse",[4182],{"type":173,"tag":181,"props":4183,"children":4185},{"className":4184},[],[4186],{"type":178,"value":4187},"content:file:afterParse",{"type":173,"tag":174,"props":4189,"children":4190},{},[4191],{"type":178,"value":4192},"Allows you to modify a document after being parsed by parsers.",{"type":173,"tag":174,"props":4194,"children":4195},{},[4196,4201],{"type":173,"tag":2375,"props":4197,"children":4198},{},[4199],{"type":178,"value":4200},"Arguments",{"type":178,"value":1587},{"type":173,"tag":1212,"props":4203,"children":4204},{},[4205],{"type":173,"tag":1268,"props":4206,"children":4207},{},[4208,4209],{"type":178,"value":3868},{"type":173,"tag":181,"props":4210,"children":4212},{"className":4211},[],[4213],{"type":178,"value":4214},"{ _id: string, body: any }",{"type":173,"tag":174,"props":4216,"children":4217},{},[4218],{"type":173,"tag":2375,"props":4219,"children":4220},{},[4221],{"type":178,"value":3882},{"type":173,"tag":174,"props":4223,"children":4224},{},[4225],{"type":178,"value":4226},"Using content's first picture as cover image.",{"type":173,"tag":189,"props":4228,"children":4230},{"className":1591,"code":4229,"filename":3770,"language":242,"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",[4231],{"type":173,"tag":181,"props":4232,"children":4233},{"__ignoreMap":167},[4234,4274,4281,4320,4383,4438,4549,4593,4605,4612,4623],{"type":173,"tag":199,"props":4235,"children":4236},{"class":201,"line":202},[4237,4242,4246,4251,4256,4261,4265,4270],{"type":173,"tag":199,"props":4238,"children":4239},{"style":854},[4240],{"type":178,"value":4241},"import",{"type":173,"tag":199,"props":4243,"children":4244},{"style":206},[4245],{"type":178,"value":534},{"type":173,"tag":199,"props":4247,"children":4248},{"style":282},[4249],{"type":178,"value":4250}," visit",{"type":173,"tag":199,"props":4252,"children":4253},{"style":206},[4254],{"type":178,"value":4255}," }",{"type":173,"tag":199,"props":4257,"children":4258},{"style":854},[4259],{"type":178,"value":4260}," from",{"type":173,"tag":199,"props":4262,"children":4263},{"style":206},[4264],{"type":178,"value":2741},{"type":173,"tag":199,"props":4266,"children":4267},{"style":239},[4268],{"type":178,"value":4269},"unist-util-visit",{"type":173,"tag":199,"props":4271,"children":4272},{"style":206},[4273],{"type":178,"value":2751},{"type":173,"tag":199,"props":4275,"children":4276},{"class":201,"line":254},[4277],{"type":173,"tag":199,"props":4278,"children":4279},{"emptyLinePlaceholder":576},[4280],{"type":178,"value":579},{"type":173,"tag":199,"props":4282,"children":4283},{"class":201,"line":268},[4284,4288,4292,4296,4300,4304,4308,4312,4316],{"type":173,"tag":199,"props":4285,"children":4286},{"style":854},[4287],{"type":178,"value":1603},{"type":173,"tag":199,"props":4289,"children":4290},{"style":854},[4291],{"type":178,"value":1608},{"type":173,"tag":199,"props":4293,"children":4294},{"style":438},[4295],{"type":178,"value":3790},{"type":173,"tag":199,"props":4297,"children":4298},{"style":282},[4299],{"type":178,"value":1618},{"type":173,"tag":199,"props":4301,"children":4302},{"style":206},[4303],{"type":178,"value":1618},{"type":173,"tag":199,"props":4305,"children":4306},{"style":3801},[4307],{"type":178,"value":3804},{"type":173,"tag":199,"props":4309,"children":4310},{"style":206},[4311],{"type":178,"value":3809},{"type":173,"tag":199,"props":4313,"children":4314},{"style":218},[4315],{"type":178,"value":3814},{"type":173,"tag":199,"props":4317,"children":4318},{"style":206},[4319],{"type":178,"value":265},{"type":173,"tag":199,"props":4321,"children":4322},{"class":201,"line":278},[4323,4327,4331,4335,4339,4343,4347,4351,4355,4359,4363,4367,4371,4375,4379],{"type":173,"tag":199,"props":4324,"children":4325},{"style":282},[4326],{"type":178,"value":3941},{"type":173,"tag":199,"props":4328,"children":4329},{"style":206},[4330],{"type":178,"value":636},{"type":173,"tag":199,"props":4332,"children":4333},{"style":282},[4334],{"type":178,"value":3950},{"type":173,"tag":199,"props":4336,"children":4337},{"style":206},[4338],{"type":178,"value":636},{"type":173,"tag":199,"props":4340,"children":4341},{"style":438},[4342],{"type":178,"value":3959},{"type":173,"tag":199,"props":4344,"children":4345},{"style":212},[4346],{"type":178,"value":1618},{"type":173,"tag":199,"props":4348,"children":4349},{"style":206},[4350],{"type":178,"value":1645},{"type":173,"tag":199,"props":4352,"children":4353},{"style":239},[4354],{"type":178,"value":4187},{"type":173,"tag":199,"props":4356,"children":4357},{"style":206},[4358],{"type":178,"value":1645},{"type":173,"tag":199,"props":4360,"children":4361},{"style":206},[4362],{"type":178,"value":764},{"type":173,"tag":199,"props":4364,"children":4365},{"style":206},[4366],{"type":178,"value":3984},{"type":173,"tag":199,"props":4368,"children":4369},{"style":3801},[4370],{"type":178,"value":3989},{"type":173,"tag":199,"props":4372,"children":4373},{"style":206},[4374],{"type":178,"value":3809},{"type":173,"tag":199,"props":4376,"children":4377},{"style":218},[4378],{"type":178,"value":3814},{"type":173,"tag":199,"props":4380,"children":4381},{"style":206},[4382],{"type":178,"value":265},{"type":173,"tag":199,"props":4384,"children":4385},{"class":201,"line":293},[4386,4390,4394,4398,4402,4406,4410,4414,4418,4422,4426,4430,4434],{"type":173,"tag":199,"props":4387,"children":4388},{"style":854},[4389],{"type":178,"value":4009},{"type":173,"tag":199,"props":4391,"children":4392},{"style":212},[4393],{"type":178,"value":3984},{"type":173,"tag":199,"props":4395,"children":4396},{"style":282},[4397],{"type":178,"value":3989},{"type":173,"tag":199,"props":4399,"children":4400},{"style":206},[4401],{"type":178,"value":636},{"type":173,"tag":199,"props":4403,"children":4404},{"style":282},[4405],{"type":178,"value":641},{"type":173,"tag":199,"props":4407,"children":4408},{"style":206},[4409],{"type":178,"value":636},{"type":173,"tag":199,"props":4411,"children":4412},{"style":438},[4413],{"type":178,"value":4034},{"type":173,"tag":199,"props":4415,"children":4416},{"style":212},[4417],{"type":178,"value":1618},{"type":173,"tag":199,"props":4419,"children":4420},{"style":206},[4421],{"type":178,"value":1645},{"type":173,"tag":199,"props":4423,"children":4424},{"style":239},[4425],{"type":178,"value":4047},{"type":173,"tag":199,"props":4427,"children":4428},{"style":206},[4429],{"type":178,"value":1645},{"type":173,"tag":199,"props":4431,"children":4432},{"style":212},[4433],{"type":178,"value":4056},{"type":173,"tag":199,"props":4435,"children":4436},{"style":206},[4437],{"type":178,"value":1623},{"type":173,"tag":199,"props":4439,"children":4440},{"class":201,"line":306},[4441,4446,4450,4454,4458,4462,4466,4470,4475,4479,4484,4488,4492,4497,4501,4506,4511,4515,4520,4524,4528,4532,4537,4541,4545],{"type":173,"tag":199,"props":4442,"children":4443},{"style":438},[4444],{"type":178,"value":4445},"      visit",{"type":173,"tag":199,"props":4447,"children":4448},{"style":212},[4449],{"type":178,"value":1618},{"type":173,"tag":199,"props":4451,"children":4452},{"style":282},[4453],{"type":178,"value":3989},{"type":173,"tag":199,"props":4455,"children":4456},{"style":206},[4457],{"type":178,"value":636},{"type":173,"tag":199,"props":4459,"children":4460},{"style":282},[4461],{"type":178,"value":4077},{"type":173,"tag":199,"props":4463,"children":4464},{"style":206},[4465],{"type":178,"value":764},{"type":173,"tag":199,"props":4467,"children":4468},{"style":206},[4469],{"type":178,"value":3984},{"type":173,"tag":199,"props":4471,"children":4472},{"style":3801},[4473],{"type":178,"value":4474},"n",{"type":173,"tag":199,"props":4476,"children":4477},{"style":206},[4478],{"type":178,"value":1587},{"type":173,"tag":199,"props":4480,"children":4481},{"style":1748},[4482],{"type":178,"value":4483}," any",{"type":173,"tag":199,"props":4485,"children":4486},{"style":206},[4487],{"type":178,"value":3809},{"type":173,"tag":199,"props":4489,"children":4490},{"style":218},[4491],{"type":178,"value":3814},{"type":173,"tag":199,"props":4493,"children":4494},{"style":282},[4495],{"type":178,"value":4496}," n",{"type":173,"tag":199,"props":4498,"children":4499},{"style":206},[4500],{"type":178,"value":636},{"type":173,"tag":199,"props":4502,"children":4503},{"style":282},[4504],{"type":178,"value":4505},"tag",{"type":173,"tag":199,"props":4507,"children":4508},{"style":206},[4509],{"type":178,"value":4510}," ===",{"type":173,"tag":199,"props":4512,"children":4513},{"style":206},[4514],{"type":178,"value":2741},{"type":173,"tag":199,"props":4516,"children":4517},{"style":239},[4518],{"type":178,"value":4519},"img",{"type":173,"tag":199,"props":4521,"children":4522},{"style":206},[4523],{"type":178,"value":1645},{"type":173,"tag":199,"props":4525,"children":4526},{"style":206},[4527],{"type":178,"value":764},{"type":173,"tag":199,"props":4529,"children":4530},{"style":206},[4531],{"type":178,"value":3984},{"type":173,"tag":199,"props":4533,"children":4534},{"style":3801},[4535],{"type":178,"value":4536},"node",{"type":173,"tag":199,"props":4538,"children":4539},{"style":206},[4540],{"type":178,"value":3809},{"type":173,"tag":199,"props":4542,"children":4543},{"style":218},[4544],{"type":178,"value":3814},{"type":173,"tag":199,"props":4546,"children":4547},{"style":206},[4548],{"type":178,"value":265},{"type":173,"tag":199,"props":4550,"children":4551},{"class":201,"line":319},[4552,4557,4561,4566,4570,4575,4579,4584,4588],{"type":173,"tag":199,"props":4553,"children":4554},{"style":282},[4555],{"type":178,"value":4556},"        file",{"type":173,"tag":199,"props":4558,"children":4559},{"style":206},[4560],{"type":178,"value":636},{"type":173,"tag":199,"props":4562,"children":4563},{"style":282},[4564],{"type":178,"value":4565},"coverImage",{"type":173,"tag":199,"props":4567,"children":4568},{"style":206},[4569],{"type":178,"value":435},{"type":173,"tag":199,"props":4571,"children":4572},{"style":282},[4573],{"type":178,"value":4574}," node",{"type":173,"tag":199,"props":4576,"children":4577},{"style":206},[4578],{"type":178,"value":636},{"type":173,"tag":199,"props":4580,"children":4581},{"style":282},[4582],{"type":178,"value":4583},"props",{"type":173,"tag":199,"props":4585,"children":4586},{"style":206},[4587],{"type":178,"value":636},{"type":173,"tag":199,"props":4589,"children":4590},{"style":282},[4591],{"type":178,"value":4592},"src\n",{"type":173,"tag":199,"props":4594,"children":4595},{"class":201,"line":332},[4596,4601],{"type":173,"tag":199,"props":4597,"children":4598},{"style":206},[4599],{"type":178,"value":4600},"      }",{"type":173,"tag":199,"props":4602,"children":4603},{"style":212},[4604],{"type":178,"value":1717},{"type":173,"tag":199,"props":4606,"children":4607},{"class":201,"line":341},[4608],{"type":173,"tag":199,"props":4609,"children":4610},{"style":206},[4611],{"type":178,"value":2286},{"type":173,"tag":199,"props":4613,"children":4614},{"class":201,"line":354},[4615,4619],{"type":173,"tag":199,"props":4616,"children":4617},{"style":206},[4618],{"type":178,"value":4162},{"type":173,"tag":199,"props":4620,"children":4621},{"style":212},[4622],{"type":178,"value":1717},{"type":173,"tag":199,"props":4624,"children":4625},{"class":201,"line":367},[4626,4630],{"type":173,"tag":199,"props":4627,"children":4628},{"style":206},[4629],{"type":178,"value":430},{"type":173,"tag":199,"props":4631,"children":4632},{"style":282},[4633],{"type":178,"value":1717},{"type":173,"tag":1513,"props":4635,"children":4636},{},[4637],{"type":178,"value":1517},{"title":167,"searchDepth":254,"depth":254,"links":4639},[4640,4641],{"id":3840,"depth":254,"text":3847},{"id":4180,"depth":254,"text":4187},"content:6.recipes:1.hooks.md","6.recipes/1.hooks.md",1719304183973]