1、安装ruby
使用brew安装
$ brew install ruby
查看ruby版本
$ ruby -v
ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-darwin17]
2、安装gem
Mac机器已经自带gem,没有gem的参考网站安装
$ gem -v
2.7.4
给gem更换国内的源,原始源由于“墙”的原因,很蛋疼
# 查看原始源列表
$ gem sources -l
https://rubygems.org/
#将源移除
$ gem sources --remove https://rubygems.org/
#添加国内源
$ gem sources --add http://gems.ruby-china.org/
#缓存源
$ gem sources -u
#再次查看源列表,确认源已更新
$ gem sources -l
http://gems.ruby-china.org/
注意:这里使用http://gems.ruby-china.org ,而不是 https://gems.ruby-china.org ,是因为可能有SSL证书问题
3、安装jekyll
$ sudo gem install jekyll
4、安装博客
安装以下组件
1 $ sudo gem install bundler
2 $ sudo gem install jekyll-paginate
3 $ sudo gem install jekyll-gist
创建博客(如果没有找到jekyll命令,重启下终端)
$ sudo jekyll new echomusicblog
安装过程会显示一堆安装内容,关注最后一行
New jekyll site installed in /Users/liufangting/echomusicblog.
5、本地启动博客
进入到安装目录执行命令
$ cd /Users/liufangting/echomusicblog
$ sudo jekyll serve
输出
Password:
Configuration file: /Users/liufangting/echomusicblog/_config.yml
Source: /Users/liufangting/echomusicblog
Destination: /Users/liufangting/echomusicblog/_site
Incremental build: disabled. Enable with --incremental
Generating...
done in 0.415 seconds.
Auto-regeneration: enabled for '/Users/liufangting/echomusicblog'
Server address: http://127.0.0.1:4000/
Server running... press ctrl-c to stop.
将http://127.0.0.1:4000/复制到浏览器,能打开就表示正常了。
6、部署到github
按照自己的github账号创建一个仓库,固定格式username.github.io,这个代码仓库就是博客源码存放地,博客公网链接就是:https://echo-music.github.io
https://github.com/echo-music/echo-music.github.io.git
将本地内容和github上的仓库关联
1 $ cd /Users/liufangting/echomusicblog
2 $ sudo git init
3 $ sudo git add .
4 $ sudo git commit -m "first commit"
5 $ sudo git remote add origin https://github.com/echo-music/echo-music.github.io.git
6 $ sudo git push -u origin master
这里注意替换为你自己的地址,在执行git push的时候,需要输入github的账号和密码。 完成后在浏览器上输入: echo-music.github.io,就可以看见博客了。
7、使用主题
使用jekyll new出来的博客实在是太原始,太简陋,完全没有“高大上”的感觉,我们需要“高颜值”的主题(对于 jekyll ,主题就是一套完整的博客框架源码),jekyllthemes提供了很多的主题,比如我选择的主题就是基于yummy-theme扩展的。
把自己的github 空仓库git clone 到本地,拿到的框架源码拷贝到空仓库目录下
$ git clone https://github.com/echo-music/echo-music.github.io.git
刚拿到的主题,内容还是别人的,我们需要了解一下博客的基本目录结构,然后加以修改成自己的博客框架。
-
修改域名
如果你需要绑定自己的域名,那么修改 CNAME 文件的内容;如果不需要绑定自己的域名,那么删掉 CNAME 文件。
-
修改配置
网站的配置基本都集中在 _config.yml 文件中,将其中与个人信息相关的部分替换成你自己的,比如网站的 url、title、subtitle 和第三方评论模块的配置等。
-
删除文章与图片
如下文件夹中除了 template.md 文件外,都可以全部删除,然后添加自己的内容。
- _posts 文件夹中是已发布的博客文章
- _drafts 文件夹中是尚未发布的草稿文章
- _wiki 文件夹中是已发布的 wiki 页面
- images 文件夹中是文章和页面里使用的图片
-
修改「关于」页面
pages/about.md 文件内容对应网站的「关于」页面,里面的内容多为个人相关,将它们替换成自己的信息,包括 _data 目录下的 skills.yml 和 social.yml 文件里的数据。
-
修改 favicon.ico 图标,选一个自己喜欢的图标替换
经过以上整理,一个全新的博客框架基本成型,后面就需要自己慢慢完善了。
8、运行博客框架
运行方法和步骤5是一样的,只是我在本地运行获取到的主题框架时遇到了报错
$ cd /Users/liufangting/my_git/echo-music.github.io
$ sudo jekyll serve
Traceback (most recent call last):
10: from /usr/local/bin/jekyll:23:in `<main>'
9: from /usr/local/bin/jekyll:23:in `load'
8: from /usr/local/lib/ruby/gems/2.5.0/gems/jekyll-3.7.0/exe/jekyll:11:in `<top (required)>'
7: from /usr/local/lib/ruby/gems/2.5.0/gems/jekyll-3.7.0/lib/jekyll/plugin_manager.rb:50:in `require_from_bundler'
6: from /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler.rb:107:in `setup'
5: from /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/runtime.rb:26:in `setup'
4: from /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/runtime.rb:26:in `map'
3: from /usr/local/Cellar/ruby/2.5.0/lib/ruby/2.5.0/forwardable.rb:229:in `each'
2: from /usr/local/Cellar/ruby/2.5.0/lib/ruby/2.5.0/forwardable.rb:229:in `each'
1: from /usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/runtime.rb:31:in `block in setup'
/usr/local/lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/runtime.rb:313:in `check_for_activated_spec!': You have already activated public_suffix 3.0.1, but your Gemfile requires public_suffix 2.0.5. Prepending `bundle exec` to your command may solve this. (Gem::LoadError)
看提示大概是gem软件版本方面的问题,网上找到用bundle exec来启动的,试了下果然能成功 如果项目启动报错:缺啥插件下啥插件,提示 jekyll 版本不对可以使用 bundle update 来更新 使用 sudo bundle exec jekyll serve
$ bundle exec jekyll serve --watch
Configuration file: /Users/liufangting/my_git/echo-music.github.io/_config.yml
Deprecation: The 'gems' configuration option has been renamed to 'plugins'. Please update your config file accordingly.
Source: /Users/liufangting/my_git/echo-music.github.io
Destination: /Users/liufangting/my_git/echo-music.github.io/_site
Incremental build: disabled. Enable with --incremental
Generating...
GitHub Metadata: No GitHub API authentication could be found. Some fields may be missing or have incorrect data.
Liquid Warning: Liquid syntax error (line 2): Expected dotdot but found pipe in "{"id"=>620569899, "node_id"=>"R_kgDOJP0lKw", "name"=>"zhangyanchong.github.io", "full_name"=>"zhangyanchong/zhangyanchong.github.io", "private"=>false, "owner"=>{"login"=>"zhangyanchong", "id"=>15809123, "node_id"=>"MDQ6VXNlcjE1ODA5MTIz", "avatar_url"=>"https://avatars.githubusercontent.com/u/15809123?v=4", "gravatar_id"=>"", "url"=>"https://api.github.com/users/zhangyanchong", "html_url"=>"https://github.com/zhangyanchong", "followers_url"=>"https://api.github.com/users/zhangyanchong/followers", "following_url"=>"https://api.github.com/users/zhangyanchong/following{/other_user}", "gists_url"=>"https://api.github.com/users/zhangyanchong/gists{/gist_id}", "starred_url"=>"https://api.github.com/users/zhangyanchong/starred{/owner}{/repo}", "subscriptions_url"=>"https://api.github.com/users/zhangyanchong/subscriptions", "organizations_url"=>"https://api.github.com/users/zhangyanchong/orgs", "repos_url"=>"https://api.github.com/users/zhangyanchong/repos", "events_url"=>"https://api.github.com/users/zhangyanchong/events{/privacy}", "received_events_url"=>"https://api.github.com/users/zhangyanchong/received_events", "type"=>"User", "site_admin"=>false}, "html_url"=>"https://github.com/zhangyanchong/zhangyanchong.github.io", "description"=>nil, "fork"=>false, "url"=>"https://api.github.com/repos/zhangyanchong/zhangyanchong.github.io", "forks_url"=>"https://api.github.com/repos/zhangyanchong/zhangyanchong.github.io/forks", "keys_url"=>"https://api.github.com/repos/zhangyanchong/zhangyanchong.github.io/keys{/key_id}", "collaborators_url"=>"https://api.github.com/repos/zhangyanchong/zhangyanchong.github.io/collaborators{/collaborator}", "teams_url"=>"https://api.github.com/repos/zhangyanchong/zhangyanchong.github.io/teams", "hooks_url"=>"https://api.github.com/repos/zhangyanchong/zhangyanchong.github.io/hooks", "issue_events_url"=>"https://api.github.com/repos/zhangyanchong/zhangyanchong.github.io/issues/events{/number}", "events_url"=>"https://api.github.com/repos/zhangyanchong/zhangyanchong.github.io/events", "assignees_url"=>"https://api.github.com/repos/zhangyanchong/zhangyanchong.github.io/assignees{/user}", "branches_url"=>"https://api.github.com/repos/zhangyanchong/zhangyanchong.github.io/branches{/branch}", "tags_url"=>"https://api.github.com/repos/zhangyanchong/zhangyanchong.github.io/tags", "blobs_url"=>"https://api.github.com/repos/zhangyanchong/zhangyanchong.github.io/git/blobs{/sha}", "git_tags_url"=>"https://api.github.com/repos/zhangyanchong/zhangyanchong.github.io/git/tags{/sha}", "git_refs_url"=>"https://api.github.com/repos/zhangyanchong/zhangyanchong.github.io/git/refs{/sha}", "trees_url"=>"https://api.github.com/repos/zhangyanchong/zhangyanchong.github.io/git/trees{/sha}", "statuses_url"=>"https://api.github.com/repos/zhangyanchong/zhangyanchong.github.io/statuses/{sha}", "languages_url"=>"https://api.github.com/repos/zhangyanchong/zhangyanchong.github.io/languages", "stargazers_url"=>"https://api.github.com/repos/zhangyanchong/zhangyanchong.github.io/stargazers", "contributors_url"=>"https://api.github.com/repos/zhangyanchong/zhangyanchong.github.io/contributors", "subscribers_url"=>"https://api.github.com/repos/zhangyanchong/zhangyanchong.github.io/subscribers", "subscription_url"=>"https://api.github.com/repos/zhangyanchong/zhangyanchong.github.io/subscription", "commits_url"=>"https://api.github.com/repos/zhangyanchong/zhangyanchong.github.io/commits{/sha}", "git_commits_url"=>"https://api.github.com/repos/zhangyanchong/zhangyanchong.github.io/git/commits{/sha}", "comments_url"=>"https://api.github.com/repos/zhangyanchong/zhangyanchong.github.io/comments{/number}", "issue_comment_url"=>"https://api.github.com/repos/zhangyanchong/zhangyanchong.github.io/issues/comments{/number}", "contents_url"=>"https://api.github.com/repos/zhangyanchong/zhangyanchong.github.io/contents/{+path}", "compare_url"=>"https://api.github.com/repos/zhangyanchong/zhangyanchong.github.io/compare/{base}...{head}", "merges_url"=>"https://api.github.com/repos/zhangyanchong/zhangyanchong.github.io/merges", "archive_url"=>"https://api.github.com/repos/zhangyanchong/zhangyanchong.github.io/{archive_format}{/ref}", "downloads_url"=>"https://api.github.com/repos/zhangyanchong/zhangyanchong.github.io/downloads", "issues_url"=>"https://api.github.com/repos/zhangyanchong/zhangyanchong.github.io/issues{/number}", "pulls_url"=>"https://api.github.com/repos/zhangyanchong/zhangyanchong.github.io/pulls{/number}", "milestones_url"=>"https://api.github.com/repos/zhangyanchong/zhangyanchong.github.io/milestones{/number}", "notifications_url"=>"https://api.github.com/repos/zhangyanchong/zhangyanchong.github.io/notifications{?since,all,participating}", "labels_url"=>"https://api.github.com/repos/zhangyanchong/zhangyanchong.github.io/labels{/name}", "releases_url"=>"https://api.github.com/repos/zhangyanchong/zhangyanchong.github.io/releases{/id}", "deployments_url"=>"https://api.github.com/repos/zhangyanchong/zhangyanchong.github.io/deployments", "created_at"=>2023-03-29 00:14:47 UTC, "updated_at"=>2023-04-02 02:40:29 UTC, "pushed_at"=>2023-04-09 02:44:47 UTC, "git_url"=>"git://github.com/zhangyanchong/zhangyanchong.github.io.git", "ssh_url"=>"git@github.com:zhangyanchong/zhangyanchong.github.io.git", "clone_url"=>"https://github.com/zhangyanchong/zhangyanchong.github.io.git", "svn_url"=>"https://github.com/zhangyanchong/zhangyanchong.github.io", "homepage"=>nil, "size"=>14808, "stargazers_count"=>1, "watchers_count"=>1, "language"=>"HTML", "has_issues"=>true, "has_projects"=>true, "has_downloads"=>true, "has_wiki"=>true, "has_pages"=>true, "has_discussions"=>false, "forks_count"=>0, "mirror_url"=>nil, "archived"=>false, "disabled"=>false, "open_issues_count"=>0, "license"=>{"key"=>"mit", "name"=>"MIT License", "spdx_id"=>"MIT", "url"=>"https://api.github.com/licenses/mit", "node_id"=>"MDc6TGljZW5zZTEz"}, "allow_forking"=>true, "is_template"=>false, "web_commit_signoff_required"=>false, "topics"=>[], "visibility"=>"public", "forks"=>0, "open_issues"=>0, "watchers"=>1, "default_branch"=>"main", "permissions"=>{"admin"=>false, "maintain"=>false, "push"=>false, "triage"=>false, "pull"=>false}}{"id"=>547752408, "node_id"=>"R_kgDOIKYJ2A", "name"=>"study", "full_name"=>"zhangyanchong/study", "private"=>false, "owner"=>{"login"=>"zhangyanchong", "id"=>15809123, "node_id"=>"MDQ6VXNlcjE1ODA5MTIz", "avatar_url"=>"https://avatars.githubusercontent.com/u/15809123?v=4", "gravatar_id"=>"", "url"=>"https://api.github.com/users/zhangyanchong", "html_url"=>"https://github.com/zhangyanchong", "followers_url"=>"https://api.github.com/users/zhangyanchong/followers", "following_url"=>"https://api.github.com/users/zhangyanchong/following{/other_user}", "gists_url"=>"https://api.github.com/users/zhangyanchong/gists{/gist_id}", "starred_url"=>"https://api.github.com/users/zhangyanchong/starred{/owner}{/repo}", "subscriptions_url"=>"https://api.github.com/users/zhangyanchong/subscriptions", "organizations_url"=>"https://api.github.com/users/zhangyanchong/orgs", "repos_url"=>"https://api.github.com/users/zhangyanchong/repos", "events_url"=>"https://api.github.com/users/zhangyanchong/events{/privacy}", "received_events_url"=>"https://api.github.com/users/zhangyanchong/received_events", "type"=>"User", "site_admin"=>false}, "html_url"=>"https://github.com/zhangyanchong/study", "description"=>nil, "fork"=>false, "url"=>"https://api.github.com/repos/zhangyanchong/study", "forks_url"=>"https://api.github.com/repos/zhangyanchong/study/forks", "keys_url"=>"https://api.github.com/repos/zhangyanchong/study/keys{/key_id}", "collaborators_url"=>"https://api.github.com/repos/zhangyanchong/study/collaborators{/collaborator}", "teams_url"=>"https://api.github.com/repos/zhangyanchong/study/teams", "hooks_url"=>"https://api.github.com/repos/zhangyanchong/study/hooks", "issue_events_url"=>"https://api.github.com/repos/zhangyanchong/study/issues/events{/number}", "events_url"=>"https://api.github.com/repos/zhangyanchong/study/events", "assignees_url"=>"https://api.github.com/repos/zhangyanchong/study/assignees{/user}", "branches_url"=>"https://api.github.com/repos/zhangyanchong/study/branches{/branch}", "tags_url"=>"https://api.github.com/repos/zhangyanchong/study/tags", "blobs_url"=>"https://api.github.com/repos/zhangyanchong/study/git/blobs{/sha}", "git_tags_url"=>"https://api.github.com/repos/zhangyanchong/study/git/tags{/sha}", "git_refs_url"=>"https://api.github.com/repos/zhangyanchong/study/git/refs{/sha}", "trees_url"=>"https://api.github.com/repos/zhangyanchong/study/git/trees{/sha}", "statuses_url"=>"https://api.github.com/repos/zhangyanchong/study/statuses/{sha}", "languages_url"=>"https://api.github.com/repos/zhangyanchong/study/languages", "stargazers_url"=>"https://api.github.com/repos/zhangyanchong/study/stargazers", "contributors_url"=>"https://api.github.com/repos/zhangyanchong/study/contributors", "subscribers_url"=>"https://api.github.com/repos/zhangyanchong/study/subscribers", "subscription_url"=>"https://api.github.com/repos/zhangyanchong/study/subscription", "commits_url"=>"https://api.github.com/repos/zhangyanchong/study/commits{/sha}", "git_commits_url"=>"https://api.github.com/repos/zhangyanchong/study/git/commits{/sha}", "comments_url"=>"https://api.github.com/repos/zhangyanchong/study/comments{/number}", "issue_comment_url"=>"https://api.github.com/repos/zhangyanchong/study/issues/comments{/number}", "contents_url"=>"https://api.github.com/repos/zhangyanchong/study/contents/{+path}", "compare_url"=>"https://api.github.com/repos/zhangyanchong/study/compare/{base}...{head}", "merges_url"=>"https://api.github.com/repos/zhangyanchong/study/merges", "archive_url"=>"https://api.github.com/repos/zhangyanchong/study/{archive_format}{/ref}", "downloads_url"=>"https://api.github.com/repos/zhangyanchong/study/downloads", "issues_url"=>"https://api.github.com/repos/zhangyanchong/study/issues{/number}", "pulls_url"=>"https://api.github.com/repos/zhangyanchong/study/pulls{/number}", "milestones_url"=>"https://api.github.com/repos/zhangyanchong/study/milestones{/number}", "notifications_url"=>"https://api.github.com/repos/zhangyanchong/study/notifications{?since,all,participating}", "labels_url"=>"https://api.github.com/repos/zhangyanchong/study/labels{/name}", "releases_url"=>"https://api.github.com/repos/zhangyanchong/study/releases{/id}", "deployments_url"=>"https://api.github.com/repos/zhangyanchong/study/deployments", "created_at"=>2022-10-08 08:13:48 UTC, "updated_at"=>2023-02-25 07:41:08 UTC, "pushed_at"=>2023-02-21 01:55:31 UTC, "git_url"=>"git://github.com/zhangyanchong/study.git", "ssh_url"=>"git@github.com:zhangyanchong/study.git", "clone_url"=>"https://github.com/zhangyanchong/study.git", "svn_url"=>"https://github.com/zhangyanchong/study", "homepage"=>nil, "size"=>31333, "stargazers_count"=>0, "watchers_count"=>0, "language"=>"JavaScript", "has_issues"=>true, "has_projects"=>true, "has_downloads"=>true, "has_wiki"=>true, "has_pages"=>false, "has_discussions"=>false, "forks_count"=>0, "mirror_url"=>nil, "archived"=>false, "disabled"=>false, "open_issues_count"=>0, "license"=>nil, "allow_forking"=>true, "is_template"=>false, "web_commit_signoff_required"=>false, "topics"=>[], "visibility"=>"public", "forks"=>0, "open_issues"=>0, "watchers"=>0, "default_branch"=>"master", "permissions"=>{"admin"=>false, "maintain"=>false, "push"=>false, "triage"=>false, "pull"=>false}}{"id"=>558678999, "node_id"=>"R_kgDOIUzD1w", "name"=>"node", "full_name"=>"zhangyanchong/node", "private"=>false, "owner"=>{"login"=>"zhangyanchong", "id"=>15809123, "node_id"=>"MDQ6VXNlcjE1ODA5MTIz", "avatar_url"=>"https://avatars.githubusercontent.com/u/15809123?v=4", "gravatar_id"=>"", "url"=>"https://api.github.com/users/zhangyanchong", "html_url"=>"https://github.com/zhangyanchong", "followers_url"=>"https://api.github.com/users/zhangyanchong/followers", "following_url"=>"https://api.github.com/users/zhangyanchong/following{/other_user}", "gists_url"=>"https://api.github.com/users/zhangyanchong/gists{/gist_id}", "starred_url"=>"https://api.github.com/users/zhangyanchong/starred{/owner}{/repo}", "subscriptions_url"=>"https://api.github.com/users/zhangyanchong/subscriptions", "organizations_url"=>"https://api.github.com/users/zhangyanchong/orgs", "repos_url"=>"https://api.github.com/users/zhangyanchong/repos", "events_url"=>"https://api.github.com/users/zhangyanchong/events{/privacy}", "received_events_url"=>"https://api.github.com/users/zhangyanchong/received_events", "type"=>"User", "site_admin"=>false}, "html_url"=>"https://github.com/zhangyanchong/node", "description"=>"node相关的", "fork"=>false, "url"=>"https://api.github.com/repos/zhangyanchong/node", "forks_url"=>"https://api.github.com/repos/zhangyanchong/node/forks", "keys_url"=>"https://api.github.com/repos/zhangyanchong/node/keys{/key_id}", "collaborators_url"=>"https://api.github.com/repos/zhangyanchong/node/collaborators{/collaborator}", "teams_url"=>"https://api.github.com/repos/zhangyanchong/node/teams", "hooks_url"=>"https://api.github.com/repos/zhangyanchong/node/hooks", "issue_events_url"=>"https://api.github.com/repos/zhangyanchong/node/issues/events{/number}", "events_url"=>"https://api.github.com/repos/zhangyanchong/node/events", "assignees_url"=>"https://api.github.com/repos/zhangyanchong/node/assignees{/user}", "branches_url"=>"https://api.github.com/repos/zhangyanchong/node/branches{/branch}", "tags_url"=>"https://api.github.com/repos/zhangyanchong/node/tags", "blobs_url"=>"https://api.github.com/repos/zhangyanchong/node/git/blobs{/sha}", "git_tags_url"=>"https://api.github.com/repos/zhangyanchong/node/git/tags{/sha}", "git_refs_url"=>"https://api.github.com/repos/zhangyanchong/node/git/refs{/sha}", "trees_url"=>"https://api.github.com/repos/zhangyanchong/node/git/trees{/sha}", "statuses_url"=>"https://api.github.com/repos/zhangyanchong/node/statuses/{sha}", "languages_url"=>"https://api.github.com/repos/zhangyanchong/node/languages", "stargazers_url"=>"https://api.github.com/repos/zhangyanchong/node/stargazers", "contributors_url"=>"https://api.github.com/repos/zhangyanchong/node/contributors", "subscribers_url"=>"https://api.github.com/repos/zhangyanchong/node/subscribers", "subscription_url"=>"https://api.github.com/repos/zhangyanchong/node/subscription", "commits_url"=>"https://api.github.com/repos/zhangyanchong/node/commits{/sha}", "git_commits_url"=>"https://api.github.com/repos/zhangyanchong/node/git/commits{/sha}", "comments_url"=>"https://api.github.com/repos/zhangyanchong/node/comments{/number}", "issue_comment_url"=>"https://api.github.com/repos/zhangyanchong/node/issues/comments{/number}", "contents_url"=>"https://api.github.com/repos/zhangyanchong/node/contents/{+path}", "compare_url"=>"https://api.github.com/repos/zhangyanchong/node/compare/{base}...{head}", "merges_url"=>"https://api.github.com/repos/zhangyanchong/node/merges", "archive_url"=>"https://api.github.com/repos/zhangyanchong/node/{archive_format}{/ref}", "downloads_url"=>"https://api.github.com/repos/zhangyanchong/node/downloads", "issues_url"=>"https://api.github.com/repos/zhangyanchong/node/issues{/number}", "pulls_url"=>"https://api.github.com/repos/zhangyanchong/node/pulls{/number}", "milestones_url"=>"https://api.github.com/repos/zhangyanchong/node/milestones{/number}", "notifications_url"=>"https://api.github.com/repos/zhangyanchong/node/notifications{?since,all,participating}", "labels_url"=>"https://api.github.com/repos/zhangyanchong/node/labels{/name}", "releases_url"=>"https://api.github.com/repos/zhangyanchong/node/releases{/id}", "deployments_url"=>"https://api.github.com/repos/zhangyanchong/node/deployments", "created_at"=>2022-10-28 03:36:26 UTC, "updated_at"=>2022-10-28 03:36:26 UTC, "pushed_at"=>2022-10-31 10:34:53 UTC, "git_url"=>"git://github.com/zhangyanchong/node.git", "ssh_url"=>"git@github.com:zhangyanchong/node.git", "clone_url"=>"https://github.com/zhangyanchong/node.git", "svn_url"=>"https://github.com/zhangyanchong/node", "homepage"=>nil, "size"=>4, "stargazers_count"=>0, "watchers_count"=>0, "language"=>nil, "has_issues"=>true, "has_projects"=>true, "has_downloads"=>true, "has_wiki"=>true, "has_pages"=>false, "has_discussions"=>false, "forks_count"=>0, "mirror_url"=>nil, "archived"=>false, "disabled"=>false, "open_issues_count"=>0, "license"=>nil, "allow_forking"=>true, "is_template"=>false, "web_commit_signoff_required"=>false, "topics"=>[], "visibility"=>"public", "forks"=>0, "open_issues"=>0, "watchers"=>0, "default_branch"=>"main", "permissions"=>{"admin"=>false, "maintain"=>false, "push"=>false, "triage"=>false, "pull"=>false}}{"id"=>534160283, "node_id"=>"R_kgDOH9ajmw", "name"=>"nginx", "full_name"=>"zhangyanchong/nginx", "private"=>false, "owner"=>{"login"=>"zhangyanchong", "id"=>15809123, "node_id"=>"MDQ6VXNlcjE1ODA5MTIz", "avatar_url"=>"https://avatars.githubusercontent.com/u/15809123?v=4", "gravatar_id"=>"", "url"=>"https://api.github.com/users/zhangyanchong", "html_url"=>"https://github.com/zhangyanchong", "followers_url"=>"https://api.github.com/users/zhangyanchong/followers", "following_url"=>"https://api.github.com/users/zhangyanchong/following{/other_user}", "gists_url"=>"https://api.github.com/users/zhangyanchong/gists{/gist_id}", "starred_url"=>"https://api.github.com/users/zhangyanchong/starred{/owner}{/repo}", "subscriptions_url"=>"https://api.github.com/users/zhangyanchong/subscriptions", "organizations_url"=>"https://api.github.com/users/zhangyanchong/orgs", "repos_url"=>"https://api.github.com/users/zhangyanchong/repos", "events_url"=>"https://api.github.com/users/zhangyanchong/events{/privacy}", "received_events_url"=>"https://api.github.com/users/zhangyanchong/received_events", "type"=>"User", "site_admin"=>false}, "html_url"=>"https://github.com/zhangyanchong/nginx", "description"=>nil, "fork"=>false, "url"=>"https://api.github.com/repos/zhangyanchong/nginx", "forks_url"=>"https://api.github.com/repos/zhangyanchong/nginx/forks", "keys_url"=>"https://api.github.com/repos/zhangyanchong/nginx/keys{/key_id}", "collaborators_url"=>"https://api.github.com/repos/zhangyanchong/nginx/collaborators{/collaborator}", "teams_url"=>"https://api.github.com/repos/zhangyanchong/nginx/teams", "hooks_url"=>"https://api.github.com/repos/zhangyanchong/nginx/hooks", "issue_events_url"=>"https://api.github.com/repos/zhangyanchong/nginx/issues/events{/number}", "events_url"=>"https://api.github.com/repos/zhangyanchong/nginx/events", "assignees_url"=>"https://api.github.com/repos/zhangyanchong/nginx/assignees{/user}", "branches_url"=>"https://api.github.com/repos/zhangyanchong/nginx/branches{/branch}", "tags_url"=>"https://api.github.com/repos/zhangyanchong/nginx/tags", "blobs_url"=>"https://api.github.com/repos/zhangyanchong/nginx/git/blobs{/sha}", "git_tags_url"=>"https://api.github.com/repos/zhangyanchong/nginx/git/tags{/sha}", "git_refs_url"=>"https://api.github.com/repos/zhangyanchong/nginx/git/refs{/sha}", "trees_url"=>"https://api.github.com/repos/zhangyanchong/nginx/git/trees{/sha}", "statuses_url"=>"https://api.github.com/repos/zhangyanchong/nginx/statuses/{sha}", "languages_url"=>"https://api.github.com/repos/zhangyanchong/nginx/languages", "stargazers_url"=>"https://api.github.com/repos/zhangyanchong/nginx/stargazers", "contributors_url"=>"https://api.github.com/repos/zhangyanchong/nginx/contributors", "subscribers_url"=>"https://api.github.com/repos/zhangyanchong/nginx/subscribers", "subscription_url"=>"https://api.github.com/repos/zhangyanchong/nginx/subscription", "commits_url"=>"https://api.github.com/repos/zhangyanchong/nginx/commits{/sha}", "git_commits_url"=>"https://api.github.com/repos/zhangyanchong/nginx/git/commits{/sha}", "comments_url"=>"https://api.github.com/repos/zhangyanchong/nginx/comments{/number}", "issue_comment_url"=>"https://api.github.com/repos/zhangyanchong/nginx/issues/comments{/number}", "contents_url"=>"https://api.github.com/repos/zhangyanchong/nginx/contents/{+path}", "compare_url"=>"https://api.github.com/repos/zhangyanchong/nginx/compare/{base}...{head}", "merges_url"=>"https://api.github.com/repos/zhangyanchong/nginx/merges", "archive_url"=>"https://api.github.com/repos/zhangyanchong/nginx/{archive_format}{/ref}", "downloads_url"=>"https://api.github.com/repos/zhangyanchong/nginx/downloads", "issues_url"=>"https://api.github.com/repos/zhangyanchong/nginx/issues{/number}", "pulls_url"=>"https://api.github.com/repos/zhangyanchong/nginx/pulls{/number}", "milestones_url"=>"https://api.github.com/repos/zhangyanchong/nginx/milestones{/number}", "notifications_url"=>"https://api.github.com/repos/zhangyanchong/nginx/notifications{?since,all,participating}", "labels_url"=>"https://api.github.com/repos/zhangyanchong/nginx/labels{/name}", "releases_url"=>"https://api.github.com/repos/zhangyanchong/nginx/releases{/id}", "deployments_url"=>"https://api.github.com/repos/zhangyanchong/nginx/deployments", "created_at"=>2022-09-08 10:27:03 UTC, "updated_at"=>2023-04-02 02:49:45 UTC, "pushed_at"=>2022-09-08 11:17:26 UTC, "git_url"=>"git://github.com/zhangyanchong/nginx.git", "ssh_url"=>"git@github.com:zhangyanchong/nginx.git", "clone_url"=>"https://github.com/zhangyanchong/nginx.git", "svn_url"=>"https://github.com/zhangyanchong/nginx", "homepage"=>nil, "size"=>748, "stargazers_count"=>0, "watchers_count"=>0, "language"=>nil, "has_issues"=>true, "has_projects"=>true, "has_downloads"=>true, "has_wiki"=>true, "has_pages"=>false, "has_discussions"=>false, "forks_count"=>0, "mirror_url"=>nil, "archived"=>false, "disabled"=>false, "open_issues_count"=>0, "license"=>nil, "allow_forking"=>true, "is_template"=>false, "web_commit_signoff_required"=>false, "topics"=>[], "visibility"=>"public", "forks"=>0, "open_issues"=>0, "watchers"=>0, "default_branch"=>"master", "permissions"=>{"admin"=>false, "maintain"=>false, "push"=>false, "triage"=>false, "pull"=>false}}{"id"=>137201323, "node_id"=>"MDEwOlJlcG9zaXRvcnkxMzcyMDEzMjM=", "name"=>"mysql", "full_name"=>"zhangyanchong/mysql", "private"=>false, "owner"=>{"login"=>"zhangyanchong", "id"=>15809123, "node_id"=>"MDQ6VXNlcjE1ODA5MTIz", "avatar_url"=>"https://avatars.githubusercontent.com/u/15809123?v=4", "gravatar_id"=>"", "url"=>"https://api.github.com/users/zhangyanchong", "html_url"=>"https://github.com/zhangyanchong", "followers_url"=>"https://api.github.com/users/zhangyanchong/followers", "following_url"=>"https://api.github.com/users/zhangyanchong/following{/other_user}", "gists_url"=>"https://api.github.com/users/zhangyanchong/gists{/gist_id}", "starred_url"=>"https://api.github.com/users/zhangyanchong/starred{/owner}{/repo}", "subscriptions_url"=>"https://api.github.com/users/zhangyanchong/subscriptions", "organizations_url"=>"https://api.github.com/users/zhangyanchong/orgs", "repos_url"=>"https://api.github.com/users/zhangyanchong/repos", "events_url"=>"https://api.github.com/users/zhangyanchong/events{/privacy}", "received_events_url"=>"https://api.github.com/users/zhangyanchong/received_events", "type"=>"User", "site_admin"=>false}, "html_url"=>"https://github.com/zhangyanchong/mysql", "description"=>nil, "fork"=>false, "url"=>"https://api.github.com/repos/zhangyanchong/mysql", "forks_url"=>"https://api.github.com/repos/zhangyanchong/mysql/forks", "keys_url"=>"https://api.github.com/repos/zhangyanchong/mysql/keys{/key_id}", "collaborators_url"=>"https://api.github.com/repos/zhangyanchong/mysql/collaborators{/collaborator}", "teams_url"=>"https://api.github.com/repos/zhangyanchong/mysql/teams", "hooks_url"=>"https://api.github.com/repos/zhangyanchong/mysql/hooks", "issue_events_url"=>"https://api.github.com/repos/zhangyanchong/mysql/issues/events{/number}", "events_url"=>"https://api.github.com/repos/zhangyanchong/mysql/events", "assignees_url"=>"https://api.github.com/repos/zhangyanchong/mysql/assignees{/user}", "branches_url"=>"https://api.github.com/repos/zhangyanchong/mysql/branches{/branch}", "tags_url"=>"https://api.github.com/repos/zhangyanchong/mysql/tags", "blobs_url"=>"https://api.github.com/repos/zhangyanchong/mysql/git/blobs{/sha}", "git_tags_url"=>"https://api.github.com/repos/zhangyanchong/mysql/git/tags{/sha}", "git_refs_url"=>"https://api.github.com/repos/zhangyanchong/mysql/git/refs{/sha}", "trees_url"=>"https://api.github.com/repos/zhangyanchong/mysql/git/trees{/sha}", "statuses_url"=>"https://api.github.com/repos/zhangyanchong/mysql/statuses/{sha}", "languages_url"=>"https://api.github.com/repos/zhangyanchong/mysql/languages", "stargazers_url"=>"https://api.github.com/repos/zhangyanchong/mysql/stargazers", "contributors_url"=>"https://api.github.com/repos/zhangyanchong/mysql/contributors", "subscribers_url"=>"https://api.github.com/repos/zhangyanchong/mysql/subscribers", "subscription_url"=>"https://api.github.com/repos/zhangyanchong/mysql/subscription", "commits_url"=>"https://api.github.com/repos/zhangyanchong/mysql/commits{/sha}", "git_commits_url"=>"https://api.github.com/repos/zhangyanchong/mysql/git/commits{/sha}", "comments_url"=>"https://api.github.com/repos/zhangyanchong/mysql/comments{/number}", "issue_comment_url"=>"https://api.github.com/repos/zhangyanchong/mysql/issues/comments{/number}", "contents_url"=>"https://api.github.com/repos/zhangyanchong/mysql/contents/{+path}", "compare_url"=>"https://api.github.com/repos/zhangyanchong/mysql/compare/{base}...{head}", "merges_url"=>"https://api.github.com/repos/zhangyanchong/mysql/merges", "archive_url"=>"https://api.github.com/repos/zhangyanchong/mysql/{archive_format}{/ref}", "downloads_url"=>"https://api.github.com/repos/zhangyanchong/mysql/downloads", "issues_url"=>"https://api.github.com/repos/zhangyanchong/mysql/issues{/number}", "pulls_url"=>"https://api.github.com/repos/zhangyanchong/mysql/pulls{/number}", "milestones_url"=>"https://api.github.com/repos/zhangyanchong/mysql/milestones{/number}", "notifications_url"=>"https://api.github.com/repos/zhangyanchong/mysql/notifications{?since,all,participating}", "labels_url"=>"https://api.github.com/repos/zhangyanchong/mysql/labels{/name}", "releases_url"=>"https://api.github.com/repos/zhangyanchong/mysql/releases{/id}", "deployments_url"=>"https://api.github.com/repos/zhangyanchong/mysql/deployments", "created_at"=>2018-06-13 10:37:21 UTC, "updated_at"=>2018-06-13 10:38:44 UTC, "pushed_at"=>2018-06-13 10:38:43 UTC, "git_url"=>"git://github.com/zhangyanchong/mysql.git", "ssh_url"=>"git@github.com:zhangyanchong/mysql.git", "clone_url"=>"https://github.com/zhangyanchong/mysql.git", "svn_url"=>"https://github.com/zhangyanchong/mysql", "homepage"=>nil, "size"=>0, "stargazers_count"=>0, "watchers_count"=>0, "language"=>nil, "has_issues"=>true, "has_projects"=>true, "has_downloads"=>true, "has_wiki"=>true, "has_pages"=>false, "has_discussions"=>false, "forks_count"=>0, "mirror_url"=>nil, "archived"=>false, "disabled"=>false, "open_issues_count"=>0, "license"=>nil, "allow_forking"=>true, "is_template"=>false, "web_commit_signoff_required"=>false, "topics"=>[], "visibility"=>"public", "forks"=>0, "open_issues"=>0, "watchers"=>0, "default_branch"=>"master", "permissions"=>{"admin"=>false, "maintain"=>false, "push"=>false, "triage"=>false, "pull"=>false}}{"id"=>534162344, "node_id"=>"R_kgDOH9arqA", "name"=>"linux", "full_name"=>"zhangyanchong/linux", "private"=>false, "owner"=>{"login"=>"zhangyanchong", "id"=>15809123, "node_id"=>"MDQ6VXNlcjE1ODA5MTIz", "avatar_url"=>"https://avatars.githubusercontent.com/u/15809123?v=4", "gravatar_id"=>"", "url"=>"https://api.github.com/users/zhangyanchong", "html_url"=>"https://github.com/zhangyanchong", "followers_url"=>"https://api.github.com/users/zhangyanchong/followers", "following_url"=>"https://api.github.com/users/zhangyanchong/following{/other_user}", "gists_url"=>"https://api.github.com/users/zhangyanchong/gists{/gist_id}", "starred_url"=>"https://api.github.com/users/zhangyanchong/starred{/owner}{/repo}", "subscriptions_url"=>"https://api.github.com/users/zhangyanchong/subscriptions", "organizations_url"=>"https://api.github.com/users/zhangyanchong/orgs", "repos_url"=>"https://api.github.com/users/zhangyanchong/repos", "events_url"=>"https://api.github.com/users/zhangyanchong/events{/privacy}", "received_events_url"=>"https://api.github.com/users/zhangyanchong/received_events", "type"=>"User", "site_admin"=>false}, "html_url"=>"https://github.com/zhangyanchong/linux", "description"=>nil, "fork"=>false, "url"=>"https://api.github.com/repos/zhangyanchong/linux", "forks_url"=>"https://api.github.com/repos/zhangyanchong/linux/forks", "keys_url"=>"https://api.github.com/repos/zhangyanchong/linux/keys{/key_id}", "collaborators_url"=>"https://api.github.com/repos/zhangyanchong/linux/collaborators{/collaborator}", "teams_url"=>"https://api.github.com/repos/zhangyanchong/linux/teams", "hooks_url"=>"https://api.github.com/repos/zhangyanchong/linux/hooks", "issue_events_url"=>"https://api.github.com/repos/zhangyanchong/linux/issues/events{/number}", "events_url"=>"https://api.github.com/repos/zhangyanchong/linux/events", "assignees_url"=>"https://api.github.com/repos/zhangyanchong/linux/assignees{/user}", "branches_url"=>"https://api.github.com/repos/zhangyanchong/linux/branches{/branch}", "tags_url"=>"https://api.github.com/repos/zhangyanchong/linux/tags", "blobs_url"=>"https://api.github.com/repos/zhangyanchong/linux/git/blobs{/sha}", "git_tags_url"=>"https://api.github.com/repos/zhangyanchong/linux/git/tags{/sha}", "git_refs_url"=>"https://api.github.com/repos/zhangyanchong/linux/git/refs{/sha}", "trees_url"=>"https://api.github.com/repos/zhangyanchong/linux/git/trees{/sha}", "statuses_url"=>"https://api.github.com/repos/zhangyanchong/linux/statuses/{sha}", "languages_url"=>"https://api.github.com/repos/zhangyanchong/linux/languages", "stargazers_url"=>"https://api.github.com/repos/zhangyanchong/linux/stargazers", "contributors_url"=>"https://api.github.com/repos/zhangyanchong/linux/contributors", "subscribers_url"=>"https://api.github.com/repos/zhangyanchong/linux/subscribers", "subscription_url"=>"https://api.github.com/repos/zhangyanchong/linux/subscription", "commits_url"=>"https://api.github.com/repos/zhangyanchong/linux/commits{/sha}", "git_commits_url"=>"https://api.github.com/repos/zhangyanchong/linux/git/commits{/sha}", "comments_url"=>"https://api.github.com/repos/zhangyanchong/linux/comments{/number}", "issue_comment_url"=>"https://api.github.com/repos/zhangyanchong/linux/issues/comments{/number}", "contents_url"=>"https://api.github.com/repos/zhangyanchong/linux/contents/{+path}", "compare_url"=>"https://api.github.com/repos/zhangyanchong/linux/compare/{base}...{head}", "merges_url"=>"https://api.github.com/repos/zhangyanchong/linux/merges", "archive_url"=>"https://api.github.com/repos/zhangyanchong/linux/{archive_format}{/ref}", "downloads_url"=>"https://api.github.com/repos/zhangyanchong/linux/downloads", "issues_url"=>"https://api.github.com/repos/zhangyanchong/linux/issues{/number}", "pulls_url"=>"https://api.github.com/repos/zhangyanchong/linux/pulls{/number}", "milestones_url"=>"https://api.github.com/repos/zhangyanchong/linux/milestones{/number}", "notifications_url"=>"https://api.github.com/repos/zhangyanchong/linux/notifications{?since,all,participating}", "labels_url"=>"https://api.github.com/repos/zhangyanchong/linux/labels{/name}", "releases_url"=>"https://api.github.com/repos/zhangyanchong/linux/releases{/id}", "deployments_url"=>"https://api.github.com/repos/zhangyanchong/linux/deployments", "created_at"=>2022-09-08 10:33:12 UTC, "updated_at"=>2023-04-02 03:33:09 UTC, "pushed_at"=>2022-09-08 10:53:22 UTC, "git_url"=>"git://github.com/zhangyanchong/linux.git", "ssh_url"=>"git@github.com:zhangyanchong/linux.git", "clone_url"=>"https://github.com/zhangyanchong/linux.git", "svn_url"=>"https://github.com/zhangyanchong/linux", "homepage"=>nil, "size"=>20, "stargazers_count"=>0, "watchers_count"=>0, "language"=>nil, "has_issues"=>true, "has_projects"=>true, "has_downloads"=>true, "has_wiki"=>true, "has_pages"=>false, "has_discussions"=>false, "forks_count"=>0, "mirror_url"=>nil, "archived"=>false, "disabled"=>false, "open_issues_count"=>0, "license"=>nil, "allow_forking"=>true, "is_template"=>false, "web_commit_signoff_required"=>false, "topics"=>[], "visibility"=>"public", "forks"=>0, "open_issues"=>0, "watchers"=>0, "default_branch"=>"master", "permissions"=>{"admin"=>false, "maintain"=>false, "push"=>false, "triage"=>false, "pull"=>false}}{"id"=>147318496, "node_id"=>"MDEwOlJlcG9zaXRvcnkxNDczMTg0OTY=", "name"=>"jenkins", "full_name"=>"zhangyanchong/jenkins", "private"=>false, "owner"=>{"login"=>"zhangyanchong", "id"=>15809123, "node_id"=>"MDQ6VXNlcjE1ODA5MTIz", "avatar_url"=>"https://avatars.githubusercontent.com/u/15809123?v=4", "gravatar_id"=>"", "url"=>"https://api.github.com/users/zhangyanchong", "html_url"=>"https://github.com/zhangyanchong", "followers_url"=>"https://api.github.com/users/zhangyanchong/followers", "following_url"=>"https://api.github.com/users/zhangyanchong/following{/other_user}", "gists_url"=>"https://api.github.com/users/zhangyanchong/gists{/gist_id}", "starred_url"=>"https://api.github.com/users/zhangyanchong/starred{/owner}{/repo}", "subscriptions_url"=>"https://api.github.com/users/zhangyanchong/subscriptions", "organizations_url"=>"https://api.github.com/users/zhangyanchong/orgs", "repos_url"=>"https://api.github.com/users/zhangyanchong/repos", "events_url"=>"https://api.github.com/users/zhangyanchong/events{/privacy}", "received_events_url"=>"https://api.github.com/users/zhangyanchong/received_events", "type"=>"User", "site_admin"=>false}, "html_url"=>"https://github.com/zhangyanchong/jenkins", "description"=>nil, "fork"=>false, "url"=>"https://api.github.com/repos/zhangyanchong/jenkins", "forks_url"=>"https://api.github.com/repos/zhangyanchong/jenkins/forks", "keys_url"=>"https://api.github.com/repos/zhangyanchong/jenkins/keys{/key_id}", "collaborators_url"=>"https://api.github.com/repos/zhangyanchong/jenkins/collaborators{/collaborator}", "teams_url"=>"https://api.github.com/repos/zhangyanchong/jenkins/teams", "hooks_url"=>"https://api.github.com/repos/zhangyanchong/jenkins/hooks", "issue_events_url"=>"https://api.github.com/repos/zhangyanchong/jenkins/issues/events{/number}", "events_url"=>"https://api.github.com/repos/zhangyanchong/jenkins/events", "assignees_url"=>"https://api.github.com/repos/zhangyanchong/jenkins/assignees{/user}", "branches_url"=>"https://api.github.com/repos/zhangyanchong/jenkins/branches{/branch}", "tags_url"=>"https://api.github.com/repos/zhangyanchong/jenkins/tags", "blobs_url"=>"https://api.github.com/repos/zhangyanchong/jenkins/git/blobs{/sha}", "git_tags_url"=>"https://api.github.com/repos/zhangyanchong/jenkins/git/tags{/sha}", "git_refs_url"=>"https://api.github.com/repos/zhangyanchong/jenkins/git/refs{/sha}", "trees_url"=>"https://api.github.com/repos/zhangyanchong/jenkins/git/trees{/sha}", "statuses_url"=>"https://api.github.com/repos/zhangyanchong/jenkins/statuses/{sha}", "languages_url"=>"https://api.github.com/repos/zhangyanchong/jenkins/languages", "stargazers_url"=>"https://api.github.com/repos/zhangyanchong/jenkins/stargazers", "contributors_url"=>"https://api.github.com/repos/zhangyanchong/jenkins/contributors", "subscribers_url"=>"https://api.github.com/repos/zhangyanchong/jenkins/subscribers", "subscription_url"=>"https://api.github.com/repos/zhangyanchong/jenkins/subscription", "commits_url"=>"https://api.github.com/repos/zhangyanchong/jenkins/commits{/sha}", "git_commits_url"=>"https://api.github.com/repos/zhangyanchong/jenkins/git/commits{/sha}", "comments_url"=>"https://api.github.com/repos/zhangyanchong/jenkins/comments{/number}", "issue_comment_url"=>"https://api.github.com/repos/zhangyanchong/jenkins/issues/comments{/number}", "contents_url"=>"https://api.github.com/repos/zhangyanchong/jenkins/contents/{+path}", "compare_url"=>"https://api.github.com/repos/zhangyanchong/jenkins/compare/{base}...{head}", "merges_url"=>"https://api.github.com/repos/zhangyanchong/jenkins/merges", "archive_url"=>"https://api.github.com/repos/zhangyanchong/jenkins/{archive_format}{/ref}", "downloads_url"=>"https://api.github.com/repos/zhangyanchong/jenkins/downloads", "issues_url"=>"https://api.github.com/repos/zhangyanchong/jenkins/issues{/number}", "pulls_url"=>"https://api.github.com/repos/zhangyanchong/jenkins/pulls{/number}", "milestones_url"=>"https://api.github.com/repos/zhangyanchong/jenkins/milestones{/number}", "notifications_url"=>"https://api.github.com/repos/zhangyanchong/jenkins/notifications{?since,all,participating}", "labels_url"=>"https://api.github.com/repos/zhangyanchong/jenkins/labels{/name}", "releases_url"=>"https://api.github.com/repos/zhangyanchong/jenkins/releases{/id}", "deployments_url"=>"https://api.github.com/repos/zhangyanchong/jenkins/deployments", "created_at"=>2018-09-04 09:06:15 UTC, "updated_at"=>2018-09-04 09:23:59 UTC, "pushed_at"=>2018-09-04 09:23:58 UTC, "git_url"=>"git://github.com/zhangyanchong/jenkins.git", "ssh_url"=>"git@github.com:zhangyanchong/jenkins.git", "clone_url"=>"https://github.com/zhangyanchong/jenkins.git", "svn_url"=>"https://github.com/zhangyanchong/jenkins", "homepage"=>nil, "size"=>535, "stargazers_count"=>0, "watchers_count"=>0, "language"=>nil, "has_issues"=>true, "has_projects"=>true, "has_downloads"=>true, "has_wiki"=>true, "has_pages"=>false, "has_discussions"=>false, "forks_count"=>0, "mirror_url"=>nil, "archived"=>false, "disabled"=>false, "open_issues_count"=>0, "license"=>nil, "allow_forking"=>true, "is_template"=>false, "web_commit_signoff_required"=>false, "topics"=>[], "visibility"=>"public", "forks"=>0, "open_issues"=>0, "watchers"=>0, "default_branch"=>"master", "permissions"=>{"admin"=>false, "maintain"=>false, "push"=>false, "triage"=>false, "pull"=>false}}{"id"=>611149629, "node_id"=>"R_kgDOJG1nPQ", "name"=>"gin_zyc", "full_name"=>"zhangyanchong/gin_zyc", "private"=>false, "owner"=>{"login"=>"zhangyanchong", "id"=>15809123, "node_id"=>"MDQ6VXNlcjE1ODA5MTIz", "avatar_url"=>"https://avatars.githubusercontent.com/u/15809123?v=4", "gravatar_id"=>"", "url"=>"https://api.github.com/users/zhangyanchong", "html_url"=>"https://github.com/zhangyanchong", "followers_url"=>"https://api.github.com/users/zhangyanchong/followers", "following_url"=>"https://api.github.com/users/zhangyanchong/following{/other_user}", "gists_url"=>"https://api.github.com/users/zhangyanchong/gists{/gist_id}", "starred_url"=>"https://api.github.com/users/zhangyanchong/starred{/owner}{/repo}", "subscriptions_url"=>"https://api.github.com/users/zhangyanchong/subscriptions", "organizations_url"=>"https://api.github.com/users/zhangyanchong/orgs", "repos_url"=>"https://api.github.com/users/zhangyanchong/repos", "events_url"=>"https://api.github.com/users/zhangyanchong/events{/privacy}", "received_events_url"=>"https://api.github.com/users/zhangyanchong/received_events", "type"=>"User", "site_admin"=>false}, "html_url"=>"https://github.com/zhangyanchong/gin_zyc", "description"=>"开放", "fork"=>false, "url"=>"https://api.github.com/repos/zhangyanchong/gin_zyc", "forks_url"=>"https://api.github.com/repos/zhangyanchong/gin_zyc/forks", "keys_url"=>"https://api.github.com/repos/zhangyanchong/gin_zyc/keys{/key_id}", "collaborators_url"=>"https://api.github.com/repos/zhangyanchong/gin_zyc/collaborators{/collaborator}", "teams_url"=>"https://api.github.com/repos/zhangyanchong/gin_zyc/teams", "hooks_url"=>"https://api.github.com/repos/zhangyanchong/gin_zyc/hooks", "issue_events_url"=>"https://api.github.com/repos/zhangyanchong/gin_zyc/issues/events{/number}", "events_url"=>"https://api.github.com/repos/zhangyanchong/gin_zyc/events", "assignees_url"=>"https://api.github.com/repos/zhangyanchong/gin_zyc/assignees{/user}", "branches_url"=>"https://api.github.com/repos/zhangyanchong/gin_zyc/branches{/branch}", "tags_url"=>"https://api.github.com/repos/zhangyanchong/gin_zyc/tags", "blobs_url"=>"https://api.github.com/repos/zhangyanchong/gin_zyc/git/blobs{/sha}", "git_tags_url"=>"https://api.github.com/repos/zhangyanchong/gin_zyc/git/tags{/sha}", "git_refs_url"=>"https://api.github.com/repos/zhangyanchong/gin_zyc/git/refs{/sha}", "trees_url"=>"https://api.github.com/repos/zhangyanchong/gin_zyc/git/trees{/sha}", "statuses_url"=>"https://api.github.com/repos/zhangyanchong/gin_zyc/statuses/{sha}", "languages_url"=>"https://api.github.com/repos/zhangyanchong/gin_zyc/languages", "stargazers_url"=>"https://api.github.com/repos/zhangyanchong/gin_zyc/stargazers", "contributors_url"=>"https://api.github.com/repos/zhangyanchong/gin_zyc/contributors", "subscribers_url"=>"https://api.github.com/repos/zhangyanchong/gin_zyc/subscribers", "subscription_url"=>"https://api.github.com/repos/zhangyanchong/gin_zyc/subscription", "commits_url"=>"https://api.github.com/repos/zhangyanchong/gin_zyc/commits{/sha}", "git_commits_url"=>"https://api.github.com/repos/zhangyanchong/gin_zyc/git/commits{/sha}", "comments_url"=>"https://api.github.com/repos/zhangyanchong/gin_zyc/comments{/number}", "issue_comment_url"=>"https://api.github.com/repos/zhangyanchong/gin_zyc/issues/comments{/number}", "contents_url"=>"https://api.github.com/repos/zhangyanchong/gin_zyc/contents/{+path}", "compare_url"=>"https://api.github.com/repos/zhangyanchong/gin_zyc/compare/{base}...{head}", "merges_url"=>"https://api.github.com/repos/zhangyanchong/gin_zyc/merges", "archive_url"=>"https://api.github.com/repos/zhangyanchong/gin_zyc/{archive_format}{/ref}", "downloads_url"=>"https://api.github.com/repos/zhangyanchong/gin_zyc/downloads", "issues_url"=>"https://api.github.com/repos/zhangyanchong/gin_zyc/issues{/number}", "pulls_url"=>"https://api.github.com/repos/zhangyanchong/gin_zyc/pulls{/number}", "milestones_url"=>"https://api.github.com/repos/zhangyanchong/gin_zyc/milestones{/number}", "notifications_url"=>"https://api.github.com/repos/zhangyanchong/gin_zyc/notifications{?since,all,participating}", "labels_url"=>"https://api.github.com/repos/zhangyanchong/gin_zyc/labels{/name}", "releases_url"=>"https://api.github.com/repos/zhangyanchong/gin_zyc/releases{/id}", "deployments_url"=>"https://api.github.com/repos/zhangyanchong/gin_zyc/deployments", "created_at"=>2023-03-08 08:12:08 UTC, "updated_at"=>2023-03-11 13:36:17 UTC, "pushed_at"=>2023-03-12 01:35:17 UTC, "git_url"=>"git://github.com/zhangyanchong/gin_zyc.git", "ssh_url"=>"git@github.com:zhangyanchong/gin_zyc.git", "clone_url"=>"https://github.com/zhangyanchong/gin_zyc.git", "svn_url"=>"https://github.com/zhangyanchong/gin_zyc", "homepage"=>nil, "size"=>16327, "stargazers_count"=>0, "watchers_count"=>0, "language"=>"Go", "has_issues"=>true, "has_projects"=>true, "has_downloads"=>true, "has_wiki"=>true, "has_pages"=>false, "has_discussions"=>false, "forks_count"=>0, "mirror_url"=>nil, "archived"=>false, "disabled"=>false, "open_issues_count"=>0, "license"=>nil, "allow_forking"=>true, "is_template"=>false, "web_commit_signoff_required"=>false, "topics"=>[], "visibility"=>"public", "forks"=>0, "open_issues"=>0, "watchers"=>0, "default_branch"=>"main", "permissions"=>{"admin"=>false, "maintain"=>false, "push"=>false, "triage"=>false, "pull"=>false}}{"id"=>147313748, "node_id"=>"MDEwOlJlcG9zaXRvcnkxNDczMTM3NDg=", "name"=>"docker", "full_name"=>"zhangyanchong/docker", "private"=>false, "owner"=>{"login"=>"zhangyanchong", "id"=>15809123, "node_id"=>"MDQ6VXNlcjE1ODA5MTIz", "avatar_url"=>"https://avatars.githubusercontent.com/u/15809123?v=4", "gravatar_id"=>"", "url"=>"https://api.github.com/users/zhangyanchong", "html_url"=>"https://github.com/zhangyanchong", "followers_url"=>"https://api.github.com/users/zhangyanchong/followers", "following_url"=>"https://api.github.com/users/zhangyanchong/following{/other_user}", "gists_url"=>"https://api.github.com/users/zhangyanchong/gists{/gist_id}", "starred_url"=>"https://api.github.com/users/zhangyanchong/starred{/owner}{/repo}", "subscriptions_url"=>"https://api.github.com/users/zhangyanchong/subscriptions", "organizations_url"=>"https://api.github.com/users/zhangyanchong/orgs", "repos_url"=>"https://api.github.com/users/zhangyanchong/repos", "events_url"=>"https://api.github.com/users/zhangyanchong/events{/privacy}", "received_events_url"=>"https://api.github.com/users/zhangyanchong/received_events", "type"=>"User", "site_admin"=>false}, "html_url"=>"https://github.com/zhangyanchong/docker", "description"=>nil, "fork"=>false, "url"=>"https://api.github.com/repos/zhangyanchong/docker", "forks_url"=>"https://api.github.com/repos/zhangyanchong/docker/forks", "keys_url"=>"https://api.github.com/repos/zhangyanchong/docker/keys{/key_id}", "collaborators_url"=>"https://api.github.com/repos/zhangyanchong/docker/collaborators{/collaborator}", "teams_url"=>"https://api.github.com/repos/zhangyanchong/docker/teams", "hooks_url"=>"https://api.github.com/repos/zhangyanchong/docker/hooks", "issue_events_url"=>"https://api.github.com/repos/zhangyanchong/docker/issues/events{/number}", "events_url"=>"https://api.github.com/repos/zhangyanchong/docker/events", "assignees_url"=>"https://api.github.com/repos/zhangyanchong/docker/assignees{/user}", "branches_url"=>"https://api.github.com/repos/zhangyanchong/docker/branches{/branch}", "tags_url"=>"https://api.github.com/repos/zhangyanchong/docker/tags", "blobs_url"=>"https://api.github.com/repos/zhangyanchong/docker/git/blobs{/sha}", "git_tags_url"=>"https://api.github.com/repos/zhangyanchong/docker/git/tags{/sha}", "git_refs_url"=>"https://api.github.com/repos/zhangyanchong/docker/git/refs{/sha}", "trees_url"=>"https://api.github.com/repos/zhangyanchong/docker/git/trees{/sha}", "statuses_url"=>"https://api.github.com/repos/zhangyanchong/docker/statuses/{sha}", "languages_url"=>"https://api.github.com/repos/zhangyanchong/docker/languages", "stargazers_url"=>"https://api.github.com/repos/zhangyanchong/docker/stargazers", "contributors_url"=>"https://api.github.com/repos/zhangyanchong/docker/contributors", "subscribers_url"=>"https://api.github.com/repos/zhangyanchong/docker/subscribers", "subscription_url"=>"https://api.github.com/repos/zhangyanchong/docker/subscription", "commits_url"=>"https://api.github.com/repos/zhangyanchong/docker/commits{/sha}", "git_commits_url"=>"https://api.github.com/repos/zhangyanchong/docker/git/commits{/sha}", "comments_url"=>"https://api.github.com/repos/zhangyanchong/docker/comments{/number}", "issue_comment_url"=>"https://api.github.com/repos/zhangyanchong/docker/issues/comments{/number}", "contents_url"=>"https://api.github.com/repos/zhangyanchong/docker/contents/{+path}", "compare_url"=>"https://api.github.com/repos/zhangyanchong/docker/compare/{base}...{head}", "merges_url"=>"https://api.github.com/repos/zhangyanchong/docker/merges", "archive_url"=>"https://api.github.com/repos/zhangyanchong/docker/{archive_format}{/ref}", "downloads_url"=>"https://api.github.com/repos/zhangyanchong/docker/downloads", "issues_url"=>"https://api.github.com/repos/zhangyanchong/docker/issues{/number}", "pulls_url"=>"https://api.github.com/repos/zhangyanchong/docker/pulls{/number}", "milestones_url"=>"https://api.github.com/repos/zhangyanchong/docker/milestones{/number}", "notifications_url"=>"https://api.github.com/repos/zhangyanchong/docker/notifications{?since,all,participating}", "labels_url"=>"https://api.github.com/repos/zhangyanchong/docker/labels{/name}", "releases_url"=>"https://api.github.com/repos/zhangyanchong/docker/releases{/id}", "deployments_url"=>"https://api.github.com/repos/zhangyanchong/docker/deployments", "created_at"=>2018-09-04 08:32:01 UTC, "updated_at"=>2020-06-30 06:15:44 UTC, "pushed_at"=>2020-06-30 06:15:41 UTC, "git_url"=>"git://github.com/zhangyanchong/docker.git", "ssh_url"=>"git@github.com:zhangyanchong/docker.git", "clone_url"=>"https://github.com/zhangyanchong/docker.git", "svn_url"=>"https://github.com/zhangyanchong/docker", "homepage"=>nil, "size"=>227, "stargazers_count"=>0, "watchers_count"=>0, "language"=>nil, "has_issues"=>true, "has_projects"=>true, "has_downloads"=>true, "has_wiki"=>true, "has_pages"=>false, "has_discussions"=>false, "forks_count"=>0, "mirror_url"=>nil, "archived"=>false, "disabled"=>false, "open_issues_count"=>0, "license"=>nil, "allow_forking"=>true, "is_template"=>false, "web_commit_signoff_required"=>false, "topics"=>[], "visibility"=>"public", "forks"=>0, "open_issues"=>0, "watchers"=>0, "default_branch"=>"master", "permissions"=>{"admin"=>false, "maintain"=>false, "push"=>false, "triage"=>false, "pull"=>false}}" in pages/open-source.md
done in 3.437 seconds.
Auto-regeneration: enabled for '/Users/liufangting/my_git/echo-music.github.io'
Server address: http://127.0.0.1:4000
Server running... press ctrl-c to stop.
用浏览器打开http://127.0.0.1:4000,就可以在本地访问博客,可以一边调整一边对照浏览,像极是一种调试模式。
9、添加文章和格式(博客写作)
要发布的文章都放在_posts目录下面,按照格式”年-月-日-文章名.markdown”
在_posts下建立文件或者拷贝过来
2020-05-20-mac-jekyll-github-blog.md
文章的开头,需要参照默认模板template
---
layout: post
title: template page
categories: [cate1, cate2]
description: some word here
keywords: keyword1, keyword2
---
- title: 文章标题
- date: 显示日期
- description: 描述
- categories: 标签分类
更多详细请查阅jekyll官网文档,文档相关漂亮的。
文章最好按markdown标准语法来,养成良好的习惯,这样能提升写博客的效率。
10、发布文章
使用 git commit 提交修改,然后用 git push 将修改推送到 github 服务器(服务器会自动编译),之后访问你的博客公网链接 https://username.github.io ,即可。
11、绑定域名
在终端ping自己的域名
$ ping echo-music.github.io
得到公网IP地址:
PING sni.github.map.fastly.net (151.101.229.147): 56 data bytes
在域名供应商的控制台,添加解析,两条 A 记录:
记录类型 主机记录 解析线路(运营商) 记录值
A @ 默认 151.101.229.147
A www 默认 151.101.229.147
记录值填写刚才获得的ip地址,在博客根目录添加CNAME文件,并将你的域名写入:
echo "www.echo-music.com" > CNAME
将CNAME提交,待域名解析完成,就可以了(大概1分钟解析时间)。
参考资料
后话
借助开源项目Jekyll+免费的Github平台,就可以搭建属于自己的高颜值博客。
无需数据库、评论功能,不需要不断的更新版本——只用关心你的博客内容,真是简单、省心、高效,非常Nice!
一个好的博客,更多美好的开始。