Refer to http://git.mydoc.io/?t=179267 to register Gitee account.
Set your primary mail box in gitee settings https://gitee.com/profile/emails.
Sign your CLA in https://openeuler.org/zh/cla.html.
Prepare your git environment refering to http://git.mydoc.io/?t=180692.
The openEuler blog is written in markdown format. You can read https://gitee.com/openeuler/blog/blob/master/design/content_posts.md to get understand how the blog is designed.
The head includes the following information:
+++ title = "Sample Post" date = "2020-03-03" tags = ["Sample", "ABC", "cccc"] archives = "2020-03" author = "openEuler Blog Maintainer" summary = "Just about everything you'll need to style in the theme: headings, paragraphs, blockquotes, tables, code blocks, and more." +++ Here you can edit your blog.
Tips: you can copy content/_example/2020-03-03-sample-post.md to your folder and edit it.
The blog posting follows the pull request of Gitee.
Clone the code to your local environment.
git clone https://gitee.com/<your-gitee-id>/blog
git checkout -b <branch-name>
cd content\post mkdir <your-gitee-id> cd <your-gitee-id> touch YEAR-MONTH-DAY-title.md
And You can put the resources in the same folder as your text file’s, and name the resources as
Where the YEAR, MONTH, DAY, and title are the same as your blog file, and NN is the serial number of the pictures, like 01, 02 and so on. The MARKUP is the file extension, and for pictures it is recommended to use png. The following are one example.
2020-01-01-new-years-is-coming.md 2020-01-01-new-years-is-coming-01.png 2020-01-01-new-years-is-coming-02.gif 2020-01-01-new-years-is-coming-03.pdf
git add <file-path> git commit -m "<message>" git push origin <branch-name>:<branch-name>
Refer to http://git.mydoc.io/?t=153749 to submit your Pull Request
Wait for reviewing and merging.