-
Notifications
You must be signed in to change notification settings - Fork 90
A1 New Post
Liucw edited this page Jul 10, 2017
·
6 revisions
有两种方法创建文章,可任选其一:
注意:文件名不要出现中文!!!
- 使用
hexo new
命令
$ hexo new "My New Post"
- 拷贝现有的文章进行修改
hexo使用markdown来编辑文章,在source目录下,拷贝任意md文件进行创建新的文章。具体可参考下hexo的官方说明
不管是哪种方法,记得修改文章头部的front-matter
数据:
title: 凹凸实验室博客V1.0.0发布
subtitle: "凹凸实验室博客是一个托管于Github的静态博客,基于HEXO搭建,主题的定做参考自future-imperfect的扁平简约,暂且命名为`o2`。"
cover: //img.aotu.io/mamboer/post-aotu.jpg
date: 2015-10-08 10:24:35
categories: 项目总结
draft: false
tags:
- Hexo
- 项目总结
author:
nick: LV主唱大人
github_name: mamboer
wechat:
share_cover: http://misc.aotu.io/pfan123/sopcast/sopcast_200x200.png
share_title: 微信分享标题
share_desc: 微信分享描述
-
使用markdown写博文
-
博文图片图床轻使用misc.aotu.io
请阅读
misc
图床的Readme文档. -
2张标准配图
- 公众号推广长图: 900x500,命名:xxx_900x500
- 公众号推广方图:200x200,命名:xxx_200x200
-
指明文章的副标题、作者信息、封面图片地址、微信分享展示信息
subtitle: "凹凸实验室博客是一个托管于Github的静态博客,基于HEXO搭建..." date: 2015-11-20 00:24:35 cover: "封面图片地址" categories: "分类是固定的,请参考首页的分类,选一个合适的!" tags: - Hexo author: nick: LV主唱大人 github_name: mamboer coeditor: name: 联合编辑团队/个人名称 url: 个人/团队/博文原文链接均可 wechat: share_cover: http://misc.aotu.io/pfan123/sopcast/sopcast_200x200.png share_title: 微信分享标题 share_desc: 微信分享描述
-
利用
<!-- more -->
设置文章的摘要示例:
title: 文章标题 --- 这部分是文章摘要,这部分是文章摘要。在hexo模版里可通过 {% raw %}{{ post.excerpt }}{% endraw %} 来引用。 <!-- more --> 这里是文章的剩余部分。在hexo模版里可通过{% raw %}{{ post.more }}{% endraw %} 来引用。
实际使用请参考本文。