i18n
xaoxuu 5 years ago
parent 3621331ce1
commit 84dd201daf
  1. 4
      _config.yml
  2. 2
      layout/_cover/search.ejs
  3. 26
      layout/index.ejs
  4. 27
      layout/layout.ejs
  5. 2
      source/less/_base.less

@ -49,9 +49,9 @@ updated_date_format: 'llll' # 文章更新日期的格式
# 主页封面
home_cover:
scheme: search # 后期将会提供多种封面方案
# height: half # full: 封面占据整个第一屏幕, half: 封面只占半个屏幕高度
# height: half # full(默认值): 首页封面占据整个第一屏幕,其他页面占半个屏幕高度, half: 所有页面都封面只占半个屏幕高度
title: "xaoxuu"
# logo: assets/logo.png
# logo: assets/logo.png # logo和title只显示一个,若同时设置,则只显示logo
# search_placeholder: '搜索'
# 主页封面菜单
features:

@ -12,7 +12,7 @@
</form>
</div>
<% } %>
<div class='menu'>
<div class='menu navgation'>
<ul class='h-list'>
<% if (theme.home_cover.features) { %>
<% (theme.home_cover.features || []).forEach(function(value){ %>

@ -1,23 +1,5 @@
<% if (page.prev == 0 && theme.home_cover) { %>
<div class="home-wrapper">
<div class='home-cover <%- theme.home_cover.height %>'>
<% if (theme.home_cover.scheme == 'search') { %>
<%- partial('_cover/search') %>
<% } %>
</div>
<%- partial('_partial/header', null, {cache: !config.relative_link, path: path}) %>
</div>
<% } else { %>
<%- partial('_partial/header', null, {cache: !config.relative_link, path: path}) %>
<% } %>
<div class="l_body" id='posts'>
<div class='body-wrapper clearfix'>
<div class='l_main'>
<%- partial('_partial/archive') %>
</div>
<%- partial('_partial/side') %>
<%- partial('_partial/footer', null, {cache: !config.relative_link}) %>
<script>setLoadingBarProgress(60);</script>
</div>
<a class="s-top fas fa-arrow-up fa-fw" href='javascript:void(0)'></a>
<div class='l_main'>
<%- partial('_partial/archive') %>
</div>
<%- partial('_partial/side') %>
<%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

@ -2,20 +2,25 @@
<html>
<%- partial('_partial/head') %>
<body>
<% if (is_home()) { %>
<%- body %>
<% } else { %>
<%- partial('_partial/header', null, {cache: !config.relative_link, path: path}) %>
<div class="l_body">
<div class='body-wrapper clearfix'>
<%- body %>
<script>setLoadingBarProgress(60);</script>
<% if (!page.prev && theme.home_cover) { %>
<div class="home-wrapper">
<div class='home-cover <%- is_home() ? theme.home_cover.height : "half" %>'>
<% if (theme.home_cover.scheme == 'search') { %>
<%- partial('_cover/search') %>
<% } %>
</div>
<a class="s-top fas fa-arrow-up fa-fw" href='javascript:void(0)'></a>
<%- partial('_partial/header', null, {cache: !config.relative_link, path: path}) %>
</div>
<% } else { %>
<%- partial('_partial/header', null, {cache: !config.relative_link, path: path}) %>
<% } %>
<div class="l_body">
<div class='body-wrapper clearfix'>
<%- body %>
<script>setLoadingBarProgress(60);</script>
</div>
<a class="s-top fas fa-arrow-up fa-fw" href='javascript:void(0)'></a>
</div>
<%- partial('_partial/scripts') %>
<script>setLoadingBarProgress(100);</script>
</body>

@ -180,7 +180,7 @@ fancybox{
.enable-trans();
color: fade(@color_text_main, 70%);
border-bottom: 1px solid transparent;
&:hover{
&:hover, &.active{
color: @theme_main;
border-bottom: 1px solid @theme_main;
}

Loading…
Cancel
Save