Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
blog
提交
77c9c075
B
blog
项目概览
openeuler
/
blog
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
B
blog
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
77c9c075
编写于
2月 14, 2020
作者:
Z
ZhengyuhangHans
提交者:
Gitee
2月 14, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update content/guidance/index_.md.
上级
87a37b1b
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
65 addition
and
0 deletion
+65
-0
content/guidance/index_.md
content/guidance/index_.md
+65
-0
未找到文件。
content/guidance/index_.md
浏览文件 @
77c9c075
+++
title = "Guidance"
+++
## 前期准备
1.
注册码云账号,请参考
[
http://git.mydoc.io/?t=179267
](
http://git.mydoc.io/?t=179267
)
。
2.
设置主邮箱,进入邮箱页面
[
https://gitee.com/profile/emails
](
https://gitee.com/profile/emails
)
配置个人主邮箱。
3.
签署CLA,进入CLA签署页面
[
https://openeuler.org/zh/cla.html
](
https://openeuler.org/zh/cla.html
)
,填写必填信息签署CLA。
4.
准备GIT环境,详细参见:
[
http://git.mydoc.io/?t=180692
](
http://git.mydoc.io/?t=180692
)
。
## 编写博客内容
博客采用MD(markdown)格式编写、组织内容,博客内容由两部分组成,博客描述信息和博客内容,其中博客描述信息包含如下几部分:
-
banner: 一个用于呈现博客内容简要的图片,这个图片将会在博客列表中显示出来。
-
title: 博客标题。
-
summary: 博客内容的精简描述。
-
author: 该博客的作者。
-
tags: 博客的标签
-
archives: 该博客发布的年月份,用于首页上的分类显示。
-
date: 博客发布日期。
样例如下:
```
+++
banner = "img/banners/banner-1.jpg"
title = "openEuler 线下活动介绍"
date = "2019-10-10"
tags = ["meetup"]
archives = "2019.10"
author = "user1"
summuary = "openEuler第一次线下活动将在北京举行。"
+++
此处为博客内容.
```
## 上传博客
博客系统采用码云的PR模式上传(提交)博客,步骤如下:
1.
Fork 博客工程
[
https://gitee.com/openeuler/blog
](
https://gitee.com/openeuler/blog
)
, Fork方法参见
[
http://git.mydoc.io/?t=153749
](
http://git.mydoc.io/?t=153749
)
。
2.
使用git,在本地机器上clone 码云上fork出来的工程。
```
git clone https://gitee.com/<your-id>/blog
```
4.
创建git分支
```
git checkout -b <branch-name>
```
6.
将博客内容放置在content
\p
ost目录下。
7.
保存到git并提交到码云
```
git add <file-path>
git commit -m "<message>"
git push origin <branch-name>:<branch-name>
```
8.
创建PR,详细参见
[
http://git.mydoc.io/?t=153749
](
http://git.mydoc.io/?t=153749
)
--
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录