i18n
xaoxuu 5 years ago
parent 408c00be7c
commit eca482ca1f
  1. 1
      languages/en.yml
  2. 1
      languages/zh-CN.yml
  3. 1
      languages/zh-HK.yml
  4. 1
      languages/zh-TW.yml
  5. 1
      layout/_partial/footer.ejs
  6. 1
      layout/archive.ejs
  7. 1
      layout/category.ejs
  8. 29
      layout/index.ejs
  9. 2
      layout/layout.ejs
  10. 1
      layout/links.ejs
  11. 1
      layout/page.ejs
  12. 1
      layout/post.ejs
  13. 1
      layout/tag.ejs
  14. 169
      source/less/_base.less
  15. 7
      source/less/_header.less

@ -28,6 +28,7 @@ footer:
times: times
search:
placeholder: Search
placeholder_home: ' '
symbol:
comma: ", "
period: ". "

@ -28,6 +28,7 @@ footer:
times:
search:
placeholder: 搜索
placeholder_home: 'la víspera de la tormenta'
symbol:
comma: ","
period: "。"

@ -28,6 +28,7 @@ footer:
  times:
search:
placeholder: 搜尋
placeholder_home: ' '
symbol:
comma: ","
period: "。"

@ -28,6 +28,7 @@ footer:
times:
search:
placeholder: 搜尋
placeholder_home: ' '
symbol:
comma: ","
period: "。"

@ -19,3 +19,4 @@
<div><%- __('footer.use') %> <a href="https://xaoxuu.com/wiki/material-x/" target="_blank" class="codename">Material X</a> <%- __('footer.theme') %><% if (theme.services && theme.services.busuanzi == true) { %><%- __('symbol.comma') %><%- __('footer.total_views') %> <span id="busuanzi_value_site_pv"><i class="fas fa-spinner fa-spin fa-fw" aria-hidden="true"></i></span> <%- __('footer.times') %><% } %><%- __('symbol.period') %>
</div>
</footer>
<script>setLoadingBarProgress(80);</script>

@ -48,6 +48,7 @@
<% } %>
</div>
<%- partial('_partial/side') %>
<%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

@ -3,3 +3,4 @@
<%- partial('_partial/archive') %>
</div>
<%- partial('_partial/side') %>
<%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

@ -1,5 +1,26 @@
<%- partial('_partial/header', null, {cache: !config.relative_link, path: path}) %>
<div class='l_main'>
<%- partial('_partial/archive') %>
<div class='home-cover'>
<h1 class='title'>xaoxuu</h1>
<br>
<% if (theme.search.enable === true) { %>
<div class="m_search">
<form name="searchform" class="form u-search-form">
<input type="text" class="input u-search-input" placeholder="<%- __('search.placeholder_home') %>" />
<span class="icon"><i class="fas fa-search fa-fw"></i></span>
</form>
</div>
<% } %>
<div class='menu'>
<ul class='h-list'>
<% if (config.menu) { %>
<% (config.menu || []).forEach(function(value){ %>
<li>
<a id="<%= url_for(value.url).replace(/\/|%/g, "")?url_for(value.url).replace(/\/|%/g, ""):"home" %>"
class="nav flat-box" href="<%= url_for(value.url) %>">
<i class='<%= value.icon %> fa-fw'></i>&nbsp;<%= __('navbar.'+value.name) == ('navbar.'+value.name) ? value.name : __('navbar.'+value.name) %>
</a>
</li>
<%})%>
<% } %>
</ul>
</div>
</div>
<%- partial('_partial/side') %>

@ -9,8 +9,6 @@
</div>
<a class="s-top fas fa-arrow-up fa-fw" href='javascript:void(0)'></a>
</div>
<%- partial('_partial/footer', null, {cache: !config.relative_link}) %>
<script>setLoadingBarProgress(80);</script>
<%- partial('_partial/scripts') %>
<script>setLoadingBarProgress(100);</script>
</body>

@ -50,3 +50,4 @@
</div>
<%- partial('_partial/side') %>
<%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

@ -3,3 +3,4 @@
<%- partial('_partial/article', {post: page, index: false}) %>
</div>
<%- partial('_partial/side') %>
<%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

@ -3,3 +3,4 @@
<%- partial('_partial/article', {post: page, index: false}) %>
</div>
<%- partial('_partial/side') %>
<%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

