Skip to content

Commit

Permalink
✨ feat: 添加 head、script 块配置
Browse files Browse the repository at this point in the history
  • Loading branch information
白云苍狗 committed Mar 14, 2024
1 parent 794b1b4 commit 948f7e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion packages/hexo-theme-async/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ layout:
fixed_btn: _widget/fixed-btn
post_toc: _widget/post-toc
about_card: _widget/about-card
search: _widget/search
sidebar_user: _partial/sidebar/card/user
sidebar_social: _partial/sidebar/card/social
sidebar_info: _partial/sidebar/card/info
Expand All @@ -381,4 +382,7 @@ layout:
page_index: _partial/page/index
page_links: _partial/page/links
page_post: _partial/page/post
page_tag: _partial/page/tag
page_tag: _partial/page/tag
# other
script: _partial/script
head: _partial/head
6 changes: 3 additions & 3 deletions packages/hexo-theme-async/layout/layout.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="<%- config.language %>">

<head>
<%- partial('./_partial/head') %>
<%- partial(theme.layout.head) %>
</head>

<body>
Expand Down Expand Up @@ -37,8 +37,8 @@
</div>
<!-- app wrapper end -->

<%- partial('./_widget/search') %>
<%- partial('./_partial/script') %>
<%- partial(theme.layout.search) %>
<%- partial(theme.layout.script) %>

</body>

Expand Down

0 comments on commit 948f7e5

Please sign in to comment.