Skip to content

Commit e433cf7

Browse files
authored
fix: Aplayer显示问题 (#939)
1 parent 0df39f6 commit e433cf7

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

layout/_partial/scripts/index.ejs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,18 @@
5757
<% } %>
5858

5959
<% if (theme.plugins.aplayer && theme.plugins.aplayer.enable) { %>
60-
<%- partial('../../_plugins/aplayer/script') %>
60+
<% if (!is_post() && !is_page()) { %>
61+
<%- partial('../../_plugins/aplayer/script') %>
62+
<%- partial('../../_plugins/aplayer/layout', { post: page }) %>
63+
<% } %>
64+
<% if (is_post() || is_page()) { %>
65+
<% if (!page.music) { %>
66+
<%- partial('../../_plugins/aplayer/script') %>
67+
<%- partial('../../_plugins/aplayer/layout', { post: page }) %>
68+
<% } else { %>
69+
<%- partial('../../_plugins/aplayer/script') %>
70+
<% } %>
71+
<% } %>
6172
<% } %>
6273

6374
<%

0 commit comments

Comments
 (0)