Hexo模板

hexo-theme-hiker

头部渐变背景

themes/hiker/source/css/header-post.css

1
2
3
4
5
6
7
8
9
10
11
12
#allheader {
background: linear-gradient(120deg, #155799, #159957);
//background: transparent;
z-index: 2;
}
.navbar-default .navbar-nav > li > a {
//color: #555;
color: #FFF;
position: relative;
display: block;
padding: 15px 15px;
}

添加分类页面

1
hexo new page categories
  • 确认站点配置文件里有category_dir: categories
  • 确认主题配置文件里有categories: /categories

编辑站点的source/categories/index.md,添加

1
2
3
4
5
6
---
title: 分类
date: 2017-10-18 16:12:56
layout: "categories"
comments: false
---

添加标签页面

1
hexo new page tags
  • 确认站点配置文件里有tag_dir: tags
  • 确认主题配置文件里有tags: /tags

编辑站点的source/tags/index.md,添加

1
2
3
4
5
6
---
title: 标签
date: 2017-10-18 19:06:29
layout: "tags"
comments: false
---

文章间距

themes/hiker/source/css/_variables.styl

1
2
// Layout
block-margin = 0px

hexo-theme-yilia

Maupassant

hexo-theme-next

Concise

Powered by AppBlog.CN     浙ICP备14037229号

Copyright © 2012 - 2020 APP开发技术博客 All Rights Reserved.

访客数 : | 访问量 :