i18n
xaoxuu 6 years ago
parent c68854be8d
commit 8200dd8f79
  1. 5
      layout/_partial/article.ejs
  2. 2
      layout/_partial/post.ejs
  3. 24
      layout/_widget/author.ejs
  4. 7
      source/less/_article.less
  5. 3
      source/less/_widget.less

@ -8,7 +8,7 @@
<% } %> <% } %>
</h1> </h1>
<time> <time>
<%= date(post.date, config.date_format) %>&nbsp;&nbsp; <i class="fa fa-calendar fa-fw" aria-hidden="true"></i>&nbsp;<%= date(post.date, config.date_format) %>&nbsp;&nbsp;
<i class="fa fa-eye fa-fw" aria-hidden="true"></i>&nbsp;<span id="busuanzi_value_page_pv"><i class="fa fa-spinner fa-spin fa-fw" aria-hidden="true"></i></span> <i class="fa fa-eye fa-fw" aria-hidden="true"></i>&nbsp;<span id="busuanzi_value_page_pv"><i class="fa fa-spinner fa-spin fa-fw" aria-hidden="true"></i></span>
</time> </time>
<%- partial('categories',{post:post}) %> <%- partial('categories',{post:post}) %>
@ -117,6 +117,9 @@
<% if (config.valine){ %> <% if (config.valine){ %>
<% if (config.valine.enable && config.valine.appId && config.valine.appKey){ %> <% if (config.valine.enable && config.valine.appId && config.valine.appKey){ %>
<h4><i class="fa fa-comments fa-fw" aria-hidden="true"></i>&nbsp;Valine评论</h4> <h4><i class="fa fa-comments fa-fw" aria-hidden="true"></i>&nbsp;Valine评论</h4>
<div class="subtitle">
<h6><b>文明评论,请勿灌水。</b>为了便于区分,请您在留言时至少填写一下 <b>昵称</b> 啊。</h6>
<div>
<section id="comments"> <section id="comments">
<div id="valine_container" class="valine_thread"> <div id="valine_container" class="valine_thread">
</i><i class="fa fa-spinner fa-spin fa-fw"></i> </i><i class="fa fa-spinner fa-spin fa-fw"></i>

@ -10,7 +10,7 @@
</a> </a>
</h2> </h2>
<time> <time>
<%= date(post.date, config.date_format) %> <i class="fa fa-calendar fa-fw" aria-hidden="true"></i>&nbsp;<%= date(post.date, config.date_format) %>
</time> </time>
<%- partial('categories',{post:post}) %> <%- partial('categories',{post:post}) %>
</section> </section>

@ -5,17 +5,19 @@
<img class='avatar' src='<%= url_for(config.widgets.author.avatar || config.avatar) %>' /> <img class='avatar' src='<%= url_for(config.widgets.author.avatar || config.avatar) %>' />
</div> </div>
<%} %> <%} %>
<div class='content'> <% if (config.widgets.author.title || config.widgets.author.motto){ %>
<% if (config.widgets.author.title){ %> <div class='content'>
<h2><%= config.widgets.author.title %></h2> <% if (config.widgets.author.title){ %>
<% } %> <h2><%= config.widgets.author.title %></h2>
<% if (config.widgets.author.motto){ %> <% } %>
<div> <% if (config.widgets.author.motto){ %>
<i class="fa fa-quote-left fa-3x fa-pull-left" aria-hidden="true"></i> <div>
<%= config.widgets.author.motto %> <i class="fa fa-quote-left fa-3x fa-pull-left" aria-hidden="true"></i>
</div> <%= config.widgets.author.motto %>
<% } %> </div>
</div> <% } %>
</div>
<% } %>
<% if (config.widgets.author.social){ %> <% if (config.widgets.author.social){ %>
<div class="social-wrapper"> <div class="social-wrapper">
<% (config.social||[]).forEach(function(value){ %> <% (config.social||[]).forEach(function(value){ %>

@ -138,11 +138,14 @@
} }
h6 { h6 {
color: fade(@theme_text_main, 75%); color: fade(@theme_text_main, 75%);
font-size: @fontsize_h6; font-size: @fontsize_h6;
} }
.subtitle{
h6 {
color: fade(@theme_text_main, 90%);
}
}
figure { figure {
figcaption { figcaption {
span { span {

@ -104,6 +104,7 @@
} }
.content{ .content{
font-weight: bold; font-weight: bold;
padding-bottom: 0;
@media(max-width: @on_phone){ @media(max-width: @on_phone){
padding: @gap/2 @gap; padding: @gap/2 @gap;
} }
@ -112,7 +113,7 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
flex-wrap: wrap; flex-wrap: wrap;
padding-top: 0; padding-top: @gap/2;
padding-bottom: @gap/2; padding-bottom: @gap/2;
a { a {
color: fade(@theme_text_main, 70%); color: fade(@theme_text_main, 70%);

Loading…
Cancel
Save