diff --git a/packages/hexo-theme-async/_config.yml b/packages/hexo-theme-async/_config.yml index a0d3d65..4d7b34d 100644 --- a/packages/hexo-theme-async/_config.yml +++ b/packages/hexo-theme-async/_config.yml @@ -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 @@ -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 \ No newline at end of file + page_tag: _partial/page/tag + # other + script: _partial/script + head: _partial/head \ No newline at end of file diff --git a/packages/hexo-theme-async/layout/layout.ejs b/packages/hexo-theme-async/layout/layout.ejs index 3375041..863a992 100644 --- a/packages/hexo-theme-async/layout/layout.ejs +++ b/packages/hexo-theme-async/layout/layout.ejs @@ -2,7 +2,7 @@ - <%- partial('./_partial/head') %> + <%- partial(theme.layout.head) %> @@ -37,8 +37,8 @@ - <%- partial('./_widget/search') %> - <%- partial('./_partial/script') %> + <%- partial(theme.layout.search) %> + <%- partial(theme.layout.script) %>