cdlug.github.io

new blog site of Chengdu GNU/Linux User Group

Hello cdlug web wave 3

http://cdlug.org

  • powered by Jekyll,
  • theme copied from hardenedlinux.org

提交文章方法 A

使用 github 的在线编辑器。

  • 打开 _posts 文件夹
  • 点击[Create new file]新建一个文章
  • 输入文件名, 比如 _posts/ 2016-06-01-happy_children's_day.md
  • 编辑文件内容, 在头部写上这样的内容方便处理
---
layout: post
title: Happy children's day
author: cdlug
---
  • 编辑过程中使用[Preview] 预览效果
    • 未输入文件名不能预览
  • 页面最下面Commit changes 下面和平时提交一样添加一些提交信息
  • 然后根着向导,生成一个 Pull request

提交文章方法 B

使用 git clone 到本地编辑, 已经选择 B 方法的亲,操作应该没啥说的了。 两点提醒

  • _posts 目录中创建的文章需要以 ISO 格式日期开头 2016-06-01-happy_children's_day.md
  • 可以试 ./newpost.sh 脚本,生成一个文件模板

另: markdown 语法参考