update layout

i18n
xaoxuu 5 years ago
parent b5d4f5bc09
commit a21cdb3dbf
  1. 4
      _config.yml
  2. 4
      layout/_partial/post.ejs

@ -50,7 +50,7 @@ backstretch:
duration: 6000 # 持续时间(毫秒)
fade: 2500 # 渐变(毫秒)
images:
- https://img.vim-cn.com/6d/a0c9e6f9efad8b731cb7376504bd10d79d2053.jpg
- https://img.vim-cn.com/29/91197b04c13f512f734a76d4ac422d89dbe229.jpg
@ -58,7 +58,7 @@ backstretch:
# page的封面
cover:
scheme: search # 后期将会提供多种封面方案
# height: half # full(默认值): 首页封面占据整个第一屏幕,其他页面占半个屏幕高度, half: 所有页面都封面都只占半个屏幕高度
height: half # full(默认值): 首页封面占据整个第一屏幕,其他页面占半个屏幕高度, half: 所有页面都封面都只占半个屏幕高度
title: "Material X"
# logo: assets/logo.png # logo和title只显示一个,若同时设置,则只显示logo
# search_placeholder: '搜索'

@ -2,8 +2,8 @@
<%- partial('meta',{post:post, position:'header'}) %>
<section class="article typo">
<div class="article-entry" itemprop="articleBody">
<%- post.excerpt || post.description || post.content %>
<% if (post.readmore != false && (post.excerpt || post.description)) { %>
<%- post.excerpt || post.description %>
<% if (post.readmore != false && post.path) { %>
<div class="readmore">
<a href="<%- url_for(post.path) %>" class="flat-box">
<i class="fas fa-book-open fa-fw" aria-hidden="true"></i>

Loading…
Cancel
Save