Skip to content

Commit 1fbe020

Browse files
authored
Remove Language and Tools from Homepage Project Filters (#8369)
* removed language and tools categories from project filters on homepage
1 parent 2f0713e commit 1fbe020

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/js/current-projects.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ document.addEventListener("DOMContentLoaded",function(){
4343
// for issue #4648, needed to add languages inside the technologies filter-item group, might be able to optimize for future iterations
4444

4545
// This ensures that the /projects-check page does not change
46-
if ((filterName === 'languages' || filterName === 'tools') && window.location.pathname === '/projects/') {
46+
if ((filterName === 'languages' || filterName === 'tools') && (window.location.pathname === '/projects/' || window.location.pathname === "/")) {
4747
// remove the view all button
4848
document.querySelector(`#technologies`).lastElementChild.remove()
4949
// insert data inside at the end of the category

0 commit comments

Comments
 (0)