Skip to content

Commit

Permalink
Refactor ProjectsSection.astro to show more projects by default
Browse files Browse the repository at this point in the history
  • Loading branch information
dnachavez committed Apr 26, 2024
1 parent 7d8a190 commit d546052
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sections/ProjectsSection.astro
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ import projects from "../data/projects.json";
showAllProjects = !showAllProjects;

projects.forEach((card, index) => {
if (index >= 3) {
if (index >= 4) {
card.style.display = showAllProjects ? '' : 'none';
}
});
Expand Down

0 comments on commit d546052

Please sign in to comment.