Skip to content

Commit

Permalink
chore(hexo): reduce default layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
ourai committed Apr 7, 2023
1 parent b88d662 commit db39681
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/hexo/themes/lime/layout/_ksio/layouts/hack.ejs
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<% const layoutParts = (page.layout || '').split('/') %>
<% if (layoutParts.length > 1) { %>
<%- partial(layoutParts[0] === 'ksio' ? `_ksio/layouts/${layoutParts.slice(1).join('/')}` : layoutParts.join('/')) %>
<% } else if (is_home()) { %>
<%- partial('_ksio/layouts/index') %>
<% } else if (is_post()) { %>
<%- partial('_ksio/layouts/post') %>
<% } else { %>
<%- partial('_ksio/layouts/page') %>
<% } %>
2 changes: 1 addition & 1 deletion src/hexo/themes/lime/layout/index.ejs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<%- partial('_ksio/layouts/index') %>
<%- partial('_ksio/layouts/hack') %>
1 change: 0 additions & 1 deletion src/hexo/themes/lime/layout/page.ejs

This file was deleted.

1 change: 0 additions & 1 deletion src/hexo/themes/lime/layout/post.ejs

This file was deleted.

0 comments on commit db39681

Please sign in to comment.