文章内音乐

i18n
xaoxuu 6 years ago
parent 5616ace595
commit 9732e9cb34
  1. 14
      layout/_partial/article.ejs
  2. 21
      source/less/_main.less

@ -1,5 +1,14 @@
<article id="<%= post.layout %>-<%= post.slug %>" class="post white-box article-type-<%= post.layout %>" itemscope itemprop="blogPost"> <article id="<%= post.layout %>-<%= post.slug %>" class="post white-box article-type-<%= post.layout %>" itemscope itemprop="blogPost">
<section class='meta'> <section class='meta'>
<% if(post.music){ %>
<div class="aplayer" data-mini=true
data-mode="circulation" data-volume="0.5"
data-server="<%= post.music.server %>"
data-type="<%= post.music.type %>"
data-id="<%= post.music.id %>">
</div>
<% } %>
<div class="meta" id="header-meta">
<% if(post.title){ %> <% if(post.title){ %>
<h1 class="title"><%= post.title %></h1> <h1 class="title"><%= post.title %></h1>
<% } else if (post.date) { %> <% } else if (post.date) { %>
@ -22,6 +31,7 @@
<% } %> <% } %>
<%- partial('categories',{post:post}) %> <%- partial('categories',{post:post}) %>
</div>
</section> </section>
<section class="article typo"> <section class="article typo">
@ -30,7 +40,7 @@
<%- post.content %> <%- post.content %>
</div> </div>
<section class='meta'> <section class='meta' id="footer-meta">
<time class="time" itemprop="dateUpdated" datetime="<%- moment(post.updated).format() %>" content="<%- date(post.updated, config.date_format) %>"> <time class="time" itemprop="dateUpdated" datetime="<%- moment(post.updated).format() %>" content="<%- date(post.updated, config.date_format) %>">
<i class="fas fa-pen fa-fw" aria-hidden="true"></i> <i class="fas fa-pen fa-fw" aria-hidden="true"></i>
本文最后更新于:<%- date(post.updated, config.date_format) %> 本文最后更新于:<%- date(post.updated, config.date_format) %>
@ -151,7 +161,7 @@
<div> <div>
<section id="comments"> <section id="comments">
<div id="valine_container" class="valine_thread"> <div id="valine_container" class="valine_thread">
</i><i class="fas fa-spinner fa-spin fa-fw"></i> <i class="fas fa-spinner fa-spin fa-fw"></i>
</div> </div>
</section> </section>
<script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script> <script src="//cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>

@ -215,13 +215,24 @@
} }
.meta { .meta {
color: fade(@theme_text_main, 70%); color: fade(@theme_text_main, 70%);
margin-top: 2*@gap; &#header-meta{
margin-bottom: 0.5*@gap; margin-top: 0;
margin-bottom: 1*@gap;
}
&#footer-meta{
margin-top: 2*@gap;
margin-bottom: 0.5*@gap;
}
font-size: @fontsize_small * .95; font-size: @fontsize_small * .95;
&:first-child{ .aplayer{
margin-top: 0; width: 65px;
margin-bottom: 1*@gap; height: 65px;
border-radius: 100px;
float: right;
margin: 4px;
} }
.title { .title {
left: 0; left: 0;
font-size: @fontsize_article_title; font-size: @fontsize_article_title;

Loading…
Cancel
Save