[{"data":1,"prerenderedAt":2669},["ShallowReactive",2],{"page:\u002Fchoosing-the-right-static-site-generator-for-production\u002Faccessibility-for-static-sites\u002Faccessible-dark-mode-toggles-for-static-sites":3,"all-docs-nav":1521,"filed:\u002Fchoosing-the-right-static-site-generator-for-production\u002Faccessibility-for-static-sites\u002Faccessible-dark-mode-toggles-for-static-sites":2663},{"id":4,"title":5,"body":6,"breadcrumb":1496,"dateModified":1506,"datePublished":1506,"description":1507,"extension":1508,"faq":1509,"meta":1514,"navigation":1515,"path":1516,"seo":1517,"slug":12,"stem":1518,"type":1519,"__hash__":1520},"content\u002Fchoosing-the-right-static-site-generator-for-production\u002Faccessibility-for-static-sites\u002Faccessible-dark-mode-toggles-for-static-sites\u002Findex.md","Accessible Dark Mode Toggles for Static Sites",{"type":7,"value":8,"toc":1476},"minimark",[9,13,17,31,36,62,66,149,152,280,284,290,493,512,519,570,574,585,705,881,887,1003,1007,1021,1025,1035,1039,1046,1095,1098,1213,1217,1220,1250,1257,1261,1346,1350,1395,1399,1402,1406,1411,1414,1418,1421,1425,1428,1432,1435,1439,1472],[10,11,5],"h1",{"id":12},"accessible-dark-mode-toggles-for-static-sites",[14,15,16],"p",{},"A dark theme is now expected on documentation sites, and it is a genuine accessibility feature: some readers with photophobia, migraine or certain visual impairments find dark backgrounds far easier to read. It also doubles the surface on which accessibility can break. The toggle itself is a widget with keyboard and screen reader requirements; the theme it switches to has its own contrast to meet; and the switch has to happen before the first paint, or readers who chose dark get a white flash on every page load — which for a photosensitive reader is the exact thing they were trying to avoid.",[14,18,19,20,25,26,30],{},"This guide builds a toggle for the marketing section of the reference site from ",[21,22,24],"a",{"href":23},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Faccessibility-for-static-sites\u002F","Accessibility for Static Sites",", whose original toggle was an unlabelled ",[27,28,29],"code",{},"\u003Cdiv>"," with a moon icon. The finished version is under 1 KB, works in Astro, Eleventy, Hugo and Jekyll layouts, and keeps every colour token at AA contrast in both themes.",[32,33,35],"h2",{"id":34},"prerequisites","Prerequisites",[37,38,39,47,54],"ul",{},[40,41,42,43,46],"li",{},"Colours defined as CSS custom properties, so a single attribute on ",[27,44,45],{},"\u003Chtml>"," can switch them.",[40,48,49,50,53],{},"The ability to add an inline script to the ",[27,51,52],{},"\u003Chead>"," of the base layout.",[40,55,56,57,61],{},"A contrast check for both themes, as in ",[21,58,60],{"href":59},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Faccessibility-for-static-sites\u002Ffixing-low-color-contrast-flagged-by-lighthouse\u002F","Fixing Low Color Contrast Flagged by Lighthouse",".",[32,63,65],{"id":64},"what-was-wrong-with-the-old-toggle","What Was Wrong With the Old Toggle",[67,68,69,85],"table",{},[70,71,72],"thead",{},[73,74,75,79,82],"tr",{},[76,77,78],"th",{},"Problem",[76,80,81],{},"Effect",[76,83,84],{},"Found by",[86,87,88,103,114,128,139],"tbody",{},[73,89,90,97,100],{},[91,92,93,96],"td",{},[27,94,95],{},"\u003Cdiv onclick>"," with a moon SVG",[91,98,99],{},"Not focusable, no name, no role",[91,101,102],{},"axe, keyboard",[73,104,105,108,111],{},[91,106,107],{},"Theme applied by a deferred module",[91,109,110],{},"120–180 ms white flash on dark",[91,112,113],{},"Performance panel, frame capture",[73,115,116,122,125],{},[91,117,118,119],{},"Ignored ",[27,120,121],{},"prefers-color-scheme",[91,123,124],{},"Dark-mode OS users saw light first",[91,126,127],{},"Manual",[73,129,130,133,136],{},[91,131,132],{},"Dark link colour at 3.6:1",[91,134,135],{},"39 contrast failures per sample",[91,137,138],{},"axe in dark mode",[73,140,141,144,147],{},[91,142,143],{},"Icon did not change with state",[91,145,146],{},"No visual state for anyone",[91,148,127],{},[14,150,151],{},"The white flash was measured with Chrome's performance panel and screenshots: with the OS in dark mode and dark stored as the choice, the first frame painted at 140 ms was light, and the dark theme arrived at 290 ms on a mid-range Android phone profile.",[153,154,155,276],"figure",{},[156,157,164,165,164,169,164,173,164,180,164,261],"svg",{"viewBox":158,"role":159,"ariaLabelledBy":160,"xmlns":163},"0 0 760 265","img",[161,162],"theme-flash-title","theme-flash-desc","http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg","\n  ",[166,167,168],"title",{"id":161},"Sequence of events on page load with a deferred theme script",[170,171,172],"desc",{"id":162},"Three actors, the browser, the stylesheet and the theme script. The browser parses the head and loads the stylesheet with light colours as the default. The browser paints the first frame in light colours at 140 milliseconds. The deferred theme script runs, reads the stored choice and sets data-theme dark. The browser repaints in dark colours at 290 milliseconds.",[174,175],"rect",{"x":176,"y":176,"width":177,"height":178,"fill":179},"0","760","265","#ffffff",[181,182,184,185,184,195,184,198,184,201,184,208,184,211,184,215,184,218,184,221,184,229,184,235,184,238,184,242,184,248,184,253,184,257,164],"g",{"style":183},"font-family:system-ui, sans-serif;font-size:12px","\n    ",[174,186],{"x":187,"y":188,"width":189,"height":190,"rx":191,"fill":192,"stroke":193,"style":194},"55.0","56.0","170.0","42.9","8","#f8fafc","#d9e2ef","stroke-width:1.5px",[174,196],{"x":197,"y":188,"width":189,"height":190,"rx":191,"fill":192,"stroke":193,"style":194},"295.0",[174,199],{"x":200,"y":188,"width":189,"height":190,"rx":191,"fill":192,"stroke":193,"style":194},"535.0",[202,203],"path",{"d":204,"fill":205,"stroke":206,"style":207},"M144.0 133.9 L374.0 133.9","none","#556071","stroke-width:1.8px;marker-end:url(#theme-flash-arrow)",[202,209],{"d":210,"fill":205,"stroke":206,"style":207},"M616.0 199.8 L146.0 199.8",[202,212],{"d":213,"fill":205,"stroke":193,"style":214},"M140.0 100.9 L140.0 248.7","stroke-width:1.5px;stroke-dasharray:4 4",[202,216],{"d":217,"fill":205,"stroke":193,"style":214},"M380.0 100.9 L380.0 248.7",[202,219],{"d":220,"fill":205,"stroke":193,"style":214},"M620.0 100.9 L620.0 248.7",[222,223,228],"text",{"x":224,"y":225,"fill":226,"style":227},"380.0","30.0","#1f2937","font-size:16px;text-anchor:middle;font-weight:700","Why the old toggle flashed white",[222,230,234],{"x":231,"y":232,"fill":226,"style":233},"140.0","82.7","font-size:13px;text-anchor:middle;font-weight:700","Browser",[222,236,237],{"x":224,"y":232,"fill":226,"style":233},"Stylesheet",[222,239,241],{"x":240,"y":232,"fill":226,"style":233},"620.0","Theme script",[222,243,247],{"x":244,"y":245,"fill":226,"style":246},"260.0","125.8","font-size:11.5px;text-anchor:middle","load CSS, light by default",[222,249,252],{"x":250,"y":251,"fill":226,"style":246},"180.0","158.8","first paint: light, 140 ms",[222,254,256],{"x":224,"y":255,"fill":226,"style":246},"191.7","deferred: set data-theme=dark",[222,258,260],{"x":250,"y":259,"fill":226,"style":246},"224.7","repaint: dark, 290 ms",[262,263,184,264,164],"defs",{},[265,266,272,273,184],"marker",{"id":267,"viewBox":268,"refX":191,"refY":269,"markerWidth":270,"markerHeight":270,"orient":271},"theme-flash-arrow","0 0 10 10","5","7","auto-start-reverse","\n      ",[202,274],{"d":275,"fill":206},"M0 0 L10 5 L0 10 z",[277,278,279],"figcaption",{},"Moving the script inline into the head, before the stylesheet, makes the first frame use the right theme.",[32,281,283],{"id":282},"step-1-set-the-theme-before-the-first-paint","Step 1: Set the Theme Before the First Paint",[14,285,286,287,289],{},"An inline script in ",[27,288,52],{},", before the stylesheet link, runs before anything is painted. It reads the stored choice, falls back to the OS preference, and sets an attribute:",[291,292,297],"pre",{"className":293,"code":294,"language":295,"meta":296,"style":296},"language-html shiki shiki-themes github-light github-dark","\u003Cscript>\n  (function () {\n    var t = null;\n    try { t = localStorage.getItem('theme'); } catch (e) {}\n    if (t !== 'light' && t !== 'dark')\n      t = matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';\n    document.documentElement.dataset.theme = t;\n  })();\n\u003C\u002Fscript>\n\u003Clink rel=\"stylesheet\" href=\"\u002Fstyles.css\">\n","html","",[27,298,299,315,328,347,381,409,440,451,457,467],{"__ignoreMap":296},[300,301,304,308,312],"span",{"class":302,"line":303},"line",1,[300,305,307],{"class":306},"sVt8B","\u003C",[300,309,311],{"class":310},"s9eBZ","script",[300,313,314],{"class":306},">\n",[300,316,318,321,325],{"class":302,"line":317},2,[300,319,320],{"class":306},"  (",[300,322,324],{"class":323},"szBVR","function",[300,326,327],{"class":306}," () {\n",[300,329,331,334,337,340,344],{"class":302,"line":330},3,[300,332,333],{"class":323},"    var",[300,335,336],{"class":306}," t ",[300,338,339],{"class":323},"=",[300,341,343],{"class":342},"sj4cs"," null",[300,345,346],{"class":306},";\n",[300,348,350,353,356,358,361,365,368,372,375,378],{"class":302,"line":349},4,[300,351,352],{"class":323},"    try",[300,354,355],{"class":306}," { t ",[300,357,339],{"class":323},[300,359,360],{"class":306}," localStorage.",[300,362,364],{"class":363},"sScJk","getItem",[300,366,367],{"class":306},"(",[300,369,371],{"class":370},"sZZnC","'theme'",[300,373,374],{"class":306},"); } ",[300,376,377],{"class":323},"catch",[300,379,380],{"class":306}," (e) {}\n",[300,382,384,387,390,393,396,399,401,403,406],{"class":302,"line":383},5,[300,385,386],{"class":323},"    if",[300,388,389],{"class":306}," (t ",[300,391,392],{"class":323},"!==",[300,394,395],{"class":370}," 'light'",[300,397,398],{"class":323}," &&",[300,400,336],{"class":306},[300,402,392],{"class":323},[300,404,405],{"class":370}," 'dark'",[300,407,408],{"class":306},")\n",[300,410,412,415,417,420,422,425,428,431,433,436,438],{"class":302,"line":411},6,[300,413,414],{"class":306},"      t ",[300,416,339],{"class":323},[300,418,419],{"class":363}," matchMedia",[300,421,367],{"class":306},[300,423,424],{"class":370},"'(prefers-color-scheme: dark)'",[300,426,427],{"class":306},").matches ",[300,429,430],{"class":323},"?",[300,432,405],{"class":370},[300,434,435],{"class":323}," :",[300,437,395],{"class":370},[300,439,346],{"class":306},[300,441,443,446,448],{"class":302,"line":442},7,[300,444,445],{"class":306},"    document.documentElement.dataset.theme ",[300,447,339],{"class":323},[300,449,450],{"class":306}," t;\n",[300,452,454],{"class":302,"line":453},8,[300,455,456],{"class":306},"  })();\n",[300,458,460,463,465],{"class":302,"line":459},9,[300,461,462],{"class":306},"\u003C\u002F",[300,464,311],{"class":310},[300,466,314],{"class":306},[300,468,470,472,475,478,480,483,486,488,491],{"class":302,"line":469},10,[300,471,307],{"class":306},[300,473,474],{"class":310},"link",[300,476,477],{"class":363}," rel",[300,479,339],{"class":306},[300,481,482],{"class":370},"\"stylesheet\"",[300,484,485],{"class":363}," href",[300,487,339],{"class":306},[300,489,490],{"class":370},"\"\u002Fstyles.css\"",[300,492,314],{"class":306},[14,494,495,496,499,500,503,504,507,508,61],{},"The ",[27,497,498],{},"try"," matters: ",[27,501,502],{},"localStorage"," throws in some privacy modes, and an exception here would leave the page with no theme at all. The script is 290 bytes and blocks parsing for well under a millisecond. If the site has a Content Security Policy, add the script's SHA-256 hash to ",[27,505,506],{},"script-src",", as in ",[21,509,511],{"href":510},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Ffixing-content-security-policy-violations-from-inline-scripts\u002F","Fixing Content Security Policy Violations From Inline Scripts",[14,513,514,515,518],{},"Set ",[27,516,517],{},"color-scheme"," in CSS as well, so native controls, scrollbars and the default canvas follow the theme:",[291,520,524],{"className":521,"code":522,"language":523,"meta":296,"style":296},"language-css shiki shiki-themes github-light github-dark",":root { color-scheme: light; }\n[data-theme='dark'] { color-scheme: dark; }\n","css",[27,525,526,545],{"__ignoreMap":296},[300,527,528,531,534,536,539,542],{"class":302,"line":303},[300,529,530],{"class":363},":root",[300,532,533],{"class":306}," { ",[300,535,517],{"class":342},[300,537,538],{"class":306},": ",[300,540,541],{"class":342},"light",[300,543,544],{"class":306},"; }\n",[300,546,547,550,553,555,558,561,563,565,568],{"class":302,"line":317},[300,548,549],{"class":306},"[",[300,551,552],{"class":363},"data-theme",[300,554,339],{"class":323},[300,556,557],{"class":370},"'dark'",[300,559,560],{"class":306},"] { ",[300,562,517],{"class":342},[300,564,538],{"class":306},[300,566,567],{"class":342},"dark",[300,569,544],{"class":306},[32,571,573],{"id":572},"step-2-a-real-button-with-state","Step 2: A Real Button With State",[14,575,576,577,580,581,584],{},"The toggle is a ",[27,578,579],{},"\u003Cbutton>"," with a visible or visually hidden label and ",[27,582,583],{},"aria-pressed",":",[291,586,588],{"className":293,"code":587,"language":295,"meta":296,"style":296},"\u003Cbutton type=\"button\" class=\"theme-toggle\" aria-pressed=\"false\">\n  \u003Cspan class=\"icon icon-moon\" aria-hidden=\"true\">\u003C\u002Fspan>\n  \u003Cspan class=\"icon icon-sun\" aria-hidden=\"true\">\u003C\u002Fspan>\n  \u003Cspan class=\"sr-only\">Dark theme\u003C\u002Fspan>\n\u003C\u002Fbutton>\n",[27,589,590,623,652,677,697],{"__ignoreMap":296},[300,591,592,594,597,600,602,605,608,610,613,616,618,621],{"class":302,"line":303},[300,593,307],{"class":306},[300,595,596],{"class":310},"button",[300,598,599],{"class":363}," type",[300,601,339],{"class":306},[300,603,604],{"class":370},"\"button\"",[300,606,607],{"class":363}," class",[300,609,339],{"class":306},[300,611,612],{"class":370},"\"theme-toggle\"",[300,614,615],{"class":363}," aria-pressed",[300,617,339],{"class":306},[300,619,620],{"class":370},"\"false\"",[300,622,314],{"class":306},[300,624,625,628,630,632,634,637,640,642,645,648,650],{"class":302,"line":317},[300,626,627],{"class":306},"  \u003C",[300,629,300],{"class":310},[300,631,607],{"class":363},[300,633,339],{"class":306},[300,635,636],{"class":370},"\"icon icon-moon\"",[300,638,639],{"class":363}," aria-hidden",[300,641,339],{"class":306},[300,643,644],{"class":370},"\"true\"",[300,646,647],{"class":306},">\u003C\u002F",[300,649,300],{"class":310},[300,651,314],{"class":306},[300,653,654,656,658,660,662,665,667,669,671,673,675],{"class":302,"line":330},[300,655,627],{"class":306},[300,657,300],{"class":310},[300,659,607],{"class":363},[300,661,339],{"class":306},[300,663,664],{"class":370},"\"icon icon-sun\"",[300,666,639],{"class":363},[300,668,339],{"class":306},[300,670,644],{"class":370},[300,672,647],{"class":306},[300,674,300],{"class":310},[300,676,314],{"class":306},[300,678,679,681,683,685,687,690,693,695],{"class":302,"line":349},[300,680,627],{"class":306},[300,682,300],{"class":310},[300,684,607],{"class":363},[300,686,339],{"class":306},[300,688,689],{"class":370},"\"sr-only\"",[300,691,692],{"class":306},">Dark theme\u003C\u002F",[300,694,300],{"class":310},[300,696,314],{"class":306},[300,698,699,701,703],{"class":302,"line":383},[300,700,462],{"class":306},[300,702,596],{"class":310},[300,704,314],{"class":306},[291,706,710],{"className":707,"code":708,"language":709,"meta":296,"style":296},"language-js shiki shiki-themes github-light github-dark","const btn = document.querySelector('.theme-toggle');\nconst sync = () => btn.setAttribute('aria-pressed', String(document.documentElement.dataset.theme === 'dark'));\nbtn.addEventListener('click', () => {\n  const next = document.documentElement.dataset.theme === 'dark' ? 'light' : 'dark';\n  document.documentElement.dataset.theme = next;\n  try { localStorage.setItem('theme', next); } catch (e) {}\n  sync();\n});\nsync();\n","js",[27,711,712,737,780,801,829,839,861,869,874],{"__ignoreMap":296},[300,713,714,717,720,723,726,729,731,734],{"class":302,"line":303},[300,715,716],{"class":323},"const",[300,718,719],{"class":342}," btn",[300,721,722],{"class":323}," =",[300,724,725],{"class":306}," document.",[300,727,728],{"class":363},"querySelector",[300,730,367],{"class":306},[300,732,733],{"class":370},"'.theme-toggle'",[300,735,736],{"class":306},");\n",[300,738,739,741,744,746,749,752,755,758,760,763,766,769,772,775,777],{"class":302,"line":317},[300,740,716],{"class":323},[300,742,743],{"class":363}," sync",[300,745,722],{"class":323},[300,747,748],{"class":306}," () ",[300,750,751],{"class":323},"=>",[300,753,754],{"class":306}," btn.",[300,756,757],{"class":363},"setAttribute",[300,759,367],{"class":306},[300,761,762],{"class":370},"'aria-pressed'",[300,764,765],{"class":306},", ",[300,767,768],{"class":363},"String",[300,770,771],{"class":306},"(document.documentElement.dataset.theme ",[300,773,774],{"class":323},"===",[300,776,405],{"class":370},[300,778,779],{"class":306},"));\n",[300,781,782,785,788,790,793,796,798],{"class":302,"line":330},[300,783,784],{"class":306},"btn.",[300,786,787],{"class":363},"addEventListener",[300,789,367],{"class":306},[300,791,792],{"class":370},"'click'",[300,794,795],{"class":306},", () ",[300,797,751],{"class":323},[300,799,800],{"class":306}," {\n",[300,802,803,806,809,811,814,816,818,821,823,825,827],{"class":302,"line":349},[300,804,805],{"class":323},"  const",[300,807,808],{"class":342}," next",[300,810,722],{"class":323},[300,812,813],{"class":306}," document.documentElement.dataset.theme ",[300,815,774],{"class":323},[300,817,405],{"class":370},[300,819,820],{"class":323}," ?",[300,822,395],{"class":370},[300,824,435],{"class":323},[300,826,405],{"class":370},[300,828,346],{"class":306},[300,830,831,834,836],{"class":302,"line":383},[300,832,833],{"class":306},"  document.documentElement.dataset.theme ",[300,835,339],{"class":323},[300,837,838],{"class":306}," next;\n",[300,840,841,844,847,850,852,854,857,859],{"class":302,"line":411},[300,842,843],{"class":323},"  try",[300,845,846],{"class":306}," { localStorage.",[300,848,849],{"class":363},"setItem",[300,851,367],{"class":306},[300,853,371],{"class":370},[300,855,856],{"class":306},", next); } ",[300,858,377],{"class":323},[300,860,380],{"class":306},[300,862,863,866],{"class":302,"line":442},[300,864,865],{"class":363},"  sync",[300,867,868],{"class":306},"();\n",[300,870,871],{"class":302,"line":453},[300,872,873],{"class":306},"});\n",[300,875,876,879],{"class":302,"line":459},[300,877,878],{"class":363},"sync",[300,880,868],{"class":306},[14,882,883,884,886],{},"The accessible name stays constant (\"Dark theme\") and the state changes, so NVDA announces \"Dark theme, toggle button, pressed\" or \"not pressed\". Changing the label instead — \"Switch to light mode\" — is a common alternative, but combining a changing label with ",[27,885,583],{}," produces contradictory announcements. Pick one; the constant name with state is the clearer of the two.",[153,888,889,1000],{},[156,890,164,895,164,898,164,901,164,904],{"viewBox":891,"role":159,"ariaLabelledBy":892,"xmlns":163},"0 0 760 245",[893,894],"theme-announce-title","theme-announce-desc",[166,896,897],{"id":893},"Screen reader announcements for the old and new theme toggles",[170,899,900],{"id":894},"Two panels. The old div toggle was skipped by Tab, and when reached with the virtual cursor it announced clickable, with no name and no state. The new button announces Dark theme, toggle button, not pressed, and after activation Dark theme, toggle button, pressed.",[174,902],{"x":176,"y":176,"width":177,"height":903,"fill":179},"245",[181,905,184,906,184,916,184,922,184,925,184,928,184,931,184,937,184,940,184,942,184,944,184,946,184,949,184,956,184,962,184,966,184,970,184,974,184,979,184,984,184,988,184,991,184,994,184,997,164],{"style":183},[174,907],{"x":908,"y":909,"width":910,"height":911,"rx":912,"fill":913,"opacity":914,"stroke":915,"style":194},"20.0","58.0","350.0","171.0","10","#ff595e","0.12","#d83b41",[917,918],"circle",{"cx":919,"cy":920,"r":921,"fill":913,"stroke":915,"style":194},"40.0","103.0","2.5",[917,923],{"cx":919,"cy":924,"r":921,"fill":913,"stroke":915,"style":194},"125.0",[917,926],{"cx":919,"cy":927,"r":921,"fill":913,"stroke":915,"style":194},"146.9",[917,929],{"cx":919,"cy":930,"r":921,"fill":913,"stroke":915,"style":194},"168.9",[174,932],{"x":933,"y":909,"width":910,"height":911,"rx":912,"fill":934,"opacity":935,"stroke":936,"style":194},"390.0","#8ac926","0.2","#5a8a16",[917,938],{"cx":939,"cy":920,"r":921,"fill":934,"stroke":936,"style":194},"410.0",[917,941],{"cx":939,"cy":924,"r":921,"fill":934,"stroke":936,"style":194},[917,943],{"cx":939,"cy":927,"r":921,"fill":934,"stroke":936,"style":194},[917,945],{"cx":939,"cy":930,"r":921,"fill":934,"stroke":936,"style":194},[222,947,948],{"x":224,"y":225,"fill":226,"style":227},"What screen readers announce",[222,950,955],{"x":951,"y":952,"fill":953,"style":954},"34.0","83.5","#b32b30","font-size:13.5px;text-anchor:start;font-weight:700","Old div toggle",[222,957,961],{"x":958,"y":959,"fill":226,"style":960},"50.0","107.0","font-size:11.5px;text-anchor:start","skipped by Tab",[222,963,965],{"x":958,"y":964,"fill":226,"style":960},"129.0","\"clickable\"",[222,967,969],{"x":958,"y":968,"fill":226,"style":960},"150.9","no name",[222,971,973],{"x":958,"y":972,"fill":226,"style":960},"172.9","no state",[222,975,978],{"x":951,"y":976,"fill":226,"style":977},"215.0","font-size:12px;text-anchor:start;font-weight:700","unusable without a mouse",[222,980,983],{"x":981,"y":952,"fill":982,"style":954},"404.0","#3f6410","New button",[222,985,987],{"x":986,"y":959,"fill":226,"style":960},"420.0","reached by Tab",[222,989,990],{"x":986,"y":964,"fill":226,"style":960},"\"Dark theme, toggle button\"",[222,992,993],{"x":986,"y":968,"fill":226,"style":960},"\"not pressed\" \u002F \"pressed\"",[222,995,996],{"x":986,"y":972,"fill":226,"style":960},"icons hidden from AT",[222,998,999],{"x":981,"y":976,"fill":226,"style":977},"name and state announced",[277,1001,1002],{},"Recorded with NVDA 2025.3 on Firefox and VoiceOver on Safari; both gave equivalent output.",[32,1004,1006],{"id":1005},"step-3-offer-follow-system","Step 3: Offer \"Follow System\"",[14,1008,1009,1010,1013,1014,1016,1017,1020],{},"A two-state toggle loses one thing: once a reader clicks it, the site no longer follows the OS setting, even if the reader later switches their OS to light in the morning and dark at night. The reference site added a third choice in the footer — a small ",[27,1011,1012],{},"\u003Cselect>"," with Light, Dark and System — and kept the header button as the quick toggle. Choosing System removes the stored value, so the inline script falls back to ",[27,1015,121],{}," again. A ",[27,1018,1019],{},"change"," listener on the media query updates the theme live when the OS switches, but only while no explicit choice is stored.",[32,1022,1024],{"id":1023},"step-4-check-both-themes-for-contrast","Step 4: Check Both Themes for Contrast",[14,1026,1027,1028,1030,1031,61],{},"Switching the theme only helps if the dark theme is readable. Every text token was checked in both themes with the token test from the contrast guide, and the axe page scan was run once per theme by setting ",[27,1029,502],{}," in an init script before navigation. The dark theme's link colour failed at 3.6:1 and was raised to 6.2:1; two badge colours and the code comment colour were also adjusted. Inline SVG diagrams need their own dark treatment — the site recolours their backgrounds and neutral labels through CSS attribute selectors on the palette colours, covered in ",[21,1032,1034],{"href":1033},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Faccessibility-for-static-sites\u002Faccessible-svg-diagrams-on-static-sites\u002F","Accessible SVG Diagrams on Static Sites",[32,1036,1038],{"id":1037},"step-5-respect-reduced-motion","Step 5: Respect Reduced Motion",[14,1040,1041,1042,1045],{},"The old toggle animated a full-page colour transition over 400 ms. Some readers with vestibular disorders set ",[27,1043,1044],{},"prefers-reduced-motion",", and a page-wide fade can be uncomfortable. The transition now runs only when motion is allowed, and it is limited to background and text colours rather than every property:",[291,1047,1049],{"className":521,"code":1048,"language":523,"meta":296,"style":296},"@media (prefers-reduced-motion: no-preference) {\n  body { transition: background-color 150ms, color 150ms; }\n}\n",[27,1050,1051,1059,1090],{"__ignoreMap":296},[300,1052,1053,1056],{"class":302,"line":303},[300,1054,1055],{"class":323},"@media",[300,1057,1058],{"class":306}," (prefers-reduced-motion: no-preference) {\n",[300,1060,1061,1064,1066,1069,1072,1075,1078,1080,1083,1086,1088],{"class":302,"line":317},[300,1062,1063],{"class":310},"  body",[300,1065,533],{"class":306},[300,1067,1068],{"class":342},"transition",[300,1070,1071],{"class":306},": background-color ",[300,1073,1074],{"class":342},"150",[300,1076,1077],{"class":323},"ms",[300,1079,765],{"class":306},[300,1081,1082],{"class":342},"color",[300,1084,1085],{"class":342}," 150",[300,1087,1077],{"class":323},[300,1089,544],{"class":306},[300,1091,1092],{"class":302,"line":330},[300,1093,1094],{"class":306},"}\n",[14,1096,1097],{},"The 150 ms transition also avoids animating on first load, because the inline script sets the theme before the body exists.",[153,1099,1100,1210],{},[156,1101,164,1106,164,1109,164,1112,164,1115],{"viewBox":1102,"role":159,"ariaLabelledBy":1103,"xmlns":163},"0 0 760 248",[1104,1105],"theme-metrics-title","theme-metrics-desc",[166,1107,1108],{"id":1104},"Theme timing and dark contrast failures before and after",[170,1110,1111],{"id":1105},"Paired bars. Time until the correct theme is shown went from 290 to 140 milliseconds, the same as first paint. The wrong-theme flash went from 150 to 0 milliseconds. Contrast failures in dark mode went from 39 to 0.",[174,1113],{"x":176,"y":176,"width":177,"height":1114,"fill":179},"248",[181,1116,184,1117,184,1125,184,1129,184,1136,184,1140,184,1144,184,1148,184,1152,184,1155,184,1158,184,1161,184,1167,184,1171,184,1175,184,1181,184,1186,184,1190,184,1194,184,1198,184,1202,184,1207,164],{"style":183},[174,1118],{"x":1119,"y":958,"width":1120,"height":1121,"rx":1122,"fill":913,"opacity":1123,"stroke":915,"style":1124},"306.8","14.0","12.0","2","0.3","stroke-width:1px",[174,1126],{"x":1127,"y":958,"width":1120,"height":1121,"rx":1122,"fill":934,"opacity":1128,"stroke":936,"style":1124},"398.4","0.4",[174,1130],{"x":1131,"y":1132,"width":1133,"height":1134,"rx":1135,"fill":913,"opacity":1123,"stroke":915,"style":1124},"230.0","82.0","471.9","16.0","3",[174,1137],{"x":1131,"y":1138,"width":1139,"height":1134,"rx":1135,"fill":934,"opacity":1128,"stroke":936,"style":1124},"102.0","227.8",[174,1141],{"x":1131,"y":1142,"width":1143,"height":1134,"rx":1135,"fill":913,"opacity":1123,"stroke":915,"style":1124},"134.0","244.1",[174,1145],{"x":1131,"y":1146,"width":1147,"height":1134,"rx":1135,"fill":934,"opacity":1128,"stroke":936,"style":1124},"154.0","3.0",[174,1149],{"x":1131,"y":1150,"width":1151,"height":1134,"rx":1135,"fill":913,"opacity":1123,"stroke":915,"style":1124},"186.0","63.5",[174,1153],{"x":1131,"y":1154,"width":1147,"height":1134,"rx":1135,"fill":934,"opacity":1128,"stroke":936,"style":1124},"206.0",[202,1156],{"d":1157,"fill":205,"stroke":206,"style":194},"M230.0 78.0 L230.0 228.0",[222,1159,1160],{"x":224,"y":225,"fill":226,"style":227},"Load behaviour before and after",[222,1162,1166],{"x":1163,"y":1164,"fill":206,"style":1165},"326.8","60.0","font-size:12px;text-anchor:start","Before",[222,1168,1170],{"x":1169,"y":1164,"fill":206,"style":1165},"418.4","After",[222,1172,1174],{"x":908,"y":1173,"fill":226,"style":1165},"105.2","Correct theme shown (ms)",[222,1176,1180],{"x":1177,"y":1178,"fill":953,"style":1179},"708.9","94.5","font-size:11.5px;text-anchor:start;font-weight:700","290",[222,1182,1185],{"x":1183,"y":1184,"fill":982,"style":1179},"464.8","114.5","140",[222,1187,1189],{"x":908,"y":1188,"fill":226,"style":1165},"157.2","Wrong-theme flash (ms)",[222,1191,1074],{"x":1192,"y":1193,"fill":953,"style":1179},"481.1","146.5",[222,1195,176],{"x":1196,"y":1197,"fill":982,"style":1179},"240.0","166.5",[222,1199,1201],{"x":908,"y":1200,"fill":226,"style":1165},"209.2","Dark contrast failures",[222,1203,1206],{"x":1204,"y":1205,"fill":953,"style":1179},"300.5","198.5","39",[222,1208,176],{"x":1196,"y":1209,"fill":982,"style":1179},"218.5",[277,1211,1212],{},"Timings from Chrome's performance panel on a mid-range Android profile with dark mode stored.",[32,1214,1216],{"id":1215},"testing-the-toggle","Testing the Toggle",[14,1218,1219],{},"A short Playwright test covers the behaviour that matters most and is easiest to break:",[1221,1222,1223,1230,1236,1239],"ol",{},[40,1224,1225,1226,1229],{},"With ",[27,1227,1228],{},"colorScheme: 'dark'"," in the browser context and nothing stored, the first screenshot shows the dark theme.",[40,1231,1232,1233,61],{},"Pressing Tab reaches the toggle; pressing Enter switches the theme and sets ",[27,1234,1235],{},"aria-pressed=\"true\"",[40,1237,1238],{},"After reload, the choice persists.",[40,1240,1241,1242,1245,1246,1249],{},"axe reports no ",[27,1243,1244],{},"button-name"," or ",[27,1247,1248],{},"color-contrast"," violations in either theme.",[14,1251,1252,1253,1256],{},"Playwright's ",[27,1254,1255],{},"emulateMedia({ colorScheme })"," makes the first test reliable; it runs in about 6 seconds for both themes.",[32,1258,1260],{"id":1259},"measured-impact","Measured Impact",[67,1262,1263,1277],{},[70,1264,1265],{},[73,1266,1267,1270,1272,1274],{},[76,1268,1269],{},"Measure",[76,1271,1166],{},[76,1273,1170],{},[76,1275,1276],{},"Tool",[86,1278,1279,1292,1306,1321,1332],{},[73,1280,1281,1284,1287,1289],{},[91,1282,1283],{},"Wrong-theme flash on dark",[91,1285,1286],{},"150 ms",[91,1288,176],{},[91,1290,1291],{},"Chrome performance panel",[73,1293,1294,1297,1300,1303],{},[91,1295,1296],{},"Toggle reachable by keyboard",[91,1298,1299],{},"No",[91,1301,1302],{},"Yes",[91,1304,1305],{},"Keyboard",[73,1307,1308,1313,1316,1318],{},[91,1309,1310,1312],{},[27,1311,1244],{}," violations",[91,1314,1315],{},"1 per page",[91,1317,176],{},[91,1319,1320],{},"axe-core 4.10",[73,1322,1323,1326,1328,1330],{},[91,1324,1325],{},"Dark theme contrast failures",[91,1327,1206],{},[91,1329,176],{},[91,1331,1320],{},[73,1333,1334,1337,1340,1343],{},[91,1335,1336],{},"Toggle script size",[91,1338,1339],{},"3.2 KB",[91,1341,1342],{},"0.9 KB incl. inline",[91,1344,1345],{},"Build output",[32,1347,1349],{"id":1348},"pitfalls-rollback","Pitfalls & Rollback",[37,1351,1352,1361,1372,1380,1386],{},[40,1353,1354,1358,1359,61],{},[1355,1356,1357],"strong",{},"Applying the theme in a deferred script."," It must run inline in ",[27,1360,52],{},[40,1362,1363,1371],{},[1355,1364,1365,1366,1368,1369,61],{},"No ",[27,1367,498],{}," around ",[27,1370,502],{}," One exception leaves the page unthemed.",[40,1373,1374,1379],{},[1355,1375,1376,1377,61],{},"Changing both the label and ",[27,1378,583],{}," Use one mechanism for state.",[40,1381,1382,1385],{},[1355,1383,1384],{},"Checking contrast only in light mode."," Run the scan per theme.",[40,1387,1388,1391,1392,1394],{},[1355,1389,1390],{},"Rollback:"," the toggle is one component and one inline script; removing both falls back to the light theme with ",[27,1393,121],{}," honoured by CSS if a media-query fallback is kept in the stylesheet.",[32,1396,1398],{"id":1397},"conclusion","Conclusion",[14,1400,1401],{},"An accessible theme toggle is a small piece of code with several easy mistakes: it must set the theme before the first paint, be a real button with a name and a state, follow the OS until the reader chooses otherwise, and switch to a theme that has itself been checked for contrast. On the reference site, the new toggle removed a 150 ms white flash and 40 axe violations while shrinking the script from 3.2 KB to 0.9 KB.",[32,1403,1405],{"id":1404},"faq","FAQ",[1407,1408,1410],"h3",{"id":1409},"should-a-theme-toggle-be-a-button-or-a-switch","Should a theme toggle be a button or a switch?",[14,1412,1413],{},"A button with aria-pressed works well for a two-state light and dark toggle, and every screen reader announces it as a toggle button with its state. A role switch is also valid but has slightly less consistent support. For three states, light, dark and system, use a group of radio buttons or a select, because a single button cannot express three states clearly.",[1407,1415,1417],{"id":1416},"why-does-my-site-flash-white-before-switching-to-dark","Why does my site flash white before switching to dark?",[14,1419,1420],{},"The theme is applied by a script that runs after the first paint, usually one loaded at the end of the body or as a module. Put a tiny inline script in the head, before the stylesheet, that reads the stored choice or the OS preference and sets the data-theme attribute on the html element before anything renders.",[1407,1422,1424],{"id":1423},"should-the-toggle-respect-prefers-color-scheme","Should the toggle respect prefers-color-scheme?",[14,1426,1427],{},"Yes, on first visit. Readers who set their operating system to dark mode have already expressed a preference, and some of them need it for photosensitivity or migraine. The toggle should override it only when the reader chooses, and offering a way back to following the system is good practice.",[1407,1429,1431],{"id":1430},"does-an-inline-head-script-conflict-with-a-content-security-policy","Does an inline head script conflict with a Content Security Policy?",[14,1433,1434],{},"It does if the policy forbids inline scripts. Allow it with a hash of the script in the script-src directive, which most generators can compute at build time, rather than adding unsafe-inline. The script is stable, so the hash rarely changes.",[32,1436,1438],{"id":1437},"related","Related",[37,1440,1441,1450,1455,1462,1467],{},[40,1442,1443,1446,1447,1449],{},[1355,1444,1445],{},"Parent:"," ",[21,1448,24],{"href":23}," — themes among the visual design issues.",[40,1451,1452,1454],{},[21,1453,60],{"href":59}," — the token test for both themes.",[40,1456,1457,1461],{},[21,1458,1460],{"href":1459},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Faccessibility-for-static-sites\u002Fkeyboard-navigation-and-focus-order-on-static-sites\u002F","Keyboard Navigation and Focus Order on Static Sites"," — focus rings that work in dark mode.",[40,1463,1464,1466],{},[21,1465,1034],{"href":1033}," — recolouring diagrams for the dark theme.",[40,1468,1469,1471],{},[21,1470,511],{"href":510}," — allowing the inline theme script by hash.",[1473,1474,1475],"style",{},"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 .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}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":296,"searchDepth":317,"depth":317,"links":1477},[1478,1479,1480,1481,1482,1483,1484,1485,1486,1487,1488,1489,1495],{"id":34,"depth":317,"text":35},{"id":64,"depth":317,"text":65},{"id":282,"depth":317,"text":283},{"id":572,"depth":317,"text":573},{"id":1005,"depth":317,"text":1006},{"id":1023,"depth":317,"text":1024},{"id":1037,"depth":317,"text":1038},{"id":1215,"depth":317,"text":1216},{"id":1259,"depth":317,"text":1260},{"id":1348,"depth":317,"text":1349},{"id":1397,"depth":317,"text":1398},{"id":1404,"depth":317,"text":1405,"children":1490},[1491,1492,1493,1494],{"id":1409,"depth":330,"text":1410},{"id":1416,"depth":330,"text":1417},{"id":1423,"depth":330,"text":1424},{"id":1430,"depth":330,"text":1431},{"id":1437,"depth":317,"text":1438},[1497,1500,1503,1504],{"name":1498,"item":1499},"Home","\u002F",{"name":1501,"item":1502},"Choosing the Right Static Site Generator for Production","\u002Fchoosing-the-right-static-site-generator-for-production\u002F",{"name":24,"item":23},{"name":5,"item":1505},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Faccessibility-for-static-sites\u002Faccessible-dark-mode-toggles-for-static-sites\u002F","2026-10-02","Build a theme toggle for a static site that follows the OS setting, has a real name and state, avoids a flash of the wrong theme and keeps AA contrast in both.","md",[1510,1511,1512,1513],{"q":1410,"a":1413},{"q":1417,"a":1420},{"q":1424,"a":1427},{"q":1431,"a":1434},{},true,"\u002Fchoosing-the-right-static-site-generator-for-production\u002Faccessibility-for-static-sites\u002Faccessible-dark-mode-toggles-for-static-sites",{"title":5,"description":1507},"choosing-the-right-static-site-generator-for-production\u002Faccessibility-for-static-sites\u002Faccessible-dark-mode-toggles-for-static-sites\u002Findex","article","QHvgUGl4mwZEvgno4FgdYWLPRGcwKZxUNDoXEFj4_bk",[1522,1525,1526,1528,1531,1534,1536,1538,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,1677,1680,1683,1686,1689,1692,1695,1698,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,1833,1836,1839,1842,1845,1848,1851,1854,1857,1860,1863,1866,1869,1872,1875,1878,1881,1884,1887,1890,1893,1896,1899,1902,1905,1908,1911,1914,1917,1920,1923,1926,1929,1932,1935,1938,1941,1944,1947,1950,1953,1956,1959,1962,1965,1968,1971,1974,1977,1980,1983,1986,1989,1992,1995,1998,2001,2004,2007,2010,2013,2016,2019,2022,2025,2028,2031,2034,2037,2040,2043,2046,2049,2052,2055,2058,2061,2064,2067,2070,2073,2076,2079,2082,2085,2088,2091,2094,2097,2100,2103,2106,2109,2112,2115,2118,2121,2124,2127,2130,2133,2136,2139,2142,2145,2148,2151,2154,2157,2160,2163,2166,2169,2172,2175,2178,2181,2184,2187,2190,2193,2196,2199,2202,2205,2208,2211,2214,2217,2220,2223,2226,2229,2232,2235,2238,2241,2244,2247,2250,2253,2256,2259,2262,2265,2268,2271,2274,2277,2280,2283,2286,2289,2292,2295,2298,2301,2304,2307,2310,2313,2316,2319,2322,2325,2328,2331,2334,2337,2340,2343,2346,2349,2352,2355,2358,2361,2364,2367,2370,2373,2376,2379,2382,2385,2388,2391,2394,2397,2400,2403,2406,2409,2412,2415,2418,2421,2424,2427,2430,2433,2436,2439,2442,2445,2448,2451,2454,2457,2460,2463,2466,2469,2472,2475,2478,2481,2484,2487,2490,2493,2496,2499,2502,2505,2508,2511,2514,2517,2520,2523,2526,2529,2532,2535,2538,2540,2543,2546,2549,2552,2555,2558,2561,2564,2567,2570,2573,2576,2579,2582,2585,2588,2591,2594,2597,2600,2603,2606,2609,2612,2615,2618,2621,2624,2627,2630,2633,2636,2639,2642,2645,2648,2651,2654,2657,2660],{"path":1523,"title":1524},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Faccessibility-for-static-sites\u002Faccessible-code-blocks-in-documentation-sites","Accessible Code Blocks in Documentation Sites",{"path":1516,"title":5},{"path":1527,"title":1034},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Faccessibility-for-static-sites\u002Faccessible-svg-diagrams-on-static-sites",{"path":1529,"title":1530},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Faccessibility-for-static-sites\u002Fenforcing-alt-text-for-markdown-images-at-build-time","Enforcing Alt Text for Markdown Images at Build Time",{"path":1532,"title":1533},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Faccessibility-for-static-sites\u002Ffixing-heading-order-problems-in-markdown-content","Fixing Heading Order Problems in Markdown Content",{"path":1535,"title":60},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Faccessibility-for-static-sites\u002Ffixing-low-color-contrast-flagged-by-lighthouse",{"path":1537,"title":24},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Faccessibility-for-static-sites",{"path":1539,"title":1460},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Faccessibility-for-static-sites\u002Fkeyboard-navigation-and-focus-order-on-static-sites",{"path":1541,"title":1542},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Faccessibility-for-static-sites\u002Fskip-links-and-landmarks-in-ssg-layouts","Skip Links and Landmarks in SSG Layouts",{"path":1544,"title":1545},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites\u002Fastro-vs-eleventy-build-times-at-10000-pages","Astro vs Eleventy Build Times at 10,000 Pages",{"path":1547,"title":1548},"\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":1550,"title":1551},"\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":1553,"title":1554},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites\u002Fdev-server-performance-astro-vs-eleventy","Dev Server Performance: Astro vs Eleventy",{"path":1556,"title":1557},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites\u002Ffixing-astro-build-errors-after-upgrading-to-astro-5","Fixing Astro Build Errors After Upgrading to Astro 5",{"path":1559,"title":1560},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites\u002Ffixing-duplicate-permalink-errors-in-eleventy","Fixing Duplicate Permalink Errors in Eleventy",{"path":1562,"title":1563},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites\u002Ffixing-eleventy-out-of-memory-errors-on-large-collections","Fixing Eleventy Out-of-Memory Errors on Large Collections",{"path":1565,"title":1566},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites\u002Ffixing-slow-astro-builds-caused-by-large-mdx-collections","Fixing Slow Astro Builds Caused by Large MDX Collections",{"path":1568,"title":1569},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites","Astro vs Eleventy for Documentation Sites",{"path":1571,"title":1572},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites\u002Floading-remote-content-with-astro-content-layer-loaders","Loading Remote Content With Astro Content Layer Loaders",{"path":1574,"title":1575},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites\u002Fmarkdown-pipelines-remark-vs-markdown-it","Markdown Pipelines: remark vs markdown-it",{"path":1577,"title":1578},"\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":1580,"title":1581},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites\u002Fsidebar-navigation-in-astro-and-eleventy","Sidebar Navigation in Astro and Eleventy",{"path":1583,"title":1584},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites\u002Fsyntax-highlighting-with-shiki-in-astro-and-eleventy","Syntax Highlighting with Shiki in Astro and Eleventy",{"path":1586,"title":1587},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites\u002Fupgrading-eleventy-2-to-3-with-esm-configuration","Upgrading Eleventy 2 to 3 With ESM Configuration",{"path":1589,"title":1590},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fadding-local-search-to-a-vitepress-site","Adding Local Search to a VitePress Site",{"path":1592,"title":1593},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fcomparing-docs-framework-build-times","Comparing Docs Framework Build Times",{"path":1595,"title":1596},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fcustomizing-starlight-without-forking-the-theme","Customizing Starlight Without Forking the Theme",{"path":1598,"title":1599},"\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":1601,"title":1602},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Ffixing-broken-links-reported-by-docusaurus-builds","Fixing Broken Links Reported by Docusaurus Builds",{"path":1604,"title":1605},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fgenerating-api-reference-pages-in-starlight-from-openapi","Generating API Reference Pages in Starlight From OpenAPI",{"path":1607,"title":1608},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress","Docs Frameworks: Docusaurus, Starlight and VitePress",{"path":1610,"title":1611},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Finternationalizing-starlight-docs","Internationalizing Starlight Docs",{"path":1613,"title":1614},"\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":1616,"title":1617},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fmigrating-from-mkdocs-to-starlight","Migrating from MkDocs to Starlight",{"path":1619,"title":1620},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fmigrating-mkdocs-documentation-to-vitepress","Migrating MkDocs Documentation to VitePress",{"path":1622,"title":1623},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fspeeding-up-docusaurus-builds-with-rspack","Speeding Up Docusaurus Builds With Rspack",{"path":1625,"title":1626},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fversioned-documentation-with-docusaurus","Versioned Documentation with Docusaurus",{"path":1628,"title":1629},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fversioning-vitepress-documentation-without-a-plugin","Versioning VitePress Documentation Without a Plugin",{"path":1631,"title":1632},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fvitepress-for-library-documentation","VitePress for Library Documentation",{"path":1634,"title":1635},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fvitepress-vs-starlight-for-vue-and-astro-teams","VitePress vs Starlight for Vue and Astro Teams",{"path":1637,"title":1638},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fhugo-build-times-for-large-repositories\u002Ffixing-hugo-builds-that-fail-after-a-version-upgrade","Fixing Hugo Builds That Fail After a Version Upgrade",{"path":1640,"title":1641},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fhugo-build-times-for-large-repositories\u002Ffixing-hugo-builds-that-slow-down-after-adding-taxonomies","Fixing Hugo Builds That Slow Down After Adding Taxonomies",{"path":1643,"title":1644},"\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":1646,"title":1647},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fhugo-build-times-for-large-repositories\u002Fhugo-image-processing-cache-in-ci","Hugo Image Processing Cache in CI",{"path":1649,"title":1650},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fhugo-build-times-for-large-repositories\u002Fhugo-modules-and-dependency-caching","Hugo Modules and Dependency Caching",{"path":1652,"title":1653},"\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":1655,"title":1656},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fhugo-build-times-for-large-repositories","Hugo Build Times for Large Repositories",{"path":1658,"title":1659},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fhugo-build-times-for-large-repositories\u002Fparallel-hugo-builds-across-ci-jobs","Parallel Hugo Builds Across CI Jobs",{"path":1661,"title":1662},"\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":1664,"title":1665},"\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":1667,"title":1668},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fhugo-build-times-for-large-repositories\u002Fsharing-a-theme-across-hugo-sites-with-modules","Sharing a Theme Across Hugo Sites With Modules",{"path":1670,"title":1671},"\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":1673,"title":1674},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fhugo-build-times-for-large-repositories\u002Fsplitting-large-hugo-sites-with-segments","Splitting Large Hugo Sites with Segments",{"path":1676,"title":1501},"\u002Fchoosing-the-right-static-site-generator-for-production",{"path":1678,"title":1679},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Finternationalization-for-static-sites\u002Ffixing-hreflang-errors-reported-in-search-console","Fixing Hreflang Errors Reported in Search Console",{"path":1681,"title":1682},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Finternationalization-for-static-sites\u002Fhreflang-and-language-alternates-on-static-sites","hreflang and Language Alternates on Static Sites",{"path":1684,"title":1685},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Finternationalization-for-static-sites\u002Fi18n-routing-in-astro","i18n Routing in Astro",{"path":1687,"title":1688},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Finternationalization-for-static-sites","Internationalization for Static Sites",{"path":1690,"title":1691},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Finternationalization-for-static-sites\u002Flanguage-detection-and-redirects-at-the-edge","Language Detection and Redirects at the Edge",{"path":1693,"title":1694},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Finternationalization-for-static-sites\u002Fmultilingual-eleventy-sites-with-the-i18n-plugin","Multilingual Eleventy Sites With the i18n Plugin",{"path":1696,"title":1697},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Finternationalization-for-static-sites\u002Fmultilingual-sites-with-hugo","Multilingual Sites with Hugo",{"path":1699,"title":1700},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Finternationalization-for-static-sites\u002Fright-to-left-layouts-on-static-sites","Right-to-Left Layouts on Static Sites",{"path":1702,"title":1703},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Finternationalization-for-static-sites\u002Fsubdirectories-vs-subdomains-for-translated-static-sites","Subdirectories vs Subdomains for Translated Static Sites",{"path":1705,"title":1706},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Finternationalization-for-static-sites\u002Ftranslation-workflows-with-git-and-crowdin","Translation Workflows with Git and Crowdin",{"path":1708,"title":1709},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem\u002Fcustom-domains-and-https-for-jekyll-on-github-pages","Custom Domains and HTTPS for Jekyll on GitHub Pages",{"path":1711,"title":1712},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem\u002Fdeploying-jekyll-with-github-actions","Deploying Jekyll with GitHub Actions",{"path":1714,"title":1715},"\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":1717,"title":1718},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem\u002Ffixing-jekyll-builds-that-break-after-a-ruby-upgrade","Fixing Jekyll Builds That Break After a Ruby Upgrade",{"path":1720,"title":1721},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem","Jekyll Plugin Ecosystem",{"path":1723,"title":1724},"\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":1726,"title":1727},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem\u002Frunning-jekyll-in-docker-for-reproducible-builds","Running Jekyll in Docker for Reproducible Builds",{"path":1729,"title":1730},"\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":1732,"title":1733},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem\u002Fspeeding-up-slow-jekyll-builds","Speeding Up Slow Jekyll Builds",{"path":1735,"title":1736},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem\u002Fupgrading-jekyll-and-ruby-versions-safely","Upgrading Jekyll and Ruby Versions Safely",{"path":1738,"title":1739},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators\u002Fauditing-content-parity-after-a-migration","Auditing Content Parity After a Migration",{"path":1741,"title":1742},"\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":1744,"title":1745},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators","Migrating Between Static Site Generators",{"path":1747,"title":1748},"\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":1750,"title":1751},"\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":1753,"title":1754},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators\u002Fmigrating-a-wordpress-export-to-eleventy","Migrating a WordPress Export to Eleventy",{"path":1756,"title":1757},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators\u002Fmigrating-from-docusaurus-to-starlight","Migrating from Docusaurus to Starlight",{"path":1759,"title":1760},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators\u002Fmigrating-from-gatsby-to-astro","Migrating from Gatsby to Astro",{"path":1762,"title":1763},"\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":1765,"title":1766},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators\u002Fmigrating-from-nextjs-pages-router-to-astro","Migrating from Next.js Pages Router to Astro",{"path":1768,"title":1769},"\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":1771,"title":1772},"\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":1774,"title":1775},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators\u002Frecovering-search-traffic-lost-after-a-generator-migration","Recovering Search Traffic Lost After a Generator Migration",{"path":1777,"title":1778},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators\u002Freplacing-gatsby-graphql-queries-during-a-migration","Replacing Gatsby GraphQL Queries During a Migration",{"path":1780,"title":1781},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fnextjs-static-export-for-content-sites\u002Ffixing-404s-on-refresh-in-nextjs-static-export","Fixing 404s on Refresh in Next.js Static Export",{"path":1783,"title":1784},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fnextjs-static-export-for-content-sites\u002Fgenerating-sitemaps-and-rss-in-nextjs-static-export","Generating Sitemaps and RSS in Next.js Static Export",{"path":1786,"title":1787},"\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":1789,"title":1790},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fnextjs-static-export-for-content-sites","Next.js Static Export for Content Sites",{"path":1792,"title":1793},"\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":1795,"title":1796},"\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":1798,"title":1799},"\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":1801,"title":1802},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fnextjs-static-export-for-content-sites\u002Fnextjs-static-export-vs-gatsby-for-existing-react-sites","Next.js Static Export vs Gatsby for Existing React Sites",{"path":1804,"title":1805},"\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":1807,"title":1808},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fnextjs-static-export-for-content-sites\u002Ftrailing-slash-and-basepath-in-nextjs-static-export","Trailing Slash and basePath in Next.js Static Export",{"path":1810,"title":1811},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fnextjs-static-export-for-content-sites\u002Fusing-mdx-in-nextjs-static-export","Using MDX in Next.js Static Export",{"path":1813,"title":1814},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Faccessible-search-ui-for-static-sites","Accessible Search UI for Static Sites",{"path":1816,"title":1817},"\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":1819,"title":1820},"\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":1822,"title":1823},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fcustomizing-the-pagefind-ui","Customizing the Pagefind UI",{"path":1825,"title":1826},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Ffixing-missing-results-in-pagefind-indexes","Fixing Missing Results in Pagefind Indexes",{"path":1828,"title":1829},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites","Search for Static Sites",{"path":1831,"title":1832},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Findexing-hugo-sites-with-pagefind","Indexing Hugo Sites with Pagefind",{"path":1834,"title":1835},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fmultilingual-search-on-static-sites","Multilingual Search on Static Sites",{"path":1837,"title":1838},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fpagefind-vs-algolia-docsearch","Pagefind vs Algolia DocSearch",{"path":1840,"title":1841},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fpagefind-vs-lunr-for-small-documentation-sites","Pagefind vs Lunr for Small Documentation Sites",{"path":1843,"title":1844},"\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":1846,"title":1847},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fself-hosting-typesense-for-a-static-site","Self-Hosting Typesense for a Static Site",{"path":1849,"title":1850},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Ftracking-zero-result-searches","Tracking Zero-Result Searches",{"path":1852,"title":1853},"\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":1855,"title":1856},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fssg-framework-selection-matrix\u002Fchoosing-an-ssg-for-a-marketing-site-with-non-technical-editors","Choosing an SSG for a Marketing Site with Non-Technical Editors",{"path":1858,"title":1859},"\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":1861,"title":1862},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fssg-framework-selection-matrix\u002Fevaluating-ssg-accessibility-defaults","Evaluating SSG Accessibility Defaults",{"path":1864,"title":1865},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fssg-framework-selection-matrix\u002Fgatsby-vs-astro-for-content-sites-in-2026","Gatsby vs Astro for Content Sites in 2026",{"path":1867,"title":1868},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fssg-framework-selection-matrix","SSG Framework Selection Matrix",{"path":1870,"title":1871},"\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":1873,"title":1874},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fssg-framework-selection-matrix\u002Fscoring-ssg-long-term-maintenance-risk","Scoring SSG Long-Term Maintenance Risk",{"path":1876,"title":1877},"\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":1879,"title":1880},"\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":1882,"title":1883},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fssg-framework-selection-matrix\u002Fwhen-a-static-site-generator-is-the-wrong-choice","When a Static Site Generator Is the Wrong Choice",{"path":1885,"title":1886},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Ftechnical-seo-for-static-sites\u002Fadding-json-ld-structured-data-at-build-time","Adding JSON-LD Structured Data at Build Time",{"path":1888,"title":1889},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Ftechnical-seo-for-static-sites\u002Fcanonical-urls-and-duplicate-content-on-static-sites","Canonical URLs and Duplicate Content on Static Sites",{"path":1891,"title":1892},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Ftechnical-seo-for-static-sites\u002Ffixing-pages-crawled-but-not-indexed-on-static-sites","Fixing Pages Crawled but Not Indexed on Static Sites",{"path":1894,"title":1895},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Ftechnical-seo-for-static-sites\u002Ffixing-soft-404s-on-static-hosts","Fixing Soft 404s on Static Hosts",{"path":1897,"title":1898},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Ftechnical-seo-for-static-sites\u002Fgenerating-breadcrumb-structured-data-in-astro","Generating Breadcrumb Structured Data in Astro",{"path":1900,"title":1901},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Ftechnical-seo-for-static-sites\u002Fgenerating-sitemaps-for-large-static-sites","Generating Sitemaps for Large Static Sites",{"path":1903,"title":1904},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Ftechnical-seo-for-static-sites","Technical SEO for Static Sites",{"path":1906,"title":1907},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Ftechnical-seo-for-static-sites\u002Frobots-txt-and-noindex-for-preview-and-staging","robots.txt and noindex for Preview and Staging",{"path":1909,"title":1910},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Ftechnical-seo-for-static-sites\u002Frss-and-atom-feeds-for-static-blogs","RSS and Atom Feeds for Static Blogs",{"path":1912,"title":1913},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Ftechnical-seo-for-static-sites\u002Fseo-safe-pagination-and-tag-pages","SEO-Safe Pagination and Tag Pages",{"path":1915,"title":1916},"\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":1918,"title":1919},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcdn-caching-rules-for-ssgs\u002Fcache-control-headers-for-static-sites-in-nginx","Cache-Control Headers for Static Sites in Nginx",{"path":1921,"title":1922},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcdn-caching-rules-for-ssgs\u002Fcache-control-headers-on-s3-and-cloudfront","Cache-Control Headers on S3 and CloudFront",{"path":1924,"title":1925},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcdn-caching-rules-for-ssgs\u002Fcache-control-headers-on-vercel-for-static-sites","Cache-Control Headers on Vercel for Static Sites",{"path":1927,"title":1928},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcdn-caching-rules-for-ssgs\u002Fcache-keys-and-query-strings-on-cdns","Cache Keys and Query Strings on CDNs",{"path":1930,"title":1931},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcdn-caching-rules-for-ssgs\u002Fcaching-404s-and-redirects-at-the-edge","Caching 404s and Redirects at the Edge",{"path":1933,"title":1934},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcdn-caching-rules-for-ssgs\u002Fcloudflare-vs-cloudfront-cache-hit-ratios-for-static-sites","Cloudflare vs CloudFront Cache Hit Ratios for Static Sites",{"path":1936,"title":1937},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcdn-caching-rules-for-ssgs\u002Ffixing-stale-html-after-deploys-on-cloudflare","Fixing Stale HTML After Deploys on Cloudflare",{"path":1939,"title":1940},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcdn-caching-rules-for-ssgs","CDN Caching Rules for SSGs",{"path":1942,"title":1943},"\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":1945,"title":1946},"\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":1948,"title":1949},"\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":1951,"title":1952},"\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":1954,"title":1955},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcdn-caching-rules-for-ssgs\u002Ftiered-caching-and-origin-shield","Tiered Caching and Origin Shield",{"path":1957,"title":1958},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcss-and-javascript-asset-optimization\u002Fcode-splitting-and-module-preload-in-vite-based-ssgs","Code Splitting and Module Preload in Vite-Based SSGs",{"path":1960,"title":1961},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcss-and-javascript-asset-optimization\u002Ffixing-missing-tailwind-classes-in-production-builds","Fixing Missing Tailwind Classes in Production Builds",{"path":1963,"title":1964},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcss-and-javascript-asset-optimization\u002Ffixing-unused-javascript-warnings-on-static-pages","Fixing Unused JavaScript Warnings on Static Pages",{"path":1966,"title":1967},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcss-and-javascript-asset-optimization","CSS and JavaScript Asset Optimization",{"path":1969,"title":1970},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcss-and-javascript-asset-optimization\u002Finlining-critical-css-on-static-sites","Inlining Critical CSS on Static Sites",{"path":1972,"title":1973},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcss-and-javascript-asset-optimization\u002Fkeeping-tailwind-css-output-small-on-static-sites","Keeping Tailwind CSS Output Small on Static Sites",{"path":1975,"title":1976},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcss-and-javascript-asset-optimization\u002Fminifying-html-css-and-js-in-eleventy","Minifying HTML, CSS and JS in Eleventy",{"path":1978,"title":1979},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcss-and-javascript-asset-optimization\u002Fprecompressing-assets-with-brotli-and-zstd","Precompressing Assets with Brotli and Zstd",{"path":1981,"title":1982},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcss-and-javascript-asset-optimization\u002Fpurging-unused-css-with-tailwind-and-lightningcss","Purging Unused CSS with Tailwind and Lightning CSS",{"path":1984,"title":1985},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcss-and-javascript-asset-optimization\u002Fsvg-icon-sprites-vs-inline-icons","SVG Icon Sprites vs Inline Icons",{"path":1987,"title":1988},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcss-and-javascript-asset-optimization\u002Ftailwind-v4-in-astro-without-postcss-plugins","Tailwind v4 in Astro Without PostCSS Plugins",{"path":1990,"title":1991},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites\u002Fcls-from-client-side-rendered-components","CLS from Client-Side Rendered Components",{"path":1993,"title":1994},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites\u002Fdebugging-cls-with-the-layout-instability-api","Debugging CLS with the Layout Instability API",{"path":1996,"title":1997},"\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":1999,"title":2000},"\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":2002,"title":2003},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites\u002Ffixing-cls-from-dynamic-table-of-contents-widgets","Fixing CLS From Dynamic Table of Contents Widgets",{"path":2005,"title":2006},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites\u002Ffixing-cls-from-images-without-dimensions-in-markdown","Fixing CLS From Images Without Dimensions in Markdown",{"path":2008,"title":2009},"\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":2011,"title":2012},"\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":2014,"title":2015},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites","Cumulative Layout Shift Fixes for Static Sites",{"path":2017,"title":2018},"\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":2020,"title":2021},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites\u002Freserving-space-for-ad-and-promo-slots","Reserving Space for Ad and Promo Slots",{"path":2023,"title":2024},"\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":2026,"title":2027},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Fauditing-font-payload-per-page","Auditing Font Payload per Page",{"path":2029,"title":2030},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Ffixing-invisible-text-while-web-fonts-load","Fixing Invisible Text While Web Fonts Load",{"path":2032,"title":2033},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Ffont-display-optional-vs-swap","font-display: optional vs swap",{"path":2035,"title":2036},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites","Font Loading Strategies for Static Sites",{"path":2038,"title":2039},"\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":2041,"title":2042},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Fpreloading-fonts-without-double-downloads","Preloading Fonts Without Double Downloads",{"path":2044,"title":2045},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Fself-hosted-fonts-vs-google-fonts-for-static-sites","Self-Hosted Fonts vs Google Fonts for Static Sites",{"path":2047,"title":2048},"\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":2050,"title":2051},"\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":2053,"title":2054},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Fusing-system-font-stacks-to-skip-webfonts","Using System Font Stacks to Skip Web Fonts",{"path":2056,"title":2057},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Fvariable-fonts-vs-static-weights","Variable Fonts vs Static Weights",{"path":2059,"title":2060},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fimage-optimization-pipelines-in-astro\u002Fart-direction-with-the-picture-element","Art Direction with the Picture Element",{"path":2062,"title":2063},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fimage-optimization-pipelines-in-astro\u002Fblur-up-placeholders-with-lqip","Blur-Up Placeholders with LQIP",{"path":2065,"title":2066},"\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":2068,"title":2069},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fimage-optimization-pipelines-in-astro\u002Fcaching-processed-images-between-builds","Caching Processed Images Between Builds",{"path":2071,"title":2072},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fimage-optimization-pipelines-in-astro\u002Ffixing-blurry-images-from-astro-assets-resizing","Fixing Blurry Images From astro:assets Resizing",{"path":2074,"title":2075},"\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":2077,"title":2078},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fimage-optimization-pipelines-in-astro","Image Optimization Pipelines in Astro",{"path":2080,"title":2081},"\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":2083,"title":2084},"\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":2086,"title":2087},"\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":2089,"title":2090},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fimage-optimization-pipelines-in-astro\u002Fserving-astro-images-through-cloudflare-image-resizing","Serving Astro Images Through Cloudflare Image Resizing",{"path":2092,"title":2093},"\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":2095,"title":2096},"\u002Fperformance-optimization-core-web-vitals-for-ssgs","Core Web Vitals Optimization for SSGs",{"path":2098,"title":2099},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Fastro-islands-vs-full-hydration-performance","Astro Islands vs Full Hydration Performance",{"path":2101,"title":2102},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Fbreaking-up-long-tasks-on-static-sites","Breaking Up Long Tasks on Static Sites",{"path":2104,"title":2105},"\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":2107,"title":2108},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Ffixing-hydration-mismatch-errors-in-astro-islands","Fixing Hydration Mismatch Errors in Astro Islands",{"path":2110,"title":2111},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Ffixing-poor-inp-on-static-pages-with-heavy-widgets","Fixing Poor INP on Static Pages With Heavy Widgets",{"path":2113,"title":2114},"\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":2116,"title":2117},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering","JavaScript Hydration & Partial Rendering",{"path":2119,"title":2120},"\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":2122,"title":2123},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Fpreact-vs-react-islands-bundle-size","Preact vs React Islands Bundle Size",{"path":2125,"title":2126},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Freplacing-react-islands-with-web-components","Replacing React Islands with Web Components",{"path":2128,"title":2129},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Fserver-islands-in-astro","Server Islands in Astro",{"path":2131,"title":2132},"\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":2134,"title":2135},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Flargest-contentful-paint-optimization-for-static-sites\u002Ffixing-lcp-on-text-heavy-documentation-pages","Fixing LCP on Text-Heavy Documentation Pages",{"path":2137,"title":2138},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Flargest-contentful-paint-optimization-for-static-sites\u002Ffixing-lcp-regressions-caused-by-cookie-consent-tools","Fixing LCP Regressions Caused by Cookie Consent Tools",{"path":2140,"title":2141},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Flargest-contentful-paint-optimization-for-static-sites\u002Ffixing-lcp-when-the-hero-is-a-background-image","Fixing LCP When the Hero Is a Background Image",{"path":2143,"title":2144},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Flargest-contentful-paint-optimization-for-static-sites\u002Ffixing-slow-lcp-on-pages-with-embedded-video","Fixing Slow LCP on Pages With Embedded Video",{"path":2146,"title":2147},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Flargest-contentful-paint-optimization-for-static-sites\u002Fimproving-ttfb-for-static-html","Improving TTFB for Static HTML",{"path":2149,"title":2150},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Flargest-contentful-paint-optimization-for-static-sites","Largest Contentful Paint Optimization for Static Sites",{"path":2152,"title":2153},"\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":2155,"title":2156},"\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":2158,"title":2159},"\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":2161,"title":2162},"\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":2164,"title":2165},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci","Performance Budgets and Lighthouse CI",{"path":2167,"title":2168},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci\u002Flighthouse-ci-vs-webpagetest-for-regression-gates","Lighthouse CI vs WebPageTest for Regression Gates",{"path":2170,"title":2171},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci\u002Fmeasuring-web-vitals-in-playwright-tests","Measuring Web Vitals in Playwright Tests",{"path":2173,"title":2174},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci\u002Fper-template-performance-budgets","Per-Template Performance Budgets",{"path":2176,"title":2177},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci\u002Fperformance-testing-on-throttled-mobile-profiles","Performance Testing on Throttled Mobile Profiles",{"path":2179,"title":2180},"\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":2182,"title":2183},"\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":2185,"title":2186},"\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":2188,"title":2189},"\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":2191,"title":2192},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci\u002Ftracking-page-weight-over-time","Tracking Page Weight Over Time",{"path":2194,"title":2195},"\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":2197,"title":2198},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Fauditing-unused-preloads","Auditing Unused Preloads",{"path":2200,"title":2201},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Fearly-hints-103-on-cloudflare","Early Hints (103) on Cloudflare",{"path":2203,"title":2204},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Ffetchpriority-beyond-the-hero-image","Fetchpriority Beyond the Hero Image",{"path":2206,"title":2207},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Ffixing-wasted-preloads-flagged-by-chrome","Fixing Wasted Preloads Flagged by Chrome",{"path":2209,"title":2210},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed","Resource Hints and Navigation Speed",{"path":2212,"title":2213},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Finstant-navigation-with-speculation-rules","Instant Navigation with Speculation Rules",{"path":2215,"title":2216},"\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":2218,"title":2219},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Fprefetching-links-in-astro","Prefetching Links in Astro",{"path":2221,"title":2222},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Fview-transitions-in-astro-without-hurting-vitals","View Transitions in Astro Without Hurting Vitals",{"path":2224,"title":2225},"\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":2227,"title":2228},"\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":2230,"title":2231},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites\u002Ffacades-for-chat-widgets-and-maps","Facades for Chat Widgets and Maps",{"path":2233,"title":2234},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites\u002Ffixing-main-thread-blocking-from-chat-widgets","Fixing Main-Thread Blocking From Chat Widgets",{"path":2236,"title":2237},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites","Third-Party Script Performance on Static Sites",{"path":2239,"title":2240},"\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":2242,"title":2243},"\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":2245,"title":2246},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites\u002Fmeasuring-third-party-cost-with-request-blocking","Measuring Third-Party Cost with Request Blocking",{"path":2248,"title":2249},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites\u002Fprivacy-friendly-analytics-compared-by-page-weight","Privacy-Friendly Analytics Compared by Page Weight",{"path":2251,"title":2252},"\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":2254,"title":2255},"\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":2257,"title":2258},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup\u002Fautomating-eleventy-deployments-with-cloudflare-pages","Automating Eleventy Deployments on Cloudflare Pages",{"path":2260,"title":2261},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup\u002Fbranch-deploy-controls-on-cloudflare-pages","Branch Deploy Controls on Cloudflare Pages",{"path":2263,"title":2264},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup\u002Fcloudflare-pages-functions-middleware","Cloudflare Pages Functions Middleware",{"path":2266,"title":2267},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup\u002Fconfiguring-redirects-on-cloudflare-pages","Configuring Redirects on Cloudflare Pages",{"path":2269,"title":2270},"\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":2272,"title":2273},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup\u002Fdeploying-astro-to-cloudflare-workers-static-assets","Deploying Astro to Cloudflare Workers Static Assets",{"path":2275,"title":2276},"\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":2278,"title":2279},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup\u002Fdeploying-to-cloudflare-from-github-actions-with-wrangler","Deploying to Cloudflare From GitHub Actions With Wrangler",{"path":2281,"title":2282},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup\u002Ffixing-redirect-loops-on-cloudflare-pages","Fixing Redirect Loops on Cloudflare Pages",{"path":2284,"title":2285},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup","Cloudflare Pages Edge Caching Setup",{"path":2287,"title":2288},"\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":2290,"title":2291},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams\u002Fchecking-links-in-pull-requests","Checking Links in Pull Requests",{"path":2293,"title":2294},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams\u002Fcontent-linting-with-markdownlint","Content Linting with markdownlint",{"path":2296,"title":2297},"\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":2299,"title":2300},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams\u002Feditorial-checks-with-vale-in-ci","Editorial Checks with Vale in CI",{"path":2302,"title":2303},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams\u002Fgit-based-cms-options-for-static-sites-compared","Git-Based CMS Options for Static Sites Compared",{"path":2305,"title":2306},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams","Content Workflows for Documentation Teams",{"path":2308,"title":2309},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams\u002Fmanaging-images-in-docs-as-code-repos","Managing Images in Docs-as-Code Repos",{"path":2311,"title":2312},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams\u002Frelease-notes-and-changelogs-from-git","Release Notes and Changelogs from Git",{"path":2314,"title":2315},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams\u002Fscheduled-content-publishing-with-github-actions","Scheduled Content Publishing With GitHub Actions",{"path":2317,"title":2318},"\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":2320,"title":2321},"\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":2323,"title":2324},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fbuilding-astro-sites-with-github-actions","Building Astro Sites with GitHub Actions",{"path":2326,"title":2327},"\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":2329,"title":2330},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fconcurrency-groups-to-cancel-stale-builds","Concurrency Groups to Cancel Stale Builds",{"path":2332,"title":2333},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fdeploying-to-github-pages-with-actions","Deploying to GitHub Pages with Actions",{"path":2335,"title":2336},"\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":2338,"title":2339},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Ffixing-flaky-static-site-builds-in-github-actions","Fixing Flaky Static Site Builds in GitHub Actions",{"path":2341,"title":2342},"\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":2344,"title":2345},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds","GitHub Actions for Automated SSG Builds",{"path":2347,"title":2348},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fmatrix-builds-for-multi-site-monorepos","Matrix Builds for Multi-Site Monorepos",{"path":2350,"title":2351},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fpinning-actions-by-commit-sha","Pinning Actions by Commit SHA",{"path":2353,"title":2354},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fpublishing-any-generator-to-github-pages-with-actions","Publishing Any Generator to GitHub Pages With Actions",{"path":2356,"title":2357},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Freusable-workflows-for-ssg-builds","Reusable Workflows for SSG Builds",{"path":2359,"title":2360},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs\u002Fbuild-caching-on-netlify-and-vercel","Build Caching on Netlify and Vercel",{"path":2362,"title":2363},"\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":2365,"title":2366},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs\u002Fdeploying-only-changed-files","Deploying Only Changed Files",{"path":2368,"title":2369},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs\u002Fenabling-incremental-builds-in-eleventy","Enabling Incremental Builds in Eleventy",{"path":2371,"title":2372},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs\u002Ffixing-stale-pages-from-incremental-builds","Fixing Stale Pages From Incremental Builds",{"path":2374,"title":2375},"\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":2377,"title":2378},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs\u002Fincremental-rebuild-times-across-astro-eleventy-and-hugo","Incremental Rebuild Times Across Astro, Eleventy and Hugo",{"path":2380,"title":2381},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs","Incremental Builds and Build Caching for SSGs",{"path":2383,"title":2384},"\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":2386,"title":2387},"\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":2389,"title":2390},"\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":2392,"title":2393},"\u002Fproduction-ready-deployment-cicd-workflows","Production-Ready Deployment & CI\u002FCD for SSGs",{"path":2395,"title":2396},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production\u002Falerting-on-cache-hit-ratio-drops","Alerting on Cache Hit Ratio Drops",{"path":2398,"title":2399},"\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":2401,"title":2402},"\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":2404,"title":2405},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production\u002Ffinding-the-cause-of-a-sudden-field-lcp-drop","Finding the Cause of a Sudden Field LCP Drop",{"path":2407,"title":2408},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production","Monitoring Static Sites in Production",{"path":2410,"title":2411},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production\u002Flogging-404s-at-the-edge","Logging 404s at the Edge",{"path":2413,"title":2414},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production\u002Fmonitoring-tls-certificate-expiry","Monitoring TLS Certificate Expiry",{"path":2416,"title":2417},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production\u002Freal-user-error-tracking-on-static-sites","Real-User Error Tracking on Static Sites",{"path":2419,"title":2420},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production\u002Fsynthetic-monitoring-with-scheduled-playwright-checks","Synthetic Monitoring With Scheduled Playwright Checks",{"path":2422,"title":2423},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production\u002Ftracking-deploy-markers-in-analytics","Tracking Deploy Markers in Analytics",{"path":2425,"title":2426},"\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":2428,"title":2429},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies\u002Fbandwidth-pricing-for-static-sites-across-netlify-vercel-and-cloudflare","Static Site Bandwidth Pricing: Netlify, Vercel, Cloudflare",{"path":2431,"title":2432},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies\u002Fconfiguring-redirects-on-vercel-for-static-sites","Configuring Redirects on Vercel for Static Sites",{"path":2434,"title":2435},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies\u002Fconfiguring-vercel-for-hugo-and-eleventy","Configuring Vercel for Hugo and Eleventy",{"path":2437,"title":2438},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies\u002Fdeploying-astro-to-vercel-as-a-fully-static-site","Deploying Astro to Vercel as a Fully Static Site",{"path":2440,"title":2441},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies\u002Ffixing-netlify-builds-that-exceed-the-time-limit","Fixing Netlify Builds That Exceed the Time Limit",{"path":2443,"title":2444},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies\u002Ffixing-vercel-builds-that-run-out-of-memory","Fixing Vercel Builds That Run Out of Memory",{"path":2446,"title":2447},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies","Netlify vs Vercel Deployment Strategies",{"path":2449,"title":2450},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies\u002Fnetlify-build-hooks-for-content-updates","Netlify Build Hooks for Content Updates",{"path":2452,"title":2453},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies\u002Fnetlify-edge-functions-for-static-sites","Netlify Edge Functions for Static Sites",{"path":2455,"title":2456},"\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":2458,"title":2459},"\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":2461,"title":2462},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies\u002Fvercel-build-output-api-for-custom-ssgs","Vercel Build Output API for Custom SSGs",{"path":2464,"title":2465},"\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":2467,"title":2468},"\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":2470,"title":2471},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fcleaning-up-stale-preview-deployments","Cleaning Up Stale Preview Deployments",{"path":2473,"title":2474},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fcommenting-on-preview-deploys","Commenting on Preview Deploys",{"path":2476,"title":2477},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Ffixing-preview-deploys-leaking-into-search-results","Fixing Preview Deploys Leaking Into Search Results",{"path":2479,"title":2480},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests","Preview Environments for Pull Requests",{"path":2482,"title":2483},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fpassword-protecting-preview-deployments","Password-Protecting Preview Deployments",{"path":2485,"title":2486},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fpreview-deploys-for-monorepos","Preview Deploys for Monorepos",{"path":2488,"title":2489},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fpreviewing-headless-cms-drafts","Previewing Headless CMS Drafts",{"path":2491,"title":2492},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fpull-request-previews-for-github-pages-sites","Pull Request Previews for GitHub Pages Sites",{"path":2494,"title":2495},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fvisual-regression-testing-on-preview-deploys","Visual Regression Testing on Preview Deploys",{"path":2497,"title":2498},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Fatomic-deploys-vs-incremental-uploads","Atomic Deploys vs Incremental Uploads",{"path":2500,"title":2501},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Fblue-green-deploys-for-static-sites","Blue-Green Deploys for Static Sites",{"path":2503,"title":2504},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Fcanary-releases-for-static-sites","Canary Releases for Static Sites",{"path":2506,"title":2507},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Ffeature-flags-on-static-sites","Feature Flags on Static Sites",{"path":2509,"title":2510},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites","Rollbacks and Deploy Safety for Static Sites",{"path":2512,"title":2513},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Fkeeping-old-assets-alive-after-deploy","Keeping Old Assets Alive After Deploy",{"path":2515,"title":2516},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Fpost-deploy-verification-checklists","Post-Deploy Verification Checklists",{"path":2518,"title":2519},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Frecovering-from-a-deploy-that-deleted-live-assets","Recovering From a Deploy That Deleted Live Assets",{"path":2521,"title":2522},"\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":2524,"title":2525},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Frolling-back-netlify-deploys-from-the-cli-and-api","Rolling Back Netlify Deploys From the CLI and API",{"path":2527,"title":2528},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Frolling-back-s3-and-cloudfront-deploys-with-versioned-prefixes","Rolling Back S3 and CloudFront Deploys With Versioned Prefixes",{"path":2530,"title":2531},"\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":2533,"title":2534},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fauditing-npm-dependencies-in-ssg-pipelines","Auditing npm Dependencies in SSG Pipelines",{"path":2536,"title":2537},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fenabling-hsts-and-preload-safely","Enabling HSTS and Preload Safely",{"path":2539,"title":511},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Ffixing-content-security-policy-violations-from-inline-scripts",{"path":2541,"title":2542},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Ffixing-mixed-content-warnings-after-moving-to-https","Fixing Mixed Content Warnings After Moving to HTTPS",{"path":2544,"title":2545},"\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":2547,"title":2548},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites","Security Headers and Hardening for Static Sites",{"path":2550,"title":2551},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fpermissions-policy-and-cross-origin-headers","Permissions-Policy and Cross-Origin Headers",{"path":2553,"title":2554},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fsecuring-deploy-credentials-with-github-oidc","Securing Deploy Credentials with GitHub OIDC",{"path":2556,"title":2557},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fsecurity-headers-for-static-sites-served-by-caddy","Security Headers for Static Sites Served by Caddy",{"path":2559,"title":2560},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fsecurity-headers-on-vercel-for-static-sites","Security Headers on Vercel for Static Sites",{"path":2562,"title":2563},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fsecurity-txt-and-disclosure-for-static-sites","security.txt and Disclosure for Static Sites",{"path":2565,"title":2566},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fsubresource-integrity-for-third-party-assets","Subresource Integrity for Third-Party Assets",{"path":2568,"title":2569},"\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":2571,"title":2572},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fbrotli-and-gzip-precompression-served-by-nginx","Brotli and Gzip Precompression Served by Nginx",{"path":2574,"title":2575},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fclean-urls-and-trailing-slashes-on-s3","Clean URLs and Trailing Slashes on S3",{"path":2577,"title":2578},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fcloudfront-functions-for-redirects","CloudFront Functions for Redirects",{"path":2580,"title":2581},"\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":2583,"title":2584},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fhosting-on-azure-static-web-apps","Hosting on Azure Static Web Apps",{"path":2586,"title":2587},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites","Self-Hosting Static Sites on S3, Nginx and Caddy",{"path":2589,"title":2590},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fnginx-vs-caddy-for-serving-static-sites","Nginx vs Caddy for Serving Static Sites",{"path":2592,"title":2593},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fserving-a-static-site-from-a-docker-container-with-nginx","Serving a Static Site From a Docker Container With Nginx",{"path":2595,"title":2596},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fserving-a-static-site-with-caddy-and-automatic-https","Serving a Static Site With Caddy and Automatic HTTPS",{"path":2598,"title":2599},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fserving-a-static-site-with-caddy","Serving a Static Site with Caddy",{"path":2601,"title":2602},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fserving-a-static-site-with-nginx","Serving a Static Site with Nginx",{"path":2604,"title":2605},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fstatic-hosting-on-google-cloud-storage","Static Hosting on Google Cloud Storage",{"path":2607,"title":2608},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fzero-downtime-deploys-with-symlink-swaps","Zero-Downtime Deploys with Symlink Swaps",{"path":2610,"title":2611},"\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":2613,"title":2614},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites\u002Ffixing-cold-starts-in-netlify-functions-for-forms","Fixing Cold Starts in Netlify Functions for Forms",{"path":2616,"title":2617},"\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":2619,"title":2620},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites","Serverless Functions for Static Sites",{"path":2622,"title":2623},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites\u002Fnetlify-functions-vs-cloudflare-workers","Netlify Functions vs Cloudflare Workers",{"path":2625,"title":2626},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites\u002Fnewsletter-signup-with-an-edge-function","Newsletter Signup with an Edge Function",{"path":2628,"title":2629},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites\u002Fprotecting-a-static-site-behind-authentication","Protecting a Static Site Behind Authentication",{"path":2631,"title":2632},"\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",{"path":2634,"title":2635},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites\u002Frate-limiting-edge-functions","Rate Limiting Edge Functions",{"path":2637,"title":2638},"\u002Fproduction-ready-deployment-cicd-workflows\u002Ftesting-static-sites-in-ci\u002Faccessibility-testing-with-axe-and-pa11y-in-ci","Accessibility Testing with axe and pa11y in CI",{"path":2640,"title":2641},"\u002Fproduction-ready-deployment-cicd-workflows\u002Ftesting-static-sites-in-ci\u002Fend-to-end-tests-for-static-sites-with-playwright","End-to-End Tests for Static Sites with Playwright",{"path":2643,"title":2644},"\u002Fproduction-ready-deployment-cicd-workflows\u002Ftesting-static-sites-in-ci\u002Ffixing-flaky-playwright-tests-against-preview-deploys","Fixing Flaky Playwright Tests Against Preview Deploys",{"path":2646,"title":2647},"\u002Fproduction-ready-deployment-cicd-workflows\u002Ftesting-static-sites-in-ci","Testing Static Sites in CI",{"path":2649,"title":2650},"\u002Fproduction-ready-deployment-cicd-workflows\u002Ftesting-static-sites-in-ci\u002Fsnapshot-testing-build-output","Snapshot Testing Build Output",{"path":2652,"title":2653},"\u002Fproduction-ready-deployment-cicd-workflows\u002Ftesting-static-sites-in-ci\u002Ftesting-redirects-and-headers-before-deploy","Testing Redirects and Headers Before Deploy",{"path":2655,"title":2656},"\u002Fproduction-ready-deployment-cicd-workflows\u002Ftesting-static-sites-in-ci\u002Ftesting-search-and-navigation-flows-with-playwright","Testing Search and Navigation Flows With Playwright",{"path":2658,"title":2659},"\u002Fproduction-ready-deployment-cicd-workflows\u002Ftesting-static-sites-in-ci\u002Ftesting-structured-data-and-meta-tags","Testing Structured Data and Meta Tags",{"path":2661,"title":2662},"\u002Fproduction-ready-deployment-cicd-workflows\u002Ftesting-static-sites-in-ci\u002Fvalidating-html-output-in-ci","Validating HTML Output in CI",{"kind":2664,"tools":2668},{"label":2665,"plural":2666,"u":2667},"How-to","How-tos","\u002Fguides\u002Fhow-to\u002F",[],1790943190979]