I know there has been a question like this, but mine is a little different, and it already works, but I don't know how to simplify it.
if (location.pathname === `/` || location.pathname ===`/kurikulum/` || location.pathname === `/pengembangan-diri/` || location.pathname === `/statistik/` || location.pathname === `/teknologi/` || location.pathname === `/ekonomi/` || location.pathname === `/desain/` || location.pathname === `/corona/`)
as you can see it is not beautiful, I wonder can we make it without repeating location.pathname?
this is on gatsby, but it is a javascript question