Skip to content
13 changes: 12 additions & 1 deletion layout/_partial/scripts/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,18 @@
<% } %>

<% if (theme.plugins.aplayer && theme.plugins.aplayer.enable) { %>
<%- partial('../../_plugins/aplayer/script') %>
<% if (!is_post() && !is_page()) { %>
<%- partial('../../_plugins/aplayer/script') %>
<%- partial('../../_plugins/aplayer/layout', { post: page }) %>
<% } %>
<% if (is_post() || is_page()) { %>
<% if (!page.music) { %>
<%- partial('../../_plugins/aplayer/script') %>
<%- partial('../../_plugins/aplayer/layout', { post: page }) %>
<% } else { %>
<%- partial('../../_plugins/aplayer/script') %>
<% } %>
<% } %>
<% } %>

<%
Expand Down