@ -3,3 +3,4 @@
<%- partial('_partial/archive') %>
</div>
<%- partial('_partial/side') %>
<%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

@ -43,6 +43,167 @@ body {
}
}
.home-cover{
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100vh;
// background: white;
display: flex;
flex-wrap: wrap;
flex-direction: column;
margin-bottom: 2*@gap;
align-items: center;
align-self: center;
align-content: center;
padding: @gap;
.title{
font-size: @fontsize_h1*2;
margin-top: 25vh;
align-self: center;
}
.m_search{
margin-top: 10vh;
position: relative;
height: @height_navbar - @gap;
width: 1.2*@width_sidebar;
@media(max-width: @on_laptop){
width: 1.2*@width_sidebar_m;
}
line-height: @height_navbar - @gap;
vertical-align: middle;
.form {
position: relative;
display: block;
width: 100%;
}
.icon,.input{
.enable-trans(.1s);
}
.icon {
position: absolute;
display:block;
height: @height_navbar - @gap;
width: @height_navbar - @gap;
line-height: @height_navbar - @gap;
top: 0;
left: @gap/2;
font-size: @fontsize_base;
}
.input {
display:block;
font-size: @fontsize_base;
line-height: @height_navbar - @gap;
margin: 0;
width: 100%;
color: fade(@color_text_in_header, 60%);
padding-left: @fontsize_base + @gap - 2px;
@media(max-width: @on_phone){
padding-left: @fontsize_base + @gap - 2px;
}
height: @height_navbar - @gap;
line-height: @height_navbar - @gap;
font-family: @fontfamily_base;
border: none;
border-radius: @border_radius_searchbar;
background: fade(@theme_cardbg, 15%);
box-sizing: border-box;
-webkit-appearance: none;
box-shadow: none;
border: 1px dashed transparent;
.enable-trans();
~ .icon{
color: fade(@color_text_in_header, 60%);
}
.set-placeholder({color: fade(@color_text_in_header, 60%)});
&:hover{
border: 1px dashed fade(@color_text_in_header, 60%);
}
&:focus {
~ .icon{
color: @color_text_in_header;
}
color: @color_text_in_header;
border: 1px solid fade(@color_text_in_header, 60%);
// .set-placeholder({color: @black});
}
}
}
background: @theme_cardbg;
&, a{
color: @theme_main;
}
box-shadow: @boxshadow_card_normal; // 适合白色导航栏背景
.menu{
margin-top: 4vh;
ul {
display: flex;
flex-wrap: wrap;
align-items: center;
li {
display: flex;
flex-wrap: wrap;
align-items: center;
padding: 0;
height: auto;
}
}
ul > li > a{
font-size: @fontsize_small;
padding: 0 2px;
margin: 0 4px;
.enable-trans();
color: fade(@color_text_main, 70%);
border-bottom: @loading_height solid transparent;
&.current{
border-bottom: @loading_height solid fade(@theme_main, 80%);
}
&:hover{
color: @theme_main;
border-bottom: @loading_height solid @theme_main;
}
&:active,&.active{
color: @theme_main;
border-bottom: @loading_height solid @theme_main;
}
}
}
.switcher{
& > li{
a{
&:hover {
background: fade(@theme_main, 15%);
}
}
}
}
.m_search {
.input {
color: fade(@theme_main, 60%);
background: @theme_background;
~ .icon{
color: fade(@theme_main, 60%);
}
.set-placeholder({color: fade(@theme_main, 60%)});
&:hover{
border: 1px dashed fade(@theme_main, 60%);
}
&:focus {
~ .icon{
color: @theme_main;
}
color: @theme_main;
background: fade(@theme_main, 15%);
border: 1px solid fade(@theme_main, 60%);
}
}
}
}
.z-depth-nav {
box-shadow: 0 1px 2px 0px rgba(0, 0, 0, 0.24), 0 3px 6px 0px rgba(0, 0, 0, 0.1);
@ -197,12 +358,8 @@ img {
clear: both;
}
}
.container.clearfix{
display: flex;
@media(max-width: @on_pad) {
display: inherit;
}
}
.hidden {
text-indent: -9999px;
visibility: hidden;

@ -31,7 +31,12 @@
height: @height_navbar;
}
background: @color_bg_navbar;
&.hide{
transform: translateY(100px) scale(0);
}
&.show{
transform: translateY(0) scale(1);
}
&, a{
.txt-ellipsis;
height: @height_navbar;

Loading…
Cancel
Save