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>
<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>
</time>
<%- partial('categories',{post:post}) %>
@ -117,6 +117,9 @@
<% if (config.valine){ %>
<% 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>
<div class="subtitle">
<h6><b>文明评论,请勿灌水。</b>为了便于区分,请您在留言时至少填写一下 <b>昵称</b> 啊。</h6>
<div>
<section id="comments">
<div id="valine_container" class="valine_thread">
</i><i class="fa fa-spinner fa-spin fa-fw"></i>

@ -10,7 +10,7 @@
</a>
</h2>
<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>
<%- partial('categories',{post:post}) %>
</section>

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

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

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

Loading…
Cancel
Save