Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Jenkins 中文社区
Tekton-Website
提交
32d804a4
T
Tekton-Website
项目概览
Jenkins 中文社区
/
Tekton-Website
大约 1 年 前同步成功
通知
1
Star
60
Fork
130
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Tekton-Website
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
32d804a4
编写于
11月 09, 2022
作者:
G
Geri Ochoa
提交者:
tekton-robot
11月 14, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Create blog contributions guidelines
Create a new entry for blog posts in the contribution guidelines section.
上级
29ed4d77
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
95 addition
and
0 deletion
+95
-0
content/en/docs/Contribute/blog-guidelines.md
content/en/docs/Contribute/blog-guidelines.md
+95
-0
未找到文件。
content/en/docs/Contribute/blog-guidelines.md
0 → 100644
浏览文件 @
32d804a4
<!--
---
title: "Create a blog post"
linkTitle: "Create a blog post"
weight: 6
description: >
Contributions to the Tekton blog are welcome!
---
-->
If you have an interesting, fun, or practical idea that you want to share with the
world, you can write a blog post about it!
Blog posts don't have to follow strict writing rules or styles. They are a good
place for you to have fun talking about Tekton.
This is how:
## Set up a local version of the website
1.
[
Fork
][]
the
[
documentation repository
][
docs-repo
]
.
1.
Clone the repository to your computer:
```bash
git clone https://github.com/<your-git-username>/website.git
```
1. [Install Docker Compose][docker-compose], if it's not already installed on
your computer.
1. Change directory to the repository root and run the website server:
```
bash
cd website
docker-compose up
```
And wait for the confirmation message to pop up:
```
┌─────────────────────────────────────────────────┐
│ │
│ ◈ Server now ready on http://localhost:8888 │
│ │
└─────────────────────────────────────────────────┘
```
Keep the server running while you write your post. Press *Ctrl + C* to stop
it.
1. Open your browser and go to `http://localhost:8888`.
## Draft your blog post
1. Create a folder under `content/en/blog/<year>/` with a descriptive name.
Lower case, use dashes to separate words.
1. Inside the newly created folder, create a file and add a [front matter][]
with the following format:
```
yaml
---
title: Title
likTitle: Title
date:
<date
,
for
example
2022
-10-26
>
author: "Author name"
description: >
A heading sentence about your post
---
```
1. Save the file as `index.md`. As soon as you save it a new blog entry is now
visible on your browser.
1. Below the front matter, write to your heart's content. Every time you save,
the server automatically builds the page and shows the changes.
If you need some inspiration, you can find examples on the [website
repository][blogs-folder].
## Open a PR for review
1. After you complete your blog post, open a Pull Request and wait for it to
be reviewed.
1. Your blog post is now public and we are all excited to read it.
Congratulations!
[docs-repo]: https://github.com/tektoncd/website
[fork]: https://docs.github.com/en/get-started/quickstart/fork-a-repo
[docker-compose]: https://docs.docker.com/get-docker/
[front matter]: https://gohugo.io/content-management/front-matter/
[blogs-folder]: https://github.com/tektoncd/website/tree/main/content/en/blog
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录