[{"data":1,"prerenderedAt":1982},["ShallowReactive",2],{"page:\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites\u002Fsidebar-navigation-in-astro-and-eleventy":3,"all-docs-nav":1441},{"id":4,"title":5,"body":6,"breadcrumb":1418,"dateModified":1427,"datePublished":1427,"description":1428,"extension":1429,"faq":1430,"meta":1435,"navigation":314,"path":1436,"seo":1437,"slug":12,"stem":1438,"type":1439,"__hash__":1440},"content\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites\u002Fsidebar-navigation-in-astro-and-eleventy\u002Findex.md","Sidebar Navigation in Astro and Eleventy",{"type":7,"value":8,"toc":1400},"minimark",[9,13,23,31,36,69,73,76,213,250,259,263,266,531,607,610,614,621,759,816,970,974,977,1058,1064,1139,1143,1146,1160,1223,1230,1234,1255,1259,1313,1317,1320,1324,1329,1332,1336,1339,1343,1346,1350,1353,1357,1396],[10,11,5],"h1",{"id":12},"sidebar-navigation-in-astro-and-eleventy",[14,15,16,17,22],"p",{},"The sidebar is the most-used component on a documentation site and the one most often built badly. It is rendered on every page, so its HTML weight multiplies across the site; it depends on every page's title and order, so it can defeat incremental builds; and it is the main way readers orient themselves, so ordering, nesting and the active state matter more than any visual detail. Astro and Eleventy both leave the sidebar to you — unlike docs frameworks such as Starlight, covered in ",[18,19,21],"a",{"href":20},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002F","Docs Frameworks: Docusaurus, Starlight and VitePress"," — and they encourage slightly different designs.",[14,24,25,26,30],{},"This guide builds the same nested, ordered, collapsible sidebar for a 1,500-page documentation site in both generators, then measures its effect on page weight and incremental build time. It is part of ",[18,27,29],{"href":28},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites\u002F","Astro vs Eleventy for Documentation Sites",".",[32,33,35],"h2",{"id":34},"prerequisites","Prerequisites",[37,38,39,52,66],"ul",{},[40,41,42,43,47,48,51],"li",{},"Docs content organised in folders that reflect sections (",[44,45,46],"code",{},"guides\u002Fdeploy\u002F…",", ",[44,49,50],{},"reference\u002Fcli\u002F…",").",[40,53,54,55,58,59,62,63,30],{},"Front matter fields for navigation: ",[44,56,57],{},"title",", optional ",[44,60,61],{},"navTitle"," (a shorter label) and ",[44,64,65],{},"order",[40,67,68],{},"A decision on how deep the sidebar goes — two or three levels is typical.",[32,70,72],{"id":71},"the-data-model","The Data Model",[14,74,75],{},"Both implementations use the same model: folder structure defines sections, front matter defines labels and order, and a small config file names top-level sections and their order:",[77,78,83],"pre",{"className":79,"code":80,"language":81,"meta":82,"style":82},"language-yaml shiki shiki-themes github-light github-dark","# src\u002Fdata\u002Fsections.yml\n- { dir: start, label: Get started }\n- { dir: guides, label: Guides }\n- { dir: reference, label: Reference, collapsed: true }\n- { dir: changelog, label: Changelog, collapsed: true }\n","yaml","",[44,84,85,94,125,148,182],{"__ignoreMap":82},[86,87,90],"span",{"class":88,"line":89},"line",1,[86,91,93],{"class":92},"sJ8bj","# src\u002Fdata\u002Fsections.yml\n",[86,95,97,101,105,108,112,114,117,119,122],{"class":88,"line":96},2,[86,98,100],{"class":99},"sVt8B","- { ",[86,102,104],{"class":103},"s9eBZ","dir",[86,106,107],{"class":99},": ",[86,109,111],{"class":110},"sZZnC","start",[86,113,47],{"class":99},[86,115,116],{"class":103},"label",[86,118,107],{"class":99},[86,120,121],{"class":110},"Get started",[86,123,124],{"class":99}," }\n",[86,126,128,130,132,134,137,139,141,143,146],{"class":88,"line":127},3,[86,129,100],{"class":99},[86,131,104],{"class":103},[86,133,107],{"class":99},[86,135,136],{"class":110},"guides",[86,138,47],{"class":99},[86,140,116],{"class":103},[86,142,107],{"class":99},[86,144,145],{"class":110},"Guides",[86,147,124],{"class":99},[86,149,151,153,155,157,160,162,164,166,169,171,174,176,180],{"class":88,"line":150},4,[86,152,100],{"class":99},[86,154,104],{"class":103},[86,156,107],{"class":99},[86,158,159],{"class":110},"reference",[86,161,47],{"class":99},[86,163,116],{"class":103},[86,165,107],{"class":99},[86,167,168],{"class":110},"Reference",[86,170,47],{"class":99},[86,172,173],{"class":103},"collapsed",[86,175,107],{"class":99},[86,177,179],{"class":178},"sj4cs","true",[86,181,124],{"class":99},[86,183,185,187,189,191,194,196,198,200,203,205,207,209,211],{"class":88,"line":184},5,[86,186,100],{"class":99},[86,188,104],{"class":103},[86,190,107],{"class":99},[86,192,193],{"class":110},"changelog",[86,195,47],{"class":99},[86,197,116],{"class":103},[86,199,107],{"class":99},[86,201,202],{"class":110},"Changelog",[86,204,47],{"class":99},[86,206,173],{"class":103},[86,208,107],{"class":99},[86,210,179],{"class":178},[86,212,124],{"class":99},[77,214,216],{"className":79,"code":215,"language":81,"meta":82,"style":82},"# a page's front matter\ntitle: Deploying Hugo to Cloudflare Pages and Workers\nnavTitle: Cloudflare Pages\norder: 20\n",[44,217,218,223,232,241],{"__ignoreMap":82},[86,219,220],{"class":88,"line":89},[86,221,222],{"class":92},"# a page's front matter\n",[86,224,225,227,229],{"class":88,"line":96},[86,226,57],{"class":103},[86,228,107],{"class":99},[86,230,231],{"class":110},"Deploying Hugo to Cloudflare Pages and Workers\n",[86,233,234,236,238],{"class":88,"line":127},[86,235,61],{"class":103},[86,237,107],{"class":99},[86,239,240],{"class":110},"Cloudflare Pages\n",[86,242,243,245,247],{"class":88,"line":150},[86,244,65],{"class":103},[86,246,107],{"class":99},[86,248,249],{"class":178},"20\n",[14,251,252,253,255,256,258],{},"Ordering by explicit ",[44,254,65],{}," values with gaps (10, 20, 30) lets writers insert a page between two others without renumbering. Pages without ",[44,257,65],{}," sort alphabetically after ordered ones.",[32,260,262],{"id":261},"astro-a-collection-query-and-a-recursive-component","Astro: A Collection Query and a Recursive Component",[14,264,265],{},"In Astro, a content collection provides every page with its front matter at build time. A helper builds the tree once per build and a recursive component renders it:",[77,267,271],{"className":268,"code":269,"language":270,"meta":82,"style":82},"language-ts shiki shiki-themes github-light github-dark","\u002F\u002F src\u002Flib\u002Fnav.ts\nimport { getCollection } from 'astro:content';\nimport sections from '..\u002Fdata\u002Fsections.yml';\n\nlet cached: NavNode[] | undefined;\nexport async function getNav() {\n  if (cached) return cached;                         \u002F\u002F built once, reused by every page\n  const docs = await getCollection('docs', (d) => !d.data.draft);\n  cached = sections.map((s) => ({\n    label: s.label, collapsed: s.collapsed ?? false,\n    children: tree(docs.filter((d) => d.id.startsWith(`${s.dir}\u002F`)), s.dir),\n  }));\n  return cached;\n}\n","ts",[44,272,273,278,296,310,316,342,360,378,421,449,464,510,516,525],{"__ignoreMap":82},[86,274,275],{"class":88,"line":89},[86,276,277],{"class":92},"\u002F\u002F src\u002Flib\u002Fnav.ts\n",[86,279,280,284,287,290,293],{"class":88,"line":96},[86,281,283],{"class":282},"szBVR","import",[86,285,286],{"class":99}," { getCollection } ",[86,288,289],{"class":282},"from",[86,291,292],{"class":110}," 'astro:content'",[86,294,295],{"class":99},";\n",[86,297,298,300,303,305,308],{"class":88,"line":127},[86,299,283],{"class":282},[86,301,302],{"class":99}," sections ",[86,304,289],{"class":282},[86,306,307],{"class":110}," '..\u002Fdata\u002Fsections.yml'",[86,309,295],{"class":99},[86,311,312],{"class":88,"line":150},[86,313,315],{"emptyLinePlaceholder":314},true,"\n",[86,317,318,321,324,327,331,334,337,340],{"class":88,"line":184},[86,319,320],{"class":282},"let",[86,322,323],{"class":99}," cached",[86,325,326],{"class":282},":",[86,328,330],{"class":329},"sScJk"," NavNode",[86,332,333],{"class":99},"[] ",[86,335,336],{"class":282},"|",[86,338,339],{"class":178}," undefined",[86,341,295],{"class":99},[86,343,345,348,351,354,357],{"class":88,"line":344},6,[86,346,347],{"class":282},"export",[86,349,350],{"class":282}," async",[86,352,353],{"class":282}," function",[86,355,356],{"class":329}," getNav",[86,358,359],{"class":99},"() {\n",[86,361,363,366,369,372,375],{"class":88,"line":362},7,[86,364,365],{"class":282},"  if",[86,367,368],{"class":99}," (cached) ",[86,370,371],{"class":282},"return",[86,373,374],{"class":99}," cached;                         ",[86,376,377],{"class":92},"\u002F\u002F built once, reused by every page\n",[86,379,381,384,387,390,393,396,399,402,405,409,412,415,418],{"class":88,"line":380},8,[86,382,383],{"class":282},"  const",[86,385,386],{"class":178}," docs",[86,388,389],{"class":282}," =",[86,391,392],{"class":282}," await",[86,394,395],{"class":329}," getCollection",[86,397,398],{"class":99},"(",[86,400,401],{"class":110},"'docs'",[86,403,404],{"class":99},", (",[86,406,408],{"class":407},"s4XuR","d",[86,410,411],{"class":99},") ",[86,413,414],{"class":282},"=>",[86,416,417],{"class":282}," !",[86,419,420],{"class":99},"d.data.draft);\n",[86,422,424,427,430,433,436,439,442,444,446],{"class":88,"line":423},9,[86,425,426],{"class":99},"  cached ",[86,428,429],{"class":282},"=",[86,431,432],{"class":99}," sections.",[86,434,435],{"class":329},"map",[86,437,438],{"class":99},"((",[86,440,441],{"class":407},"s",[86,443,411],{"class":99},[86,445,414],{"class":282},[86,447,448],{"class":99}," ({\n",[86,450,452,455,458,461],{"class":88,"line":451},10,[86,453,454],{"class":99},"    label: s.label, collapsed: s.collapsed ",[86,456,457],{"class":282},"??",[86,459,460],{"class":178}," false",[86,462,463],{"class":99},",\n",[86,465,467,470,473,476,479,481,483,485,487,490,493,495,498,500,502,504,507],{"class":88,"line":466},11,[86,468,469],{"class":99},"    children: ",[86,471,472],{"class":329},"tree",[86,474,475],{"class":99},"(docs.",[86,477,478],{"class":329},"filter",[86,480,438],{"class":99},[86,482,408],{"class":407},[86,484,411],{"class":99},[86,486,414],{"class":282},[86,488,489],{"class":99}," d.id.",[86,491,492],{"class":329},"startsWith",[86,494,398],{"class":99},[86,496,497],{"class":110},"`${",[86,499,441],{"class":99},[86,501,30],{"class":110},[86,503,104],{"class":99},[86,505,506],{"class":110},"}\u002F`",[86,508,509],{"class":99},")), s.dir),\n",[86,511,513],{"class":88,"line":512},12,[86,514,515],{"class":99},"  }));\n",[86,517,519,522],{"class":88,"line":518},13,[86,520,521],{"class":282},"  return",[86,523,524],{"class":99}," cached;\n",[86,526,528],{"class":88,"line":527},14,[86,529,530],{"class":99},"}\n",[77,532,536],{"className":533,"code":534,"language":535,"meta":82,"style":82},"language-astro shiki shiki-themes github-light github-dark","---\n\u002F\u002F src\u002Fcomponents\u002FNavTree.astro\nconst { nodes, current } = Astro.props;\n---\n\u003Cul>\n  {nodes.map((n) => n.children?.length ? (\n    \u003Cli>\u003Cdetails open={!n.collapsed || current.startsWith(n.href ?? '~')}>\n      \u003Csummary>{n.label}\u003C\u002Fsummary>\n      \u003CAstro.self nodes={n.children} current={current} \u002F>\n    \u003C\u002Fdetails>\u003C\u002Fli>\n  ) : (\n    \u003Cli>\u003Ca href={n.href} aria-current={n.href === current ? 'page' : undefined}>{n.label}\u003C\u002Fa>\u003C\u002Fli>\n  ))}\n\u003C\u002Ful>\n","astro",[44,537,538,543,548,553,557,562,567,572,577,582,587,592,597,602],{"__ignoreMap":82},[86,539,540],{"class":88,"line":89},[86,541,542],{},"---\n",[86,544,545],{"class":88,"line":96},[86,546,547],{},"\u002F\u002F src\u002Fcomponents\u002FNavTree.astro\n",[86,549,550],{"class":88,"line":127},[86,551,552],{},"const { nodes, current } = Astro.props;\n",[86,554,555],{"class":88,"line":150},[86,556,542],{},[86,558,559],{"class":88,"line":184},[86,560,561],{},"\u003Cul>\n",[86,563,564],{"class":88,"line":344},[86,565,566],{},"  {nodes.map((n) => n.children?.length ? (\n",[86,568,569],{"class":88,"line":362},[86,570,571],{},"    \u003Cli>\u003Cdetails open={!n.collapsed || current.startsWith(n.href ?? '~')}>\n",[86,573,574],{"class":88,"line":380},[86,575,576],{},"      \u003Csummary>{n.label}\u003C\u002Fsummary>\n",[86,578,579],{"class":88,"line":423},[86,580,581],{},"      \u003CAstro.self nodes={n.children} current={current} \u002F>\n",[86,583,584],{"class":88,"line":451},[86,585,586],{},"    \u003C\u002Fdetails>\u003C\u002Fli>\n",[86,588,589],{"class":88,"line":466},[86,590,591],{},"  ) : (\n",[86,593,594],{"class":88,"line":512},[86,595,596],{},"    \u003Cli>\u003Ca href={n.href} aria-current={n.href === current ? 'page' : undefined}>{n.label}\u003C\u002Fa>\u003C\u002Fli>\n",[86,598,599],{"class":88,"line":518},[86,600,601],{},"  ))}\n",[86,603,604],{"class":88,"line":527},[86,605,606],{},"\u003C\u002Ful>\n",[14,608,609],{},"Module-level caching of the tree matters at scale: without it, every one of 1,500 pages re-queried and re-sorted the collection, which added 9 seconds to the build.",[32,611,613],{"id":612},"eleventy-a-computed-collection-and-a-nunjucks-macro","Eleventy: A Computed Collection and a Nunjucks Macro",[14,615,616,617,620],{},"Eleventy offers two routes. The quick route builds the tree from ",[44,618,619],{},"collections.all"," in a layout, but that makes every page depend on every page's data, which defeats incremental builds. The better route is a custom collection computed once, plus a data file for structure:",[77,622,626],{"className":623,"code":624,"language":625,"meta":82,"style":82},"language-js shiki shiki-themes github-light github-dark","\u002F\u002F eleventy.config.js\neleventyConfig.addCollection('navTree', (api) => {\n  const docs = api.getFilteredByGlob('src\u002Fdocs\u002F**\u002F*.md').filter((p) => !p.data.draft);\n  return sections.map((s) => ({ ...s, children: tree(docs.filter((p) => p.filePathStem.startsWith(`\u002Fdocs\u002F${s.dir}\u002F`))) }));\n});\n","js",[44,627,628,633,658,694,754],{"__ignoreMap":82},[86,629,630],{"class":88,"line":89},[86,631,632],{"class":92},"\u002F\u002F eleventy.config.js\n",[86,634,635,638,641,643,646,648,651,653,655],{"class":88,"line":96},[86,636,637],{"class":99},"eleventyConfig.",[86,639,640],{"class":329},"addCollection",[86,642,398],{"class":99},[86,644,645],{"class":110},"'navTree'",[86,647,404],{"class":99},[86,649,650],{"class":407},"api",[86,652,411],{"class":99},[86,654,414],{"class":282},[86,656,657],{"class":99}," {\n",[86,659,660,662,664,666,669,672,674,677,679,681,683,685,687,689,691],{"class":88,"line":127},[86,661,383],{"class":282},[86,663,386],{"class":178},[86,665,389],{"class":282},[86,667,668],{"class":99}," api.",[86,670,671],{"class":329},"getFilteredByGlob",[86,673,398],{"class":99},[86,675,676],{"class":110},"'src\u002Fdocs\u002F**\u002F*.md'",[86,678,51],{"class":99},[86,680,478],{"class":329},[86,682,438],{"class":99},[86,684,14],{"class":407},[86,686,411],{"class":99},[86,688,414],{"class":282},[86,690,417],{"class":282},[86,692,693],{"class":99},"p.data.draft);\n",[86,695,696,698,700,702,704,706,708,710,713,716,719,721,723,725,727,729,731,733,736,738,740,743,745,747,749,751],{"class":88,"line":150},[86,697,521],{"class":282},[86,699,432],{"class":99},[86,701,435],{"class":329},[86,703,438],{"class":99},[86,705,441],{"class":407},[86,707,411],{"class":99},[86,709,414],{"class":282},[86,711,712],{"class":99}," ({ ",[86,714,715],{"class":282},"...",[86,717,718],{"class":99},"s, children: ",[86,720,472],{"class":329},[86,722,475],{"class":99},[86,724,478],{"class":329},[86,726,438],{"class":99},[86,728,14],{"class":407},[86,730,411],{"class":99},[86,732,414],{"class":282},[86,734,735],{"class":99}," p.filePathStem.",[86,737,492],{"class":329},[86,739,398],{"class":99},[86,741,742],{"class":110},"`\u002Fdocs\u002F${",[86,744,441],{"class":99},[86,746,30],{"class":110},[86,748,104],{"class":99},[86,750,506],{"class":110},[86,752,753],{"class":99},"))) }));\n",[86,755,756],{"class":88,"line":184},[86,757,758],{"class":99},"});\n",[77,760,764],{"className":761,"code":762,"language":763,"meta":82,"style":82},"language-njk shiki shiki-themes github-light github-dark","{% macro navTree(nodes, current) %}\n\u003Cul>{% for n in nodes %}\n  {% if n.children and n.children.length %}\n  \u003Cli>\u003Cdetails {% if not n.collapsed or current.startsWith(n.url) %}open{% endif %}>\n    \u003Csummary>{{ n.label }}\u003C\u002Fsummary>{{ navTree(n.children, current) }}\u003C\u002Fdetails>\u003C\u002Fli>\n  {% else %}\n  \u003Cli>\u003Ca href=\"{{ n.url }}\" {% if n.url == current %}aria-current=\"page\"{% endif %}>{{ n.label }}\u003C\u002Fa>\u003C\u002Fli>\n  {% endif %}\n{% endfor %}\u003C\u002Ful>\n{% endmacro %}\n","njk",[44,765,766,771,776,781,786,791,796,801,806,811],{"__ignoreMap":82},[86,767,768],{"class":88,"line":89},[86,769,770],{},"{% macro navTree(nodes, current) %}\n",[86,772,773],{"class":88,"line":96},[86,774,775],{},"\u003Cul>{% for n in nodes %}\n",[86,777,778],{"class":88,"line":127},[86,779,780],{},"  {% if n.children and n.children.length %}\n",[86,782,783],{"class":88,"line":150},[86,784,785],{},"  \u003Cli>\u003Cdetails {% if not n.collapsed or current.startsWith(n.url) %}open{% endif %}>\n",[86,787,788],{"class":88,"line":184},[86,789,790],{},"    \u003Csummary>{{ n.label }}\u003C\u002Fsummary>{{ navTree(n.children, current) }}\u003C\u002Fdetails>\u003C\u002Fli>\n",[86,792,793],{"class":88,"line":344},[86,794,795],{},"  {% else %}\n",[86,797,798],{"class":88,"line":362},[86,799,800],{},"  \u003Cli>\u003Ca href=\"{{ n.url }}\" {% if n.url == current %}aria-current=\"page\"{% endif %}>{{ n.label }}\u003C\u002Fa>\u003C\u002Fli>\n",[86,802,803],{"class":88,"line":380},[86,804,805],{},"  {% endif %}\n",[86,807,808],{"class":88,"line":423},[86,809,810],{},"{% endfor %}\u003C\u002Ful>\n",[86,812,813],{"class":88,"line":451},[86,814,815],{},"{% endmacro %}\n",[817,818,819,966],"figure",{},[820,821,828,829,828,832,828,836,828,843,828,952],"svg",{"viewBox":822,"role":823,"ariaLabelledBy":824,"xmlns":827},"0 0 760 280","img",[825,826],"snav-tree-title","snav-tree-desc","http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg","\n  ",[57,830,831],{"id":825},"How the sidebar tree is assembled",[833,834,835],"desc",{"id":826},"Three inputs feed a tree builder that runs once per build: sections.yml defines top-level sections and order, folder paths define nesting, and each page's front matter supplies label and order. The resulting tree is rendered on every page with the current page marked and only its section expanded.",[837,838],"rect",{"x":839,"y":839,"width":840,"height":841,"fill":842},"0","760","280","#ffffff",[844,845,847,848,847,856,847,866,847,872,847,875,847,879,847,882,847,886,847,895,847,901,847,907,847,916,847,921,847,925,847,929,847,948,828],"g",{"style":846},"font-family:system-ui, sans-serif;font-size:12px","\n    ",[849,850,855],"text",{"x":851,"y":852,"fill":853,"style":854},"380","28","#1f2937","font-size:16px;font-weight:700;text-anchor:middle","Build the tree once, render it 1,500 times",[837,857],{"x":858,"y":859,"width":860,"height":861,"rx":862,"fill":863,"stroke":864,"style":865},"30","56","190","46","8","#f8fafc","#d9e2ef","stroke-width:1.5px",[849,867,871],{"x":868,"y":869,"fill":853,"style":870},"125","84","text-anchor:middle","sections.yml — top level",[837,873],{"x":858,"y":874,"width":860,"height":861,"rx":862,"fill":863,"stroke":864,"style":865},"116",[849,876,878],{"x":868,"y":877,"fill":853,"style":870},"144","folders — nesting",[837,880],{"x":858,"y":881,"width":860,"height":861,"rx":862,"fill":863,"stroke":864,"style":865},"176",[849,883,885],{"x":868,"y":884,"fill":853,"style":870},"204","front matter — label, order",[837,887],{"x":888,"y":889,"width":890,"height":891,"rx":892,"fill":893,"opacity":894,"stroke":893,"style":865},"290","110","170","60","10","#6a4c93","0.14",[849,896,900],{"x":897,"y":898,"fill":853,"style":899},"375","136","font-weight:700;text-anchor:middle","tree builder",[849,902,906],{"x":897,"y":903,"fill":904,"style":905},"154","#556071","font-size:11px;text-anchor:middle","once per build, cached",[837,908],{"x":909,"y":910,"width":911,"height":912,"rx":892,"fill":913,"opacity":914,"stroke":915,"style":865},"530","100","200","80","#8ac926","0.16","#5a8a16",[849,917,920],{"x":918,"y":919,"fill":853,"style":899},"630","126","rendered per page",[849,922,924],{"x":918,"y":923,"fill":904,"style":905},"146","aria-current on active link",[849,926,928],{"x":918,"y":927,"fill":904,"style":905},"164","only its section open",[844,930,933,934,933,939,933,942,933,945,847],{"stroke":904,"fill":931,"style":932},"none","stroke-width:2px","\n      ",[935,936],"path",{"d":937,"style":938},"M222 79 L286 124","marker-end:url(#snav-arrow)",[935,940],{"d":941,"style":938},"M222 139 L286 139",[935,943],{"d":944,"style":938},"M222 199 L286 156",[935,946],{"d":947,"style":938},"M462 140 L526 140",[849,949,951],{"x":851,"y":950,"fill":904,"style":905},"252","Caching the tree saved 9 s in Astro; building it from a dedicated collection kept Eleventy incremental",[953,954,847,955,828],"defs",{},[956,957,933,963,847],"marker",{"id":958,"viewBox":959,"refX":862,"refY":960,"markerWidth":961,"markerHeight":961,"orient":962},"snav-arrow","0 0 10 10","5","7","auto-start-reverse",[935,964],{"d":965,"fill":904},"M0 0 L10 5 L0 10 z",[967,968,969],"figcaption",{},"The same three inputs and one cached tree work in both generators; only the syntax differs.",[32,971,973],{"id":972},"page-weight-render-less-of-the-tree","Page Weight: Render Less of the Tree",[14,975,976],{},"A full sidebar for 1,500 pages is a lot of HTML on every page. Measured on the docs site:",[978,979,980,999],"table",{},[981,982,983],"thead",{},[984,985,986,990,993,996],"tr",{},[987,988,989],"th",{},"Sidebar strategy",[987,991,992],{},"Sidebar HTML per page (raw)",[987,994,995],{},"Transfer (brotli)",[987,997,998],{},"Total HTML per page",[1000,1001,1002,1017,1032,1046],"tbody",{},[984,1003,1004,1008,1011,1014],{},[1005,1006,1007],"td",{},"Full tree, all sections expanded",[1005,1009,1010],{},"184 KB",[1005,1012,1013],{},"17 KB",[1005,1015,1016],{},"212 KB",[984,1018,1019,1026,1028,1030],{},[1005,1020,1021,1022,1025],{},"Full tree in ",[44,1023,1024],{},"\u003Cdetails>",", current section open",[1005,1027,1010],{},[1005,1029,1013],{},[1005,1031,1016],{},[984,1033,1034,1037,1040,1043],{},[1005,1035,1036],{},"Current section full, others as top-level links only",[1005,1038,1039],{},"22 KB",[1005,1041,1042],{},"3.1 KB",[1005,1044,1045],{},"50 KB",[984,1047,1048,1051,1054,1056],{},[1005,1049,1050],{},"Current section full, others loaded on expand",[1005,1052,1053],{},"22 KB + 4 KB on demand",[1005,1055,1042],{},[1005,1057,1045],{},[14,1059,1060,1061,1063],{},"Collapsing with ",[44,1062,1024],{}," improves readability but not weight — closed sections are still in the HTML. Rendering only the current section's tree, with other sections as single links to their index pages, cut HTML per page by 76% and raised Lighthouse's DOM-size score from \"avoid an excessive DOM size\" (3,900 elements) to passing (900). For readers who want the full tree, a site map page or a section index serves it.",[817,1065,1066,1136],{},[820,1067,828,1072,828,1075,828,1078,828,1081],{"viewBox":1068,"role":823,"ariaLabelledBy":1069,"xmlns":827},"0 0 760 270",[1070,1071],"snav-weight-title","snav-weight-desc",[57,1073,1074],{"id":1070},"HTML per page by sidebar strategy",[833,1076,1077],{"id":1071},"Bars of total uncompressed HTML per page. Full tree expanded: 212 kilobytes. Full tree with details elements: 212 kilobytes. Current section only: 50 kilobytes. DOM element count falls from 3,900 to 900.",[837,1079],{"x":839,"y":839,"width":840,"height":1080,"fill":842},"270",[844,1082,847,1083,847,1086,847,1090,847,1095,847,1104,847,1109,847,1112,847,1117,847,1120,847,1123,847,1127,847,1132,828],{"style":846},[849,1084,1085],{"x":851,"y":852,"fill":853,"style":854},"Uncompressed HTML per page, 1,500-page docs site",[88,1087],{"x1":1088,"y1":861,"x2":1088,"y2":1089,"stroke":864,"style":865},"250","206",[849,1091,1094],{"x":1092,"y":1093,"fill":853},"40","76","full tree, expanded",[837,1096],{"x":1088,"y":891,"width":1097,"height":1098,"rx":1099,"fill":1100,"opacity":1101,"stroke":1102,"style":1103},"424","24","4","#ff595e","0.25","#d83b41","stroke-width:1px",[849,1105,1016],{"x":1106,"y":1107,"fill":853,"style":1108},"682","77","font-weight:700",[849,1110,1111],{"x":1092,"y":919,"fill":853},"full tree, \u003Cdetails>",[837,1113],{"x":1088,"y":889,"width":1097,"height":1098,"rx":1099,"fill":1114,"opacity":1115,"stroke":1116,"style":1103},"#ffca3a","0.35","#a97b00",[849,1118,1016],{"x":1106,"y":1119,"fill":853,"style":1108},"127",[849,1121,1122],{"x":1092,"y":881,"fill":853},"current section only",[837,1124],{"x":1088,"y":1125,"width":910,"height":1098,"rx":1099,"fill":913,"opacity":1126,"stroke":915,"style":1103},"160","0.4",[849,1128,1045],{"x":1129,"y":1130,"fill":1131,"style":1108},"358","177","#3f6410",[849,1133,1135],{"x":851,"y":1134,"fill":904,"style":905},"236","DOM elements: 3,900 → 900 · Lighthouse DOM-size audit: fail → pass",[967,1137,1138],{},"Collapsing hides the tree from the eye, not from the parser; only not rendering it reduces weight.",[32,1140,1142],{"id":1141},"keeping-incremental-builds-incremental","Keeping Incremental Builds Incremental",[14,1144,1145],{},"In Eleventy, the sidebar decides whether incremental builds work. When the navigation tree is derived from every page's title, editing any title — or just saving a page, since Eleventy cannot know which fields changed — marks every page that renders the sidebar as dirty. On this site that turned a 2-second incremental rebuild into a 31-second full one.",[14,1147,1148,1149,1152,1153,1155,1156,30],{},"The fix is to separate structure from content. Generate ",[44,1150,1151],{},"nav.json"," from front matter in a small pre-build script that only rewrites the file when the tree actually changes (compare a hash), and render the sidebar from that data file. Editing a page's body no longer touches ",[44,1154,1151],{},", so only that page rebuilds; renaming or reordering a page does, correctly, rebuild everything. With this change, 92% of edits over a month rebuilt incrementally in under 3 seconds. Astro rebuilds every page regardless, so the same separation does not speed it up, but caching the tree still saves the per-page cost described above. The Eleventy side is covered further in ",[18,1157,1159],{"href":1158},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs\u002Fenabling-incremental-builds-in-eleventy\u002F","Enabling Incremental Builds in Eleventy",[817,1161,1162,1220],{},[820,1163,828,1168,828,1171,828,1174,828,1176],{"viewBox":1164,"role":823,"ariaLabelledBy":1165,"xmlns":827},"0 0 760 250",[1166,1167],"snav-inc-title","snav-inc-desc",[57,1169,1170],{"id":1166},"Eleventy rebuild scope before and after separating navigation data",[833,1172,1173],{"id":1167},"Before, every edit to any page rebuilt all 1,500 pages because the sidebar depended on every title, taking about 31 seconds. After moving the tree to a hashed nav.json, body edits rebuild one page in under 3 seconds, which was 92 percent of edits in a month; only the 8 percent of edits that changed titles or order rebuilt everything.",[837,1175],{"x":839,"y":839,"width":840,"height":1088,"fill":842},[844,1177,847,1178,847,1181,847,1184,847,1189,847,1194,847,1197,847,1200,847,1205,847,1209,847,1216,828],{"style":846},[849,1179,1180],{"x":851,"y":852,"fill":853,"style":854},"Share of edits by rebuild size, one month",[849,1182,1183],{"x":858,"y":869,"fill":853,"style":1108},"Tree from all titles",[837,1185],{"x":911,"y":1186,"width":1187,"height":1188,"fill":1100,"opacity":1101,"stroke":1102,"style":1103},"64","520","34",[849,1190,1193],{"x":1191,"y":1192,"fill":853,"style":870},"460","86","100% of edits → full rebuild (~31 s)",[849,1195,1196],{"x":858,"y":927,"fill":853,"style":1108},"Hashed nav.json",[837,1198],{"x":911,"y":877,"width":1199,"height":1188,"fill":913,"opacity":1115,"stroke":915,"style":1103},"478",[849,1201,1204],{"x":1202,"y":1203,"fill":853,"style":870},"439","166","92% → one page (\u003C 3 s)",[837,1206],{"x":1207,"y":877,"width":1208,"height":1188,"fill":1100,"opacity":1101,"stroke":1102,"style":1103},"678","42",[849,1210,1215],{"x":1211,"y":1212,"fill":1213,"style":1214},"699","198","#b32b30","font-size:11px;font-weight:700;text-anchor:middle","8% full",[849,1217,1219],{"x":851,"y":1218,"fill":904,"style":905},"232","Title and order changes still rebuild every page, which is correct: every sidebar changed",[967,1221,1222],{},"Separating structure from content makes the rebuild scope match what actually changed.",[14,1224,1225,1226,1229],{},"The pre-build script runs in about 400 ms on 1,500 pages because it only reads front matter, not page bodies, using ",[44,1227,1228],{},"gray-matter"," on each file. Keep its output sorted and stable, or unrelated key-order changes will change the hash and trigger full rebuilds for no reason.",[32,1231,1233],{"id":1232},"accessibility","Accessibility",[14,1235,1236,1237,1240,1241,1244,1245,1247,1248,1251,1252,1254],{},"A sidebar is a navigation landmark, and a few details make it usable with assistive technology: wrap it in ",[44,1238,1239],{},"\u003Cnav aria-label=\"Documentation\">","; mark the current page with ",[44,1242,1243],{},"aria-current=\"page\""," rather than only a colour; use ",[44,1246,1024],{},"\u002F",[44,1249,1250],{},"\u003Csummary>"," so sections expand with the keyboard and announce their state without JavaScript; and keep link text meaningful out of context — ",[44,1253,61],{}," exists so labels can be short without becoming ambiguous. On mobile, move the sidebar behind a disclosure button at the top of the page rather than an off-canvas drawer that traps focus.",[32,1256,1258],{"id":1257},"pitfalls-rollback","Pitfalls & Rollback",[37,1260,1261,1268,1274,1283,1292,1301,1307],{},[40,1262,1263,1267],{},[1264,1265,1266],"strong",{},"Rebuilding the tree per page."," Cache it once per build; it saved 9 seconds on 1,500 pages.",[40,1269,1270,1273],{},[1264,1271,1272],{},"Full trees on every page."," HTML weight and DOM size grow with the site. Render the current section.",[40,1275,1276,1282],{},[1264,1277,1278,1279,1281],{},"Sidebar from ",[44,1280,619],{}," in Eleventy."," It makes every page depend on every other; use a structure-only data file.",[40,1284,1285,1288,1289,1291],{},[1264,1286,1287],{},"Colour-only active state."," Use ",[44,1290,1243],{}," so screen readers announce it.",[40,1293,1294,1297,1298,1300],{},[1264,1295,1296],{},"Unstable ordering."," Pages without an ",[44,1299,65],{}," value sorted by filesystem order produce different sidebars on different machines. Always fall back to a deterministic sort such as title.",[40,1302,1303,1306],{},[1264,1304,1305],{},"Draft pages in navigation."," Filter drafts in the tree builder, not in the template, so no page links to something that was not built.",[40,1308,1309,1312],{},[1264,1310,1311],{},"Rollback:"," the sidebar is one component and one helper in each generator; reverting restores the previous navigation without touching content.",[32,1314,1316],{"id":1315},"conclusion","Conclusion",[14,1318,1319],{},"A good docs sidebar is built once per build from three inputs — a section list, the folder structure and front matter — and rendered on each page with only the current section expanded and the active page marked. On a 1,500-page site that cut HTML per page by three quarters, passed Lighthouse's DOM-size audit, and, in Eleventy, kept 92% of edits on the fast incremental path by separating navigation structure from page content.",[32,1321,1323],{"id":1322},"faq","FAQ",[1325,1326,1328],"h3",{"id":1327},"should-a-docs-sidebar-be-generated-from-files-or-written-by-hand","Should a docs sidebar be generated from files or written by hand?",[14,1330,1331],{},"Generate the structure from files and front matter so new pages appear automatically, and keep ordering and section labels in front matter or a small config file. Fully hand-written sidebars drift from the content; fully automatic ones produce awkward alphabetical orders.",[1325,1333,1335],{"id":1334},"how-big-can-a-sidebar-get-before-it-hurts-performance","How big can a sidebar get before it hurts performance?",[14,1337,1338],{},"When every page renders the full sidebar, HTML size grows with the number of pages. A 1,500-page docs site with a full nested sidebar added about 180 KB of uncompressed HTML to every page. Render only the current section expanded and collapse the rest, or load deep levels on demand.",[1325,1340,1342],{"id":1341},"why-does-editing-one-page-rebuild-the-whole-eleventy-site","Why does editing one page rebuild the whole Eleventy site?",[14,1344,1345],{},"If the sidebar is built from a collection that includes page titles, every page depends on every other page's title, so Eleventy's incremental mode must rebuild everything. Building navigation from a data file that changes only when structure changes avoids that.",[1325,1347,1349],{"id":1348},"does-the-sidebar-need-javascript","Does the sidebar need JavaScript?",[14,1351,1352],{},"No. Collapsible sections work with details and summary elements, and the active page can be marked at build time. JavaScript is only useful for remembering which sections a reader opened, and that can be a small progressive enhancement.",[32,1354,1356],{"id":1355},"related","Related",[37,1358,1359,1368,1375,1382,1389],{},[40,1360,1361,1364,1365,1367],{},[1264,1362,1363],{},"Parent:"," ",[18,1366,29],{"href":28}," — the wider comparison.",[40,1369,1370,1374],{},[18,1371,1373],{"href":1372},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites\u002Fastro-vs-eleventy-build-times-at-10000-pages\u002F","Astro vs Eleventy Build Times at 10,000 Pages"," — where the incremental caveat was measured.",[40,1376,1377,1381],{},[18,1378,1380],{"href":1379},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites\u002Fcontent-collections-vs-eleventy-data-cascade\u002F","Content Collections vs Eleventy Data Cascade"," — the data layers the sidebar reads.",[40,1383,1384,1388],{},[18,1385,1387],{"href":1386},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fcustomizing-starlight-without-forking-the-theme\u002F","Customizing Starlight Without Forking the Theme"," — when a framework's sidebar is enough.",[40,1390,1391,1395],{},[18,1392,1394],{"href":1393},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Flargest-contentful-paint-optimization-for-static-sites\u002Ffixing-lcp-on-text-heavy-documentation-pages\u002F","Fixing LCP on Text-Heavy Documentation Pages"," — HTML weight and first paint.",[1397,1398,1399],"style",{},"html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .s9eBZ, html code.shiki .s9eBZ{--shiki-default:#22863A;--shiki-dark:#85E89D}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}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);}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .s4XuR, html code.shiki .s4XuR{--shiki-default:#E36209;--shiki-dark:#FFAB70}html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}",{"title":82,"searchDepth":96,"depth":96,"links":1401},[1402,1403,1404,1405,1406,1407,1408,1409,1410,1411,1417],{"id":34,"depth":96,"text":35},{"id":71,"depth":96,"text":72},{"id":261,"depth":96,"text":262},{"id":612,"depth":96,"text":613},{"id":972,"depth":96,"text":973},{"id":1141,"depth":96,"text":1142},{"id":1232,"depth":96,"text":1233},{"id":1257,"depth":96,"text":1258},{"id":1315,"depth":96,"text":1316},{"id":1322,"depth":96,"text":1323,"children":1412},[1413,1414,1415,1416],{"id":1327,"depth":127,"text":1328},{"id":1334,"depth":127,"text":1335},{"id":1341,"depth":127,"text":1342},{"id":1348,"depth":127,"text":1349},{"id":1355,"depth":96,"text":1356},[1419,1421,1424,1425],{"name":1420,"item":1247},"Home",{"name":1422,"item":1423},"Choosing the Right Static Site Generator for Production","\u002Fchoosing-the-right-static-site-generator-for-production\u002F",{"name":29,"item":28},{"name":5,"item":1426},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites\u002Fsidebar-navigation-in-astro-and-eleventy\u002F","2026-09-18","Build a docs sidebar from content in Astro and Eleventy: ordering, nesting, active state, collapsed sections, page weight, and keeping incremental builds fast.","md",[1431,1432,1433,1434],{"q":1328,"a":1331},{"q":1335,"a":1338},{"q":1342,"a":1345},{"q":1349,"a":1352},{},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites\u002Fsidebar-navigation-in-astro-and-eleventy",{"title":5,"description":1428},"choosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites\u002Fsidebar-navigation-in-astro-and-eleventy\u002Findex","article","45WM2lnMPyxnR4u_qG8nQFij5SCiwz-hVU1eEQ3mQj4",[1442,1444,1447,1450,1452,1455,1456,1458,1461,1463,1466,1469,1472,1475,1478,1481,1484,1487,1490,1493,1495,1498,1501,1504,1507,1510,1513,1516,1519,1522,1525,1528,1531,1534,1537,1540,1543,1546,1549,1552,1555,1558,1561,1564,1567,1570,1573,1576,1579,1582,1585,1588,1591,1594,1597,1600,1603,1606,1609,1612,1615,1618,1621,1624,1627,1630,1633,1636,1639,1642,1645,1648,1651,1654,1657,1660,1663,1666,1669,1672,1675,1678,1681,1684,1687,1690,1693,1696,1699,1701,1704,1707,1710,1713,1716,1719,1722,1725,1728,1731,1734,1737,1740,1743,1746,1749,1752,1755,1758,1761,1764,1767,1770,1773,1776,1779,1782,1785,1788,1791,1794,1797,1800,1803,1806,1809,1812,1815,1818,1821,1824,1827,1830,1832,1835,1838,1841,1844,1847,1850,1853,1856,1859,1862,1865,1868,1871,1874,1877,1880,1883,1886,1889,1892,1895,1898,1901,1904,1907,1910,1913,1916,1919,1922,1925,1928,1931,1934,1937,1940,1943,1946,1949,1952,1955,1958,1961,1964,1967,1970,1973,1976,1979],{"path":1443,"title":1373},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites\u002Fastro-vs-eleventy-build-times-at-10000-pages",{"path":1445,"title":1446},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites\u002Fchoosing-between-astro-and-eleventy-for-large-docs","Astro vs Eleventy for Large Docs (1000+ Pages)",{"path":1448,"title":1449},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites\u002Fcontent-collections-vs-eleventy-data-cascade","Content Collections vs the Eleventy Data Cascade",{"path":1451,"title":29},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites",{"path":1453,"title":1454},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites\u002Fshortcodes-vs-components-for-docs-authors","Shortcodes vs Components for Docs Authors",{"path":1436,"title":5},{"path":1457,"title":1387},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fcustomizing-starlight-without-forking-the-theme",{"path":1459,"title":1460},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fdocusaurus-vs-starlight-for-product-documentation","Docusaurus vs Starlight for Product Documentation",{"path":1462,"title":21},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress",{"path":1464,"title":1465},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fmdx-vs-markdoc-for-docs-content","MDX vs Markdoc for Docs Content",{"path":1467,"title":1468},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fmigrating-from-mkdocs-to-starlight","Migrating from MkDocs to Starlight",{"path":1470,"title":1471},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fversioned-documentation-with-docusaurus","Versioned Documentation with Docusaurus",{"path":1473,"title":1474},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fvitepress-for-library-documentation","VitePress for Library Documentation",{"path":1476,"title":1477},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fhugo-build-times-for-large-repositories\u002Fhow-to-benchmark-hugo-vs-astro-build-speeds","How to Benchmark Hugo vs Astro Build Speeds",{"path":1479,"title":1480},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fhugo-build-times-for-large-repositories\u002Fhugo-partialcached-for-faster-builds","Hugo partialCached for Faster Builds",{"path":1482,"title":1483},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fhugo-build-times-for-large-repositories","Hugo Build Times for Large Repositories",{"path":1485,"title":1486},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fhugo-build-times-for-large-repositories\u002Fprofiling-hugo-templates-with-template-metrics","Profiling Hugo Templates With Template Metrics",{"path":1488,"title":1489},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fhugo-build-times-for-large-repositories\u002Freducing-hugo-memory-usage-on-ci-runners","Reducing Hugo Memory Usage on CI Runners",{"path":1491,"title":1492},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fhugo-build-times-for-large-repositories\u002Fspeeding-up-hugo-builds-with-render-hooks-and-caching","Speeding Up Hugo Builds with Render Hooks & Caching",{"path":1494,"title":1422},"\u002Fchoosing-the-right-static-site-generator-for-production",{"path":1496,"title":1497},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem\u002Feleventy-vs-jekyll-for-markdown-heavy-blogs","Eleventy vs Jekyll for Markdown-Heavy Blogs",{"path":1499,"title":1500},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem","Jekyll Plugin Ecosystem",{"path":1502,"title":1503},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem\u002Freplacing-jekyll-plugins-when-migrating-to-eleventy","Replacing Jekyll Plugins When Migrating to Eleventy",{"path":1505,"title":1506},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem\u002Frunning-jekyll-on-github-pages-without-plugins","Running Jekyll on GitHub Pages Without Plugins",{"path":1508,"title":1509},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem\u002Fspeeding-up-slow-jekyll-builds","Speeding Up Slow Jekyll Builds",{"path":1511,"title":1512},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem\u002Fupgrading-jekyll-and-ruby-versions-safely","Upgrading Jekyll and Ruby Versions Safely",{"path":1514,"title":1515},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators\u002Fconverting-front-matter-at-scale-during-migration","Converting Front Matter at Scale During Migration",{"path":1517,"title":1518},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators","Migrating Between Static Site Generators",{"path":1520,"title":1521},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators\u002Fkeeping-redirects-working-after-an-ssg-migration","Keeping Redirects Working After an SSG Migration",{"path":1523,"title":1524},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators\u002Fmigrating-a-docs-site-from-jekyll-to-hugo","Migrating a Docs Site From Jekyll to Hugo",{"path":1526,"title":1527},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators\u002Fmigrating-from-gatsby-to-astro","Migrating from Gatsby to Astro",{"path":1529,"title":1530},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators\u002Fmigrating-from-hugo-to-astro-without-breaking-urls","Migrating From Hugo to Astro Without Breaking URLs",{"path":1532,"title":1533},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators\u002Fmigrating-wordpress-to-a-static-site-generator","Migrating WordPress to a Static Site Generator",{"path":1535,"title":1536},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators\u002Fporting-shortcodes-and-includes-between-generators","Porting Shortcodes and Includes Between Generators",{"path":1538,"title":1539},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fnextjs-static-export-for-content-sites\u002Fhandling-dynamic-routes-in-nextjs-static-export","Handling Dynamic Routes in Next.js Static Export",{"path":1541,"title":1542},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fnextjs-static-export-for-content-sites","Next.js Static Export for Content Sites",{"path":1544,"title":1545},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fnextjs-static-export-for-content-sites\u002Fmigrating-from-gatsby-to-nextjs-static-export","Migrating from Gatsby to Next.js Static Export",{"path":1547,"title":1548},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fnextjs-static-export-for-content-sites\u002Fnextjs-app-router-static-export-limitations","Next.js App Router Static Export Limitations",{"path":1550,"title":1551},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fnextjs-static-export-for-content-sites\u002Fnextjs-static-export-vs-astro-for-marketing-sites","Next.js Static Export vs Astro for Marketing",{"path":1553,"title":1554},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fnextjs-static-export-for-content-sites\u002Foptimizing-images-in-nextjs-static-export","Optimizing Images in Next.js Static Export",{"path":1556,"title":1557},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fadding-pagefind-to-an-astro-site","Adding Pagefind to an Astro Site",{"path":1559,"title":1560},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fbuilding-a-lunr-index-at-build-time-in-eleventy","Building a Lunr Index at Build Time in Eleventy",{"path":1562,"title":1563},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites","Search for Static Sites",{"path":1565,"title":1566},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Findexing-hugo-sites-with-pagefind","Indexing Hugo Sites with Pagefind",{"path":1568,"title":1569},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fmultilingual-search-on-static-sites","Multilingual Search on Static Sites",{"path":1571,"title":1572},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fpagefind-vs-algolia-docsearch","Pagefind vs Algolia DocSearch",{"path":1574,"title":1575},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fsearch-index-size-budgets-for-large-docs","Search Index Size Budgets for Large Docs",{"path":1577,"title":1578},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fssg-framework-selection-matrix\u002Fbest-ssg-for-technical-writers-without-coding-experience","Best SSG for Non-Developer Technical Writers",{"path":1580,"title":1581},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fssg-framework-selection-matrix\u002Fchoosing-an-ssg-for-api-reference-documentation","Choosing an SSG for API Reference Documentation",{"path":1583,"title":1584},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fssg-framework-selection-matrix\u002Fevaluating-ssg-accessibility-defaults","Evaluating SSG Accessibility Defaults",{"path":1586,"title":1587},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fssg-framework-selection-matrix","SSG Framework Selection Matrix",{"path":1589,"title":1590},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fssg-framework-selection-matrix\u002Fpicking-an-ssg-for-a-multi-language-documentation-site","Picking an SSG for a Multi-Language Docs Site",{"path":1592,"title":1593},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fssg-framework-selection-matrix\u002Fssg-selection-checklist-for-engineering-teams","SSG Selection Checklist for Engineering Teams",{"path":1595,"title":1596},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fssg-framework-selection-matrix\u002Ftotal-cost-of-ownership-for-static-site-generators","Total Cost of Ownership for Static Site Generators",{"path":1598,"title":1599},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcdn-caching-rules-for-ssgs\u002Fcache-busting-with-content-hashed-filenames","Cache Busting with Content-Hashed Filenames",{"path":1601,"title":1602},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcdn-caching-rules-for-ssgs","CDN Caching Rules for SSGs",{"path":1604,"title":1605},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcdn-caching-rules-for-ssgs\u002Fpurging-the-cdn-cache-after-a-static-deploy","Purging the CDN Cache After a Static Deploy",{"path":1607,"title":1608},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcdn-caching-rules-for-ssgs\u002Fsetting-cache-control-headers-on-cloudflare-pages","Cache-Control Headers on Cloudflare Pages",{"path":1610,"title":1611},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcdn-caching-rules-for-ssgs\u002Fsetting-up-proper-cache-headers-on-netlify","Proper Cache Headers on Netlify for SSGs",{"path":1613,"title":1614},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcdn-caching-rules-for-ssgs\u002Fstale-while-revalidate-for-static-html","Stale-While-Revalidate for Static HTML",{"path":1616,"title":1617},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites\u002Feliminating-layout-shift-from-web-fonts","Eliminating Layout Shift From Web Fonts",{"path":1619,"title":1620},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites\u002Ffixing-cls-from-cookie-banners","Fixing CLS from Cookie Banners",{"path":1622,"title":1623},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites\u002Ffixing-cls-from-late-loading-embeds","Fixing CLS From Late-Loading Embeds",{"path":1625,"title":1626},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites\u002Ffixing-cls-from-sticky-headers-and-anchor-links","Fixing CLS from Sticky Headers and Anchor Links",{"path":1628,"title":1629},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites","Cumulative Layout Shift Fixes for Static Sites",{"path":1631,"title":1632},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites\u002Fmeasuring-cls-in-the-field-with-web-vitals-js","Measuring CLS in the Field With web-vitals.js",{"path":1634,"title":1635},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites\u002Freserving-space-for-images-and-embeds-to-stop-layout-shift","Reserving Space for Images and Embeds",{"path":1637,"title":1638},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Ffont-display-optional-vs-swap","font-display: optional vs swap",{"path":1640,"title":1641},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites","Font Loading Strategies for Static Sites",{"path":1643,"title":1644},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Fmetric-matched-fallback-fonts-with-size-adjust","Metric-Matched Fallback Fonts with size-adjust",{"path":1646,"title":1647},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Fpreloading-fonts-without-double-downloads","Preloading Fonts Without Double Downloads",{"path":1649,"title":1650},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Fself-hosting-google-fonts-to-eliminate-layout-shift","Self-Host Google Fonts to Eliminate Layout Shift",{"path":1652,"title":1653},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Fsubsetting-variable-fonts-for-faster-first-render","Subsetting Variable Fonts for Faster First Render",{"path":1655,"title":1656},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fimage-optimization-pipelines-in-astro\u002Fbuilding-an-image-cdn-pipeline-for-static-sites","Building an Image CDN Pipeline for Static Sites",{"path":1658,"title":1659},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fimage-optimization-pipelines-in-astro\u002Fgenerating-open-graph-images-at-build-time","Generating Open Graph Images at Build Time",{"path":1661,"title":1662},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fimage-optimization-pipelines-in-astro","Image Optimization Pipelines in Astro",{"path":1664,"title":1665},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fimage-optimization-pipelines-in-astro\u002Flazy-loading-images-without-hurting-lcp","Lazy-Loading Images Without Hurting LCP",{"path":1667,"title":1668},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fimage-optimization-pipelines-in-astro\u002Foptimizing-webp-images-in-hugo-without-plugins","Optimizing WebP Images in Hugo Without Plugins",{"path":1670,"title":1671},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fimage-optimization-pipelines-in-astro\u002Fresponsive-images-with-srcset-in-eleventy","Responsive Images with srcset in Eleventy",{"path":1673,"title":1674},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fimage-optimization-pipelines-in-astro\u002Fserving-avif-with-fallbacks-on-static-sites","Serving AVIF With Fallbacks on Static Sites",{"path":1676,"title":1677},"\u002Fperformance-optimization-core-web-vitals-for-ssgs","Core Web Vitals Optimization for SSGs",{"path":1679,"title":1680},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Fastro-islands-vs-full-hydration-performance","Astro Islands vs Full Hydration Performance",{"path":1682,"title":1683},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Fdeferring-hydration-with-client-visible-in-astro","Deferring Hydration with client:visible in Astro",{"path":1685,"title":1686},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Fhow-to-reduce-bundle-size-in-eleventy-builds","How to Reduce Bundle Size in Eleventy Builds",{"path":1688,"title":1689},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering","JavaScript Hydration & Partial Rendering",{"path":1691,"title":1692},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Fmeasuring-inp-on-static-sites-with-real-user-monitoring","Measuring INP on Static Sites with RUM",{"path":1694,"title":1695},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Freplacing-react-islands-with-web-components","Replacing React Islands with Web Components",{"path":1697,"title":1698},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Flargest-contentful-paint-optimization-for-static-sites\u002Feliminating-render-blocking-css-on-static-sites","Eliminating Render-Blocking CSS on Static Sites",{"path":1700,"title":1394},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Flargest-contentful-paint-optimization-for-static-sites\u002Ffixing-lcp-on-text-heavy-documentation-pages",{"path":1702,"title":1703},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Flargest-contentful-paint-optimization-for-static-sites","Largest Contentful Paint Optimization for Static Sites",{"path":1705,"title":1706},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Flargest-contentful-paint-optimization-for-static-sites\u002Fmeasuring-lcp-subparts-with-devtools","Measuring LCP Subparts with DevTools",{"path":1708,"title":1709},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Flargest-contentful-paint-optimization-for-static-sites\u002Foptimizing-lcp-on-astro-with-priority-hints","Optimizing LCP on Astro with Priority Hints",{"path":1711,"title":1712},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Flargest-contentful-paint-optimization-for-static-sites\u002Freducing-lcp-from-hero-images-on-static-sites","Reducing LCP from Hero Images on Static Sites",{"path":1714,"title":1715},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci\u002Fcomparing-lab-and-field-data-with-crux","Comparing Lab and Field Data with CrUX",{"path":1717,"title":1718},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci","Performance Budgets and Lighthouse CI",{"path":1720,"title":1721},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci\u002Freducing-lighthouse-score-variance-in-ci","Reducing Lighthouse Score Variance in CI",{"path":1723,"title":1724},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci\u002Frunning-webpagetest-scripts-against-preview-deploys","Running WebPageTest Scripts Against Preview Deploys",{"path":1726,"title":1727},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci\u002Fsetting-up-lighthouse-ci-for-a-static-site","Setting Up Lighthouse CI for a Static Site",{"path":1729,"title":1730},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci\u002Ftracking-bundle-size-per-pull-request","Tracking Bundle Size per Pull Request",{"path":1732,"title":1733},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci\u002Fwriting-a-performance-budget-that-fails-builds","Writing a Performance Budget That Fails Builds",{"path":1735,"title":1736},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Fauditing-unused-preloads","Auditing Unused Preloads",{"path":1738,"title":1739},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed","Resource Hints and Navigation Speed",{"path":1741,"title":1742},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Finstant-navigation-with-speculation-rules","Instant Navigation with Speculation Rules",{"path":1744,"title":1745},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Fpreconnect-vs-dns-prefetch-on-static-sites","Preconnect vs DNS-Prefetch on Static Sites",{"path":1747,"title":1748},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Fprefetching-links-in-astro","Prefetching Links in Astro",{"path":1750,"title":1751},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Fview-transitions-on-multi-page-static-sites","View Transitions on Multi-Page Static Sites",{"path":1753,"title":1754},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites\u002Fauditing-third-party-scripts-with-lighthouse","Auditing Third-Party Scripts With Lighthouse",{"path":1756,"title":1757},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites","Third-Party Script Performance on Static Sites",{"path":1759,"title":1760},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites\u002Flazy-loading-youtube-embeds-on-static-sites","Lazy-Loading YouTube Embeds on Static Sites",{"path":1762,"title":1763},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites\u002Floading-google-tag-manager-without-hurting-inp","Loading Google Tag Manager Without Hurting INP",{"path":1765,"title":1766},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites\u002Frunning-third-party-scripts-in-a-web-worker-with-partytown","Running Third-Party Scripts in a Web Worker with Partytown",{"path":1768,"title":1769},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites\u002Fself-hosting-analytics-to-cut-third-party-requests","Self-Hosting Analytics to Cut Third-Party Requests",{"path":1771,"title":1772},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup\u002Fautomating-eleventy-deployments-with-cloudflare-pages","Automating Eleventy Deployments on Cloudflare Pages",{"path":1774,"title":1775},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup\u002Fconfiguring-redirects-on-cloudflare-pages","Configuring Redirects on Cloudflare Pages",{"path":1777,"title":1778},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup\u002Fcustom-domains-and-tls-on-cloudflare-pages","Custom Domains and TLS on Cloudflare Pages",{"path":1780,"title":1781},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup\u002Fdeploying-hugo-to-cloudflare-pages-and-workers","Deploying Hugo to Cloudflare Pages and Workers",{"path":1783,"title":1784},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup","Cloudflare Pages Edge Caching Setup",{"path":1786,"title":1787},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup\u002Fmigrating-from-cloudflare-pages-to-workers-static-assets","Migrating from Cloudflare Pages to Workers Static Assets",{"path":1789,"title":1790},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams\u002Fchecking-links-in-pull-requests","Checking Links in Pull Requests",{"path":1792,"title":1793},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams\u002Fdocs-as-code-review-workflow-for-writers","Docs-as-Code Review Workflow for Writers",{"path":1795,"title":1796},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams\u002Feditorial-checks-with-vale-in-ci","Editorial Checks with Vale in CI",{"path":1798,"title":1799},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams","Content Workflows for Documentation Teams",{"path":1801,"title":1802},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams\u002Fscheduling-content-publication-with-cron-triggered-builds","Scheduling Content Publication With Cron-Triggered Builds",{"path":1804,"title":1805},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams\u002Fwiring-a-headless-cms-to-a-static-build","Wiring a Headless CMS to a Static Build",{"path":1807,"title":1808},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fbuilding-astro-sites-with-github-actions","Building Astro Sites with GitHub Actions",{"path":1810,"title":1811},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fcaching-node-modules-in-github-actions-for-faster-ssg-builds","Caching node_modules in GitHub Actions",{"path":1813,"title":1814},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fdeploying-to-github-pages-with-actions","Deploying to GitHub Pages with Actions",{"path":1816,"title":1817},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fdeploying-to-multiple-environments-from-one-workflow","Deploying to Multiple Environments From One Workflow",{"path":1819,"title":1820},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fhow-to-set-up-github-actions-for-hugo-deployments","GitHub Actions for Hugo Deployments",{"path":1822,"title":1823},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds","GitHub Actions for Automated SSG Builds",{"path":1825,"title":1826},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fmatrix-builds-for-multi-site-monorepos","Matrix Builds for Multi-Site Monorepos",{"path":1828,"title":1829},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs\u002Fcaching-hugo-builds-in-github-actions","Caching Hugo Builds in GitHub Actions",{"path":1831,"title":1159},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs\u002Fenabling-incremental-builds-in-eleventy",{"path":1833,"title":1834},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs\u002Fincremental-builds-in-astro-with-the-content-layer","Incremental Builds in Astro with the Content Layer",{"path":1836,"title":1837},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs","Incremental Builds and Build Caching for SSGs",{"path":1839,"title":1840},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs\u002Fmeasuring-build-time-regressions-in-ci","Measuring Build-Time Regressions in CI",{"path":1842,"title":1843},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs\u002Fremote-caching-with-turborepo-for-ssg-monorepos","Remote Caching with Turborepo for SSG Monorepos",{"path":1845,"title":1846},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs\u002Fsharing-build-cache-across-ci-runners","Sharing Build Cache Across CI Runners",{"path":1848,"title":1849},"\u002Fproduction-ready-deployment-cicd-workflows","Production-Ready Deployment & CI\u002FCD for SSGs",{"path":1851,"title":1852},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production\u002Falerting-on-cache-hit-ratio-drops","Alerting on Cache Hit Ratio Drops",{"path":1854,"title":1855},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production\u002Fbuilding-a-core-web-vitals-dashboard-from-rum-data","Building a Core Web Vitals Dashboard from RUM Data",{"path":1857,"title":1858},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production\u002Fcrawling-for-broken-links-on-a-schedule","Crawling for Broken Links on a Schedule",{"path":1860,"title":1861},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production","Monitoring Static Sites in Production",{"path":1863,"title":1864},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production\u002Flogging-404s-at-the-edge","Logging 404s at the Edge",{"path":1866,"title":1867},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production\u002Fuptime-and-synthetic-checks-for-static-sites","Uptime and Synthetic Checks for Static Sites",{"path":1869,"title":1870},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies\u002Fconfiguring-vercel-for-hugo-and-eleventy","Configuring Vercel for Hugo and Eleventy",{"path":1872,"title":1873},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies","Netlify vs Vercel Deployment Strategies",{"path":1875,"title":1876},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies\u002Fnetlify-build-hooks-for-content-updates","Netlify Build Hooks for Content Updates",{"path":1878,"title":1879},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies\u002Fnetlify-redirects-and-rewrites-for-static-sites","Netlify Redirects and Rewrites for Static Sites",{"path":1881,"title":1882},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies\u002Fsetting-up-deploy-previews-on-netlify-for-every-pull-request","Netlify Deploy Previews for Every Pull Request",{"path":1884,"title":1885},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies\u002Fvercel-isr-vs-static-generation-for-ssgs","Vercel ISR vs Static Generation for SSGs",{"path":1887,"title":1888},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fautomating-preview-deploy-pipelines-with-github-actions","Automating Preview Deploy Pipelines with GitHub Actions",{"path":1890,"title":1891},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fcleaning-up-stale-preview-deployments","Cleaning Up Stale Preview Deployments",{"path":1893,"title":1894},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests","Preview Environments for Pull Requests",{"path":1896,"title":1897},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fpassword-protecting-preview-deployments","Password-Protecting Preview Deployments",{"path":1899,"title":1900},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fpreviewing-headless-cms-drafts","Previewing Headless CMS Drafts",{"path":1902,"title":1903},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fvisual-regression-testing-on-preview-deploys","Visual Regression Testing on Preview Deploys",{"path":1905,"title":1906},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Fatomic-deploys-vs-incremental-uploads","Atomic Deploys vs Incremental Uploads",{"path":1908,"title":1909},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Fcanary-releases-for-static-sites","Canary Releases for Static Sites",{"path":1911,"title":1912},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Ffeature-flags-on-static-sites","Feature Flags on Static Sites",{"path":1914,"title":1915},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites","Rollbacks and Deploy Safety for Static Sites",{"path":1917,"title":1918},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Frolling-back-a-bad-static-deploy-in-under-a-minute","Rolling Back a Bad Static Deploy in Under a Minute",{"path":1920,"title":1921},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Frunning-smoke-tests-against-a-preview-url","Running Smoke Tests Against a Preview URL",{"path":1923,"title":1924},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fauditing-npm-dependencies-in-ssg-pipelines","Auditing npm Dependencies in SSG Pipelines",{"path":1926,"title":1927},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fenabling-hsts-and-preload-safely","Enabling HSTS and Preload Safely",{"path":1929,"title":1930},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fhash-based-csp-for-inline-scripts-in-astro","Hash-Based CSP for Inline Scripts in Astro",{"path":1932,"title":1933},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites","Security Headers and Hardening for Static Sites",{"path":1935,"title":1936},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fsecuring-deploy-credentials-with-github-oidc","Securing Deploy Credentials with GitHub OIDC",{"path":1938,"title":1939},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fsubresource-integrity-for-third-party-assets","Subresource Integrity for Third-Party Assets",{"path":1941,"title":1942},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fwriting-a-content-security-policy-for-a-static-site","Writing a Content Security Policy for a Static Site",{"path":1944,"title":1945},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fclean-urls-and-trailing-slashes-on-s3","Clean URLs and Trailing Slashes on S3",{"path":1947,"title":1948},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fcloudfront-functions-for-redirects","CloudFront Functions for Redirects",{"path":1950,"title":1951},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fdeploying-a-static-site-to-s3-and-cloudfront","Deploying a Static Site to S3 and CloudFront",{"path":1953,"title":1954},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites","Self-Hosting Static Sites on S3, Nginx and Caddy",{"path":1956,"title":1957},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fserving-a-static-site-with-caddy","Serving a Static Site with Caddy",{"path":1959,"title":1960},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fserving-a-static-site-with-nginx","Serving a Static Site with Nginx",{"path":1962,"title":1963},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fzero-downtime-deploys-with-symlink-swaps","Zero-Downtime Deploys with Symlink Swaps",{"path":1965,"title":1966},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites\u002Fadding-a-contact-form-with-cloudflare-workers","Adding a Contact Form with Cloudflare Workers",{"path":1968,"title":1969},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites\u002Fhandling-form-submissions-on-a-static-site","Handling Form Submissions on a Static Site",{"path":1971,"title":1972},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites","Serverless Functions for Static Sites",{"path":1974,"title":1975},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites\u002Fnetlify-functions-vs-cloudflare-workers","Netlify Functions vs Cloudflare Workers",{"path":1977,"title":1978},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites\u002Fprotecting-a-static-site-behind-authentication","Protecting a Static Site Behind Authentication",{"path":1980,"title":1981},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites\u002Fproxying-third-party-apis-from-an-edge-function","Proxying Third-Party APIs from an Edge Function",1789722847081]