Hexo模板

hexo-theme-hiker

头部渐变背景

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

#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;
}

添加分类页面

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

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

---
title: 分类
date: 2017-10-18 16:12:56
layout: "categories"
comments: false
---

添加标签页面

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

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

---
title: 标签
date: 2017-10-18 19:06:29
layout: "tags"
comments: false
---

文章间距

themes/hiker/source/css/_variables.styl

// Layout
block-margin = 0px

文章太长自动生成的目录无法滚动

themes/hiker/source/css/_partial/article.styl

/* 搜索,修改#toc参数,添加height属性,参数都缩进两位,该注释删除 */
#toc
  height: 90%

/* #toc 后增加以下两个样式, 用于修改滑块、滑条样式,该注释删除 */
#toc::-webkit-scrollbar
  background-color: #ece9e9
  -webkit-border-radius: 2em
  -moz-border-radius: 2em
  border-radius: 2px
  width: 5px

#toc::-webkit-scrollbar-thumb
  border-radius: 4px
  background: rgba(0,0,0,0.3)
  -webkit-box-shadow: inset 0 0 6px RGB(243, 243, 244)

hexo-theme-yilia

Maupassant

hexo-theme-next

Concise

上一篇 运维相关文档记录
下一篇 Thymeleaf字符串拼接
目录
文章列表
1 vue-cli域名访问Invalid Host header
vue-cli域名访问Invalid Host header
2
VirtualBox采坑记录
VirtualBox采坑记录
3
Spring Boot中Aspect实现切面(以记录日志为例)
Spring Boot中Aspect实现切面(以记录日志为例)
4
Android软键盘显示隐藏事件监听
Android软键盘显示隐藏事件监听
5
React Native学习之调用原生方法的步骤
React Native学习之调用原生方法的步骤
最新评论
一位WordPress评论者
一位WordPress评论者
2月12日
您好,这是一条评论。若需要审核、编辑或删除评论,请访问仪表盘的评论界面。评论者头像来自 Gravatar。