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: home_cover:
scheme: search # 后期将会提供多种封面方案 scheme: search # 后期将会提供多种封面方案
# height: half # full: 封面占据整个第一屏幕, half: 封面只占半个屏幕高度 # height: half # full(默认值): 首页封面占据整个第一屏幕,其他页面占半个屏幕高度, half: 所有页面都封面只占半个屏幕高度
title: "xaoxuu" title: "xaoxuu"
# logo: assets/logo.png # logo: assets/logo.png # logo和title只显示一个,若同时设置,则只显示logo
# search_placeholder: '搜索' # search_placeholder: '搜索'
# 主页封面菜单 # 主页封面菜单
features: features:

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

@ -1,23 +1,5 @@
<% if (page.prev == 0 && theme.home_cover) { %> <div class='l_main'>
<div class="home-wrapper"> <%- partial('_partial/archive') %>
<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> </div>
<%- partial('_partial/side') %>
<%- partial('_partial/footer', null, {cache: !config.relative_link}) %>

@ -2,20 +2,25 @@
<html> <html>
<%- partial('_partial/head') %> <%- partial('_partial/head') %>
<body> <body>
<% if (is_home()) { %> <% if (!page.prev && theme.home_cover) { %>
<%- body %> <div class="home-wrapper">
<% } else { %> <div class='home-cover <%- is_home() ? theme.home_cover.height : "half" %>'>
<%- partial('_partial/header', null, {cache: !config.relative_link, path: path}) %> <% if (theme.home_cover.scheme == 'search') { %>
<div class="l_body"> <%- partial('_cover/search') %>
<div class='body-wrapper clearfix'> <% } %>
<%- body %>
<script>setLoadingBarProgress(60);</script>
</div> </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> </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') %> <%- partial('_partial/scripts') %>
<script>setLoadingBarProgress(100);</script> <script>setLoadingBarProgress(100);</script>
</body> </body>

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

Loading…
Cancel
Save