Moving to Eleventy. Search not working yet.
This commit is contained in:
parent
e7c13a732d
commit
26db9488db
22 changed files with 1852 additions and 190 deletions
11
assets/index.js
Normal file
11
assets/index.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
const featuredHelper = document.querySelector("#featuredHelper")
|
||||
|
||||
async function loadFeatured() {
|
||||
const response = await fetch(`bananas.json`);
|
||||
if (!response.ok) {
|
||||
featuredHelper.innerHTML = `
|
||||
<p>Oops! Failed to fetch featured projects...</p>
|
||||
`
|
||||
throw new Error("Failed to fetch featured projects JSON");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue