Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

需要为每个page最上面添加一个配置选项 #81

Closed
IceskYsl opened this issue Jun 30, 2014 · 1 comment
Closed

需要为每个page最上面添加一个配置选项 #81

IceskYsl opened this issue Jun 30, 2014 · 1 comment
Assignees

Comments

@IceskYsl
Copy link
Contributor

我选择用jekyll来生成页面,jekyll里面有个烦人的配置,需要在每个文件最上面加上如下信息:


---
layout: page
title: 布局模板
permalink: layout-templates.html

---

其中:
layout:全部page(对应布局模板 page
title:写你这个页面的标题(基本上就是第一行字,不要#)
permalink: 写你的文件名.html(扩展名是 html,而不是 md,Jekyll 会自动将 md 文件编译成静态的 html)

参考:
https://github.com/1sters/material_design_zh/blob/master/SOURCE/material-design/introduction.md

ps.
本来打算写个脚本自动处理的,4j说写脚本时间还不如让大家手工修改下~
如果大家有空就顺手修改下,如果没空,今天晚上我自己苦力一下~

@IceskYsl IceskYsl self-assigned this Jun 30, 2014
@krislq
Copy link
Contributor

krislq commented Jun 30, 2014

copy that .在你晚上苦力前搞好

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants