i18n
xaoxuu 6 years ago
parent 8e9c814dd4
commit 8e810dd5d0
  1. 53
      _config.yml
  2. 2
      layout/_partial/head.ejs
  3. 2
      layout/_widget/categories.ejs
  4. 2
      layout/_widget/socials.ejs
  5. 2
      layout/_widget/tagcloud.ejs
  6. 15
      layout/archive.ejs
  7. 3
      source/less/_archive.less
  8. 16
      source/less/_article.less
  9. 12
      source/less/_base.less
  10. 2
      source/less/_defines.less
  11. 17
      source/less/_normalize.less
  12. 6
      source/less/_search.less

@ -18,33 +18,34 @@ search:
# friends link
links:
# navigation menu
menu:
- name: blogs
- name: 主页
slug: about
fa: home
url: https://xaoxuu.com
- name: 博客
slug: home
fa: rss
url: /
- name: archives
- name: 归档
slug: archives
fa: archive
url: /archives
- name: projects
- name: 项目
slug: projects
fa: cube
url: http://xaoxuu.com/index.html#proj
# - name: DOWNLOADS
# slug: download
# fa: download
# url: http://download.xaoxuu.com
url: https://xaoxuu.com/proj
- name: 下载
slug: download
fa: download
url: https://xaoxuu.com/dl
# - name: 留言
# slug: comments
# url: http://xaoxuu.com/index.html#disqus
- name: about
slug: about
fa: user
url: http://xaoxuu.com
# - name: 后台
# - name: admin
# slug: login
# fa: lock
# url: /admin
@ -64,18 +65,19 @@ less:
# use url, not username
social:
- slug: rss
url: /atom.xml
- slug: envelope
url: mailto:me@xaoxuu.com
- slug: github
url: https://github.com/xaoxuu
- slug: instagram
url: https://www.instagram.com/xaoxuu
- slug: dribbble
url: https://www.dribbble.com/xaoxuu
- slug: google-plus
url: https://plus.google.com/u/0/105328339611794285997
- slug: twitter
url: https://twitter.com/xaoxuu
- slug: music
url: https://music.163.com/#/user/home?id=63035382
@ -83,15 +85,12 @@ contacts:
- name: Email
badget: me@xaoxuu.com
url: mailto:me@xaoxuu.com
- name: RSS
badget: subscribe me
url: /atom.xml
- name: GitHub
badget: "@xaoxuu"
url: https://github.com/xaoxuu
- name: Instagram
badget: "@xaoxuu"
url: https://www.instagram.com/xaoxuu
- name: Twitter
badget: "@xaoxuu"
url: https://www.twitter.com/xaoxuu
# - name: Instagram
# badget: "@xaoxuu"
# url: https://www.instagram.com/xaoxuu
# - name: Twitter
# badget: "@xaoxuu"
# url: https://www.twitter.com/xaoxuu

@ -31,6 +31,8 @@
fb_admins: theme.fb_admins,
fb_app_id: theme.fb_app_id}) %>
<link rel="shortcut icon" href="<%= config.shortcut_icon %>" />
<link rel="icon" href="<%= config.favicon %>" />
<link href="https://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Inconsolata|Titillium+Web" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono" rel="stylesheet">

@ -1,5 +1,5 @@
<section class='m_widget categories'>
<div class='header'>CATEGORIES</div>
<div class='header'>分类</div>
<div class='content'>
<% if (site.categories.length){ %>
<ul class="entry">

@ -1,5 +1,5 @@
<section class='m_widget socials'>
<div class='header'>CONTACTS</div>
<div class='header'>联系</div>
<div class='content'>
<ul class="entry">
<% (theme.contacts||[]).forEach(function(item){ %>

@ -1,6 +1,6 @@
<% if (site.tags.length){ %>
<div class="m_widget tagcloud">
<div class="header">TAGS</div>
<div class="header">标签</div>
<div class='content'>
<%- tagcloud(site.tags, {
min_font: 14,

@ -2,13 +2,13 @@
<%- partial('_partial/archive') %>
<% } else { %>
<article id="archive-page" class="post article white-box">
<section class='meta'>
<!-- <section class='meta'>
<h2 class="title">
<a href="javascript:void(0)">
archives
</a>
</h2>
</section>
</section> -->
<section class="archive">
<%
var year = -1, postid = -1;
@ -18,9 +18,14 @@
year = post.year;
%>
<div class="archive-item archive-year mark">
<a id="archive-year-<%= year %>" href='<%= url_for("/archives/" + year + "/") %>' >
<h2>
<!-- <a id="archive-year-<%= year %>" href='<%= url_for("/archives/" + year + "/") %>' >
</a> -->
<%= year %>
</a>
</h2>
<hr>
</div>
<% } %>
@ -44,7 +49,9 @@
<%})%>
</div>
<% }); %>
</section>
</article>
<!-- <article id="archive-page" class="post article white-box">

@ -5,6 +5,9 @@
.archive-year {
font-size: @base-font-size;
margin: 1em 0;
h2 {
}
a {
color: @text-color;
text-decoration: none;

@ -137,9 +137,10 @@
position: relative;
width: 100%;
font-size: @small-font-size;
background: @qoute-background-color;
// background: @qoute-background-color;
background: fade(@primary-color, 10%);
margin: 1em 0;
padding: 1.5em 1.5em .5em 1.5em;
padding: 1.5em 1.5em .9em 1.5em;
border-left: 4px solid @primary-color;
border-top-right-radius: 8px;
border-bottom-right-radius: 8px;
@ -223,17 +224,18 @@
}
}
}
table:not('.highlight table') {
width: 100%;
td,
th {
padding: 12px 24px
padding: 12px 24px;
}
tr {
border-bottom: 1px solid #ddd;
// border-bottom: 1px solid #ddd;
}
&>thead>th {
border-bottom-width: 2px;
// border-bottom-width: 2px;
}
}
@media (max-width: @on-phone) {
@ -316,9 +318,9 @@
font-size: @small-font-size * .95;
font-family:@code-font-family;
line-height: @base-line-height;
// border: 1px solid #ccc;
padding: 1.5em 0;
border-radius: 8px;
.gutter{
color: #999999;
padding-right: 20px;
@ -326,7 +328,9 @@
}
.code{
vertical-align: top;
border: 0px solid darken(@background-color, 5%);
}
&::-webkit-scrollbar {
height: 6px;
width: 6px;

@ -317,19 +317,19 @@ ul.h-list {
*/
#loading-bar-wrapper {
position: absolute;
width: 100%;
top: 0;
position: fixed;
top: @header-height - 2;
left: 0;
overflow: visible;
width: 100%;
// overflow: scroll;
z-index: 99999;
}
#loading-bar {
position: relative;
position: fixed;
width: 0;
height: 2px;
background-color: fade(@white, 60%);
background-color: fade(@white, 100%);
.enable-trans();
}

@ -43,7 +43,7 @@
@material-amber: #F6C344;
@material-ax-red: #F05153;
@material-ax-blue: #2CA3FF;
@material-ax-blue: #52A1F8;
// Social Networks Brand color
@github-color: #467cc2;

@ -418,7 +418,22 @@ optgroup {
table {
border-collapse: collapse;
border-spacing: 0;
width: 100%;
th {
background-color: lighten(@background-color, 1%);
}
td,
th {
padding: 4px 8px;
border: 1px solid darken(@background-color, 5%);
}
tr {
// border-bottom: 2px solid #eee;
// background-color: @qoute-background-color;
}
&>thead>th {
// border-bottom-width: 2px;
}
}
td,

@ -85,8 +85,8 @@
}
.modal-loading {
position: absolute;
bottom: -2px;
left: 0px;
bottom: 0;
left: 0;
width: 100%;
height: 2px;
background: transparent;
@ -97,7 +97,7 @@
position: relative;
width: 0%;
height: 100%;
background: fade(@white, 70%);
background: fade(@white, 100%);
.enable-trans();
}
}

Loading…
Cancel
Save