Update: 调整 layout 和 source/css 目录结构,使其更合理
This commit is contained in:
parent
0c8ac5f2ed
commit
5e22aa8b8e
56
_config.yml
56
_config.yml
|
@ -25,3 +25,59 @@ valine:
|
|||
notify: false # mail notifier , https://github.com/xCss/Valine/wiki
|
||||
verify: false # Verification code
|
||||
placeholder: 评论一下再走吧~
|
||||
|
||||
|
||||
# ---------------------------------------------------------------
|
||||
# Font Settings
|
||||
# - Find fonts on Google Fonts (https://www.google.com/fonts)
|
||||
# - All fonts set here will have the following styles:
|
||||
# light, light italic, normal, normal italic, bold, bold italic
|
||||
# - Be aware that setting too much fonts will cause site running slowly
|
||||
# - Introduce in 5.0.1
|
||||
# ---------------------------------------------------------------
|
||||
# CAUTION! Safari Version 10.1.2 bug: https://github.com/iissnan/hexo-theme-next/issues/1844
|
||||
# To avoid space between header and sidebar in Pisces / Gemini themes recommended to use Web Safe fonts for `global` (and `logo`):
|
||||
# Arial | Tahoma | Helvetica | Times New Roman | Courier New | Verdana | Georgia | Palatino | Garamond | Comic Sans MS | Trebuchet MS
|
||||
# ---------------------------------------------------------------
|
||||
font:
|
||||
enable: false
|
||||
|
||||
# Uri of fonts host. E.g. //fonts.googleapis.com (Default).
|
||||
host:
|
||||
|
||||
# Font options:
|
||||
# `external: true` will load this font family from `host` above.
|
||||
# `family: Times New Roman`. Without any quotes.
|
||||
# `size: xx`. Use `px` as unit.
|
||||
|
||||
# Global font settings used on <body> element.
|
||||
global:
|
||||
external: true
|
||||
family: Lato
|
||||
size:
|
||||
|
||||
# Font settings for Headlines (h1, h2, h3, h4, h5, h6).
|
||||
# Fallback to `global` font settings.
|
||||
headings:
|
||||
external: true
|
||||
family:
|
||||
size:
|
||||
|
||||
# Font settings for posts.
|
||||
# Fallback to `global` font settings.
|
||||
posts:
|
||||
external: true
|
||||
family:
|
||||
|
||||
# Font settings for Logo.
|
||||
# Fallback to `global` font settings.
|
||||
logo:
|
||||
external: true
|
||||
family:
|
||||
size:
|
||||
|
||||
# Font settings for <code> and code blocks.
|
||||
codes:
|
||||
external: true
|
||||
family: Source Code Pro
|
||||
size: 14
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
</div>
|
||||
<div class="about-comments">
|
||||
<%if (page.comments) {%>
|
||||
<%- partial('valine') %>
|
||||
<%- partial('common/valine') %>
|
||||
<%}%>
|
||||
</div>
|
||||
</div>
|
|
@ -7,7 +7,7 @@
|
|||
</div>
|
||||
|
||||
<div class="article-meta-info">
|
||||
<%- partial('article-meta-info', {articleData: page, index: true}) %>
|
||||
<%- partial('common/article-meta-info', {articleData: page, index: true}) %>
|
||||
</div>
|
||||
|
||||
<div class="article-content">
|
||||
|
@ -30,7 +30,7 @@
|
|||
<% } %>
|
||||
</div>
|
||||
<div class="comment-container">
|
||||
<%- partial('valine') %>
|
||||
<%- partial('common/valine') %>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<div class="left-side-container">
|
||||
<div class="site-info-container">
|
||||
<%- partial('common/site-info') %>
|
||||
<%- partial('site-info') %>
|
||||
</div>
|
||||
<div class="footer-container">
|
||||
<%- partial('footer') %>
|
|
@ -16,7 +16,7 @@
|
|||
</div>
|
||||
|
||||
<div class="article-meta-info-container">
|
||||
<%- partial('article-meta-info', {articleData: post, index: true}) %>
|
||||
<%- partial('common/article-meta-info', {articleData: post, index: true}) %>
|
||||
</div>
|
||||
</li>
|
||||
<% }) %>
|
|
@ -5,6 +5,6 @@
|
|||
<body>
|
||||
<!-- body 表示可以显示其他页面内容(归档页面等等)-->
|
||||
<%- body %>
|
||||
<%- partial('scripts') %>
|
||||
<%- partial('common/scripts') %>
|
||||
</body>
|
||||
</html>
|
|
@ -1,7 +1,7 @@
|
|||
<!-- 通用页面模板 -->
|
||||
<div class="page-container">
|
||||
<div class="page-left animated">
|
||||
<%- partial('left-side') %>
|
||||
<%- partial('common/left-side') %>
|
||||
</div>
|
||||
<div class="page-right">
|
||||
<%- partial('right-side') %>
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
<!-- 文章页面 -->
|
||||
<%- partial('page') %>
|
|
@ -5,27 +5,27 @@
|
|||
<div class="article-post-container animated">
|
||||
<% if (is_home()) { %>
|
||||
<!-- 载入首页的内容 -->
|
||||
<%- partial('common/home-post') %>
|
||||
<%- partial('home-post') %>
|
||||
|
||||
<% } else if (is_archive()) { %>
|
||||
<!-- 载入归档页面的内容 -->
|
||||
<%- partial('common/archive-post') %>
|
||||
<%- partial('archive-post') %>
|
||||
|
||||
<% } else if (is_post()) { %>
|
||||
<!-- 载入文章页面的内容 -->
|
||||
<%- partial('common/article-post') %>
|
||||
<%- partial('article-post') %>
|
||||
|
||||
<% } else if (is_category()) { %>
|
||||
<!-- 载入分类页面的内容 -->
|
||||
<%- partial('common/category-post') %>
|
||||
<%- partial('category-post') %>
|
||||
|
||||
<% } else if (is_tag()) { %>
|
||||
<!-- 载入标签页面的内容 -->
|
||||
<%- partial('common/tag-post') %>
|
||||
<%- partial('tag-post') %>
|
||||
|
||||
<% } else if (page.title == 'about') { %>
|
||||
<!-- 载入关于页面的内容 -->
|
||||
<%- partial('common/about') %>
|
||||
<%- partial('about') %>
|
||||
<% } %>
|
||||
</div>
|
||||
</div>
|
|
@ -1,17 +1,17 @@
|
|||
@import "libs/font-awesome.min.css"
|
||||
@import "basic.styl"
|
||||
@import "animated.styl"
|
||||
@import "index.styl"
|
||||
@import "left-side.styl"
|
||||
@import "right-side.styl"
|
||||
@import "footer.styl"
|
||||
@import "common/nav.styl"
|
||||
@import "common/home-post.styl"
|
||||
@import "common/archive-post.styl"
|
||||
@import "common/article-post.styl"
|
||||
@import "common/article-meta-info.styl"
|
||||
@import "common/category-post.styl"
|
||||
@import "common/tag-post.styl"
|
||||
@import "common/site-info.styl"
|
||||
@import "layout/index.styl"
|
||||
@import "layout/right-side.styl"
|
||||
@import "layout/common/left-side.styl"
|
||||
@import "layout/common/footer.styl"
|
||||
@import "layout/common/nav.styl"
|
||||
@import "layout/home-post.styl"
|
||||
@import "layout/archive-post.styl"
|
||||
@import "layout/article-post.styl"
|
||||
@import "layout/common/article-meta-info.styl"
|
||||
@import "layout/category-post.styl"
|
||||
@import "layout/tag-post.styl"
|
||||
@import "layout/common/site-info.styl"
|
||||
@import "highlight"
|
||||
@import "variables.styl"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
//
|
||||
// =================================================
|
||||
// Variables
|
||||
// =================================================
|
||||
|
||||
|
|
Loading…
Reference in New Issue