Added tags to search result, search no long matches the project tags (the ones used for filtering) and implemented author page that show up on search.
This commit is contained in:
parent
32ebfc6176
commit
e54f2336db
27 changed files with 244 additions and 89 deletions
|
|
@ -1,7 +1,7 @@
|
|||
const featuredHelper = document.querySelector("#featuredHelper");
|
||||
|
||||
async function getFeaturedJSON() {
|
||||
const response = await fetch(`featured.json`);
|
||||
const response = await fetch(`/assets/featured.json`);
|
||||
if (!response.ok) {
|
||||
featuredHelper.innerHTML = `
|
||||
<p>;( Oopsie! Could not load featured projects...</p>
|
||||
|
|
@ -17,13 +17,11 @@ async function getFeaturedJSON() {
|
|||
featuredDiv.id = `featured-${project}`;
|
||||
featuredDiv.innerHTML = `
|
||||
<a href="project.html?id=${project}">
|
||||
<img src="projects/${project}/logo.png">
|
||||
<p>:${project}</p>
|
||||
<img src="/projects/${project}/logo.png">
|
||||
<p>${project}</p>
|
||||
</a>
|
||||
`;
|
||||
featuredHelper.appendChild(featuredDiv);
|
||||
|
||||
loadProject(project, document.querySelector(`featured-${project} p`), undefined, undefined, undefined, document.querySelector(`featured-${project} img`))
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue