博客简介
06 Jun 2014简介
博客使用 Jekyll + Github Pages 搭建 使用主题:lanyon
lanyon介绍
Lanyon is an unassuming Jekyll theme that places content first by tucking away navigation in a hidden drawer. It's based on Poole, the Jekyll butler.
- 项目地址: https://github.com/poole/lanyon
- 展示地址: http://lanyon.getpoole.com
基于lanyon的修改
在lanyona的基础上增加了三个页面
tag.md //标签页·按文章标签(tags)来进行归档
category.md //分类页· 按(category)分类名来进行归档
archive.md //归档页·按时间来进行归档
这些分类都依赖于文章页(post)头部的代码来识别,下面是示例:
layout: post //调用_layouts中的post.html作为布局模板
title: Introducing //文章标题
categories: [intro] //分类名,用于'category.md'页面的归档
tags : [intro, tag] //标签,用于'tag.md'页面的归档
使用
- 首先你需要拥有自己的Github账号并已经创建了自己的个人主页
User Pages
- 关于Github Pages的分类,请参考:User, Organization and Project Pages
- 如果你还不会创建,可以参考这个两个教程:
- 克隆项目,去除_posts下的文章,上传至你的仓库
_posts
images
目录下所有文件版权所有 未经授权请勿使用- 访问地址http://USERNAME.github.io/,其中
USERNAME
是你的Github用户名