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

Publishblog #1041

Closed
wants to merge 33 commits into from
Closed

Publishblog #1041

wants to merge 33 commits into from

Conversation

gangena
Copy link
Contributor

@gangena gangena commented Jul 9, 2021

Please make sure to check the following boxes creating your pull request, thank you very much!

  • Add Blog Header, including title, author, image, categories, tags, etc.

    For example:

    ---
    title: Your Great Blog Title
    author: your_github_id
    categories: project
    tags:
      - python
      - padlocal
    image: /assets/2021/02-your-blog-slug/teaser.jpg
    ---
    
    One line bio
    
    Your blog post content Your blog post content
    Your blog post content Your blog post content
    Your blog post content Your blog post content

    It will be easier to start drafting your post by using a existing post file as your template, for example, this one

  • Keep all filenames lowercase, and use - to connect words instead of space. e.g. 2017-10-06-wechat-pc-impactor.md instead of 2017-10-06-WeChat PC Impactor.md

  • Embed video/pdf from YouTube/Bilibili/local (if there's any) by using {% include iframe.html src="URL_or_PATH" %}. (Learn more about how to embed file/url in the post by reading this blog post

  • Save photo to local before publishing, to a folder named by ${MONTH}-${YOUR_BLOG_SLUG}/ under /assets/2021/ directory.

  • Select a beautiful and meaningful teaser image for your blog

  • Create your contributor profile (if you are a first time contributor)

    For excample:

    jekyll/_contributors/lijiarui.md

    ---
    name: Jiarui LI (李佳芮)
    site: https://lijiarui.github.io
    bio: 句子互动创始人 & CEO,微软人工智能最具价值专家 (AI MVP)
    avatar: /jekyll/assets/contributors/lijiarui/avatar.png
    email: [email protected]
    twitter: https://weibo.com/u/2175505900
    ---

    Here is the example file:

To learn more about the contribute guideline, visit: https://wechaty.js.org/docs/contributor-program/

@gangena gangena requested a review from a team as a code owner July 9, 2021 10:21
Copy link
Member

@lijiarui lijiarui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good post!

Please change as I request, I believe it would help a lot of developers know how to publish a blog in the future when it is merged.


![branch1](/assets/2021/07-how-to-publish-blog-on-wechaty/branch1.png)

![branch2](/assets/2021/07-how-to-publish-blog-on-wechaty/branch1.png)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thinks you should change branch1.png to branch2.png


![branch2](/assets/2021/07-how-to-publish-blog-on-wechaty/branch1.png)

![branch3](/assets/2021/07-how-to-publish-blog-on-wechaty/branch1.png)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thinks you should change branch1.png to branch3.png

10. 本地预览

在本地运行Jekyll来预览博客。
本地写好了代码以后提交到github上,运行: ssh -L 4000:127.0.0.1:4000 [email protected]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Notice: only wechaty contributors can have this, you should mention this in the PR.

Since you have already published a PR, so you are a contributor now!

@lijiarui
Copy link
Member

@gangena Please make CI green to match the new rules, see: https://github.com/wechaty/wechaty.js.org/issues/1035

@gangena gangena closed this Jul 12, 2021
@gangena gangena reopened this Jul 12, 2021
@lijiarui
Copy link
Member

Please make CI green.

@gangena gangena closed this Jul 13, 2021
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

Successfully merging this pull request may close these issues.

2 participants