Skip to content

Commit

Permalink
refactor: simplify return logic in isInHomePaging helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanNotFound committed Jun 21, 2024
1 parent eb9ae8e commit eff5b6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/helpers/themeHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ const themeVersion = version;
hexo.extend.helper.register("isInHomePaging", function (pagePath, route) {
if (pagePath.length > 5 && route === "/") {
return pagePath.slice(0, 5) === "page/";
} else {
return false;
}

return false;
});

/* code block language display */
Expand Down

0 comments on commit eff5b6f

Please sign in to comment.