From 948f7e50034c1651f8ecd24faaf2cc2016bb3a43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E4=BA=91=E8=8B=8D=E7=8B=97?= Date: Thu, 14 Mar 2024 11:12:33 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20=E6=B7=BB=E5=8A=A0=20head?= =?UTF-8?q?=E3=80=81script=20=E5=9D=97=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/hexo-theme-async/_config.yml | 6 +++++- packages/hexo-theme-async/layout/layout.ejs | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/hexo-theme-async/_config.yml b/packages/hexo-theme-async/_config.yml index a0d3d654..4d7b34dd 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 33750413..863a992f 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) %>