feat: Music
This commit is contained in:
16
layout/_partial/music.ejs
Normal file
16
layout/_partial/music.ejs
Normal file
@@ -0,0 +1,16 @@
|
||||
<div id="music">
|
||||
<%# "bottom:120px; left:auto;position:fixed; width:85%" %>
|
||||
<% var defaultHeight = theme.music.type == 1 ? '32' : '66'; %>
|
||||
<% var defaultIframeHeight = theme.music.type == 1 ? '52' : '86'; %>
|
||||
<iframe frameborder="no" border="1" marginwidth="0" marginheight="0" width="200" height="<%=defaultIframeHeight%>"
|
||||
src="//music.163.com/outchain/player?type=2&id=<%=theme.music.id||518895142%>&auto=<%=theme.music.autoPlay?1:0%>&height=<%=defaultHeight%>"></iframe>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
#music {
|
||||
position: fixed;
|
||||
right: 15px;
|
||||
bottom: 0;
|
||||
z-index: 998;
|
||||
}
|
||||
</style>
|
@@ -5,15 +5,19 @@
|
||||
<main class="content">
|
||||
<%- body %>
|
||||
<%- partial('_partial/footer', null, {cache: !config.relative_link}) %>
|
||||
<div class="to_top">
|
||||
<div class="to_top">
|
||||
<%- partial('_partial/totop') %>
|
||||
</div>
|
||||
</main>
|
||||
<aside class="sidebar">
|
||||
<%- partial('_partial/sidebar') %>
|
||||
</aside>
|
||||
<%- partial('_partial/modal') %>
|
||||
<%- partial('_partial/after-footer') %>
|
||||
<aside class="sidebar">
|
||||
<%- partial('_partial/sidebar') %>
|
||||
</aside>
|
||||
<%- partial('_partial/modal') %>
|
||||
<%- partial('_partial/after-footer') %>
|
||||
|
||||
<% if (theme.music&&theme.music.enable){ %>
|
||||
<%- partial('_partial/music') %>
|
||||
<% } %>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
|
Reference in New Issue
Block a user