{"action":"created","comment":{"url":"https://api.github.com/repos/calpa/blog/pulls/comments/227751183","pull_request_review_id":167860785,"id":227751183,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNzc1MTE4Mw==","diff_hunk":"@@ -0,0 +1,229 @@\n+## Calpa的博客\n+\n+[![GitHub license](https://img.shields.io/github/license/calpa/blog.svg)](https://github.com/calpa/blog/blob/master/LICENSE)\n+[![Accept Pull Requests](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/calpa/blog/pulls)\n+[![Twitter](https://img.shields.io/twitter/url/https/github.com/calpa/blog.svg?style=social)](https://twitter.com/intent/tweet?text=Wow:&url=https%3A%2F%2Fgithub.com%2Fcalpa%2Fblog)\n+[![Greenkeeper badge](https://badges.greenkeeper.io/calpa/blog.svg)](https://greenkeeper.io/)\n+[![Build Status](https://travis-ci.org/travis-ci/travis-web.svg?branch=master)](https://github.com/calpa/blog/blob/master/.travis.yml)\n+[![CodeFactor](https://www.codefactor.io/repository/github/calpa/blog/badge)](https://www.codefactor.io/repository/github/calpa/blog)\n+\n+![HomePage](https://i.imgur.com/6Xd4yVQ.png)\n+\n+Calpa的博客入门\n+\n+如果你喜欢 [我的博客](https://calpa.me)，请给个star，多谢。\n+\n+## 功能\n+\n+1. 响应式设计\n+2. 高速解析Markdown (基于[remarkable](https://github.com/jonschlinkert/remarkable))\n+3. 支持站点地图\n+4. 自动加载Font Awesome(基于 [react-fontawesome](https://github.com/FortAwesome/react-fontawesome))\n+5. 源自[Contentful][1],一个灵活且易于使用的内容管理系统\n+\n+## 前提\n+\n+1. Git\n+2. Node：从8.5.0或更高版本开始的任何8.x版本\n+3. fork本项目 （想要贡献的话）\n+4. 在本地计算机上克隆本项目\n+\n+## 开发\n+\n+如何开始这个项目?\n+\n+1. 安装 Gatsby-CLI\n+\n+```\n+npm install --global gatsby-cli\n+```\n+\n+2. 使用Gatsby启动器创建新的Gatsby项目，`awesome-blog`是您博客的文件夹\n+\n+```\n+gatsby new awesome-blog https://github.com/calpa/blog\n+```\n+\n+3. 打开文件夹\n+\n+```\n+cd awesome-blog\n+```\n+\n+4. 运行开发服务器\n+\n+   1. `npm start` 启动热重载开发服务器 (基于[Gatsby](https://www.gatsbyjs.org/))\n+   2. `open http://localhost:8000` 在您喜欢的浏览器中打开\n+\n+5. 连接 [Contentful][1] 服务器\n+\n+   1. 将以下配置添加到`.env.development`文件中\n+\n+   ```\n+   API_SPACE_ID = Your Contentful Space ID\n+   API_TOKEN = Your Content Delivery (Preview) API - access token\n+   ```\n+\n+   如果您使用的是[Contentful的预览API](https://www.contentful.com/developers/docs/references/content-preview-api/)，那么所有未发布的内容都将可用。\n+\n+## 配置\n+\n+在 `data/config`编辑exports的对象\n+\n+注意: [想要查找theme_color十六进制代码，请单击此处。](https://www.colorhexa.com/)\n+\n+```\n+module.exports = {\n+  title: 'your blog title here',\n+  maxPages: 12\n+  meta: {\n+    description: 'blog description',\n+    keyword: 'blog, JavaScript',\n+    theme_color: '#hexcode',\n+    favicon: 'https:yourimageurl.com',\n+    google_site_verification: 'your google verification hash',\n+  },\n+  name: 'your name',\n+  email: 'your_email@gmail.com',\n+  iconUrl: 'https://youricon.jpg',\n+  License: 'by',\n+  url: 'https://yourblog.me',\n+  about: '/2018/05/01/about-your-name/',\n+  // Sidebar\n+  zhihuUsername: 'your zhiu user name here',\n+  githubUsername: 'your github user name here',\n+  friends: [\n+    {\n+      title: 'friend title',\n+      href: 'link to their blog',\n+    }\n+  ]\n+```\n+\n+插件的配置文件:\n+\n+```\n+gaOptimizeId: 'GTM-WHP7SC5',\n+gaTrackId: 'UA-84737574-3',\n+navbarList: [\n+  {\n+    href: '/stats/',\n+    title: 'stat title',\n+  },\n+  {\n+    href: '/tags/',\n+    title: 'tags',\n+  },\n+  {\n+    href: '/guestbook/',\n+    title: 'guestbook',\n+  },\n+  {\n+    href: '/2018/10/04/about-your-blog/',\n+    title: 'your title',\n+  },\n+],\n+redirectors: [\n+  {\n+    fromPath: '/',\n+    toPath: '/page/1',\n+  },\n+],\n+```\n+\n+配置[Gitalk](https://gitalk.github.io/)\n+\n+```\n+gitalk: {\n+    clientID: '18255f031b5e11edd98a',\n+    clientSecret: '2ff6331da9e53f9a91bcc991d38d550c85026714',\n+    repo: 'calpa.github.io',\n+    owner: 'calpa',\n+    admin: ['calpa'],\n+    distractionFreeMode: true,\n+  },\n+}\n+```\n+\n+## 内容模型\n+\n+1. 帖子\n+\n+要创建帖子，只需提供以下对象模型：\n+\n+```json\n+{\n+  \"name\": \"Post\",\n+  \"fields\": {\n+    \"title\": \"Post Title\",\n+    \"headerImgur\": \"header Image Link\",\n+    \"headerBackgroundColor\": \"#66ccff\",\n+    \"tags\": \"tag1, tag2, tag3\",\n+    \"url\": \"awesome-post\",\n+    \"createdDate\": \"new Date() or other dayjs supported datetime value\",\n+    \"content\": \"your markdown content\",\n+    \"jueJinLikeIconLink\": \"掘金 Badge Icon Url\",\n+    \"jueJinPostLink\": \"掘金 Post Url\"\n+  }\n+}\n+```\n+\n+2. 头部","path":"README-zh-Hans.md","position":171,"original_position":171,"commit_id":"6a219720dffb6861c6c412edd9ab9ff4c0a359d1","original_commit_id":"6a219720dffb6861c6c412edd9ab9ff4c0a359d1","user":{"login":"calpa","id":19569045,"node_id":"MDQ6VXNlcjE5NTY5MDQ1","avatar_url":"https://avatars1.githubusercontent.com/u/19569045?v=4","gravatar_id":"","url":"https://api.github.com/users/calpa","html_url":"https://github.com/calpa","followers_url":"https://api.github.com/users/calpa/followers","following_url":"https://api.github.com/users/calpa/following{/other_user}","gists_url":"https://api.github.com/users/calpa/gists{/gist_id}","starred_url":"https://api.github.com/users/calpa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calpa/subscriptions","organizations_url":"https://api.github.com/users/calpa/orgs","repos_url":"https://api.github.com/users/calpa/repos","events_url":"https://api.github.com/users/calpa/events{/privacy}","received_events_url":"https://api.github.com/users/calpa/received_events","type":"User","site_admin":false},"body":"这个 Header 的意思是文章最顶端显示的大图，而不是头部。","created_at":"2018-10-24T11:39:28Z","updated_at":"2018-10-24T11:49:12Z","html_url":"https://github.com/calpa/blog/pull/68#discussion_r227751183","pull_request_url":"https://api.github.com/repos/calpa/blog/pulls/68","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/calpa/blog/pulls/comments/227751183"},"html":{"href":"https://github.com/calpa/blog/pull/68#discussion_r227751183"},"pull_request":{"href":"https://api.github.com/repos/calpa/blog/pulls/68"}}},"pull_request":{"url":"https://api.github.com/repos/calpa/blog/pulls/68","id":225356865,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1MzU2ODY1","html_url":"https://github.com/calpa/blog/pull/68","diff_url":"https://github.com/calpa/blog/pull/68.diff","patch_url":"https://github.com/calpa/blog/pull/68.patch","issue_url":"https://api.github.com/repos/calpa/blog/issues/68","number":68,"state":"open","locked":false,"title":"Add README-zh-Hans.md add README-zh-Hant.md","user":{"login":"hu-qi","id":17986122,"node_id":"MDQ6VXNlcjE3OTg2MTIy","avatar_url":"https://avatars2.githubusercontent.com/u/17986122?v=4","gravatar_id":"","url":"https://api.github.com/users/hu-qi","html_url":"https://github.com/hu-qi","followers_url":"https://api.github.com/users/hu-qi/followers","following_url":"https://api.github.com/users/hu-qi/following{/other_user}","gists_url":"https://api.github.com/users/hu-qi/gists{/gist_id}","starred_url":"https://api.github.com/users/hu-qi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hu-qi/subscriptions","organizations_url":"https://api.github.com/users/hu-qi/orgs","repos_url":"https://api.github.com/users/hu-qi/repos","events_url":"https://api.github.com/users/hu-qi/events{/privacy}","received_events_url":"https://api.github.com/users/hu-qi/received_events","type":"User","site_admin":false},"body":"## Description\r\n1. Add README-zh-Hans.md for Simplified Chinese.\r\n2. Add  README-zh-Hant.md for Traditional Chinese.\r\n\r\n## Motivation and Context\r\n[Add Chinese README.md #67](https://github.com/calpa/blog/issues/67)\r\n\r\n## Types of changes\r\n- [x ] Bug fix (non-breaking change which fixes an issue)\r\n- [x ] New feature (non-breaking change which adds functionality)\r\n- [x ] Breaking change (fix or feature that would cause existing functionality to change)\r\n\r\n## Checklist:\r\n<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->\r\n<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->\r\n- [ ] My code follows the code style of this project.\r\n- [x ] My change requires a change to the documentation.\r\n- [ x] I have updated the documentation accordingly.\r\n- [ ] I have read the **CONTRIBUTING** document.\r\n- [ x] I have added tests to cover my changes.\r\n- [ ] All new and existing tests passed.\r\n","created_at":"2018-10-24T10:58:02Z","updated_at":"2018-10-24T11:49:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8d3d5d322593ae6e41c848e7bbcd5b728d091f3d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/calpa/blog/pulls/68/commits","review_comments_url":"https://api.github.com/repos/calpa/blog/pulls/68/comments","review_comment_url":"https://api.github.com/repos/calpa/blog/pulls/comments{/number}","comments_url":"https://api.github.com/repos/calpa/blog/issues/68/comments","statuses_url":"https://api.github.com/repos/calpa/blog/statuses/6a219720dffb6861c6c412edd9ab9ff4c0a359d1","head":{"label":"hu-qi:master","ref":"master","sha":"6a219720dffb6861c6c412edd9ab9ff4c0a359d1","user":{"login":"hu-qi","id":17986122,"node_id":"MDQ6VXNlcjE3OTg2MTIy","avatar_url":"https://avatars2.githubusercontent.com/u/17986122?v=4","gravatar_id":"","url":"https://api.github.com/users/hu-qi","html_url":"https://github.com/hu-qi","followers_url":"https://api.github.com/users/hu-qi/followers","following_url":"https://api.github.com/users/hu-qi/following{/other_user}","gists_url":"https://api.github.com/users/hu-qi/gists{/gist_id}","starred_url":"https://api.github.com/users/hu-qi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hu-qi/subscriptions","organizations_url":"https://api.github.com/users/hu-qi/orgs","repos_url":"https://api.github.com/users/hu-qi/repos","events_url":"https://api.github.com/users/hu-qi/events{/privacy}","received_events_url":"https://api.github.com/users/hu-qi/received_events","type":"User","site_admin":false},"repo":{"id":154471630,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQ0NzE2MzA=","name":"blog","full_name":"hu-qi/blog","private":false,"owner":{"login":"hu-qi","id":17986122,"node_id":"MDQ6VXNlcjE3OTg2MTIy","avatar_url":"https://avatars2.githubusercontent.com/u/17986122?v=4","gravatar_id":"","url":"https://api.github.com/users/hu-qi","html_url":"https://github.com/hu-qi","followers_url":"https://api.github.com/users/hu-qi/followers","following_url":"https://api.github.com/users/hu-qi/following{/other_user}","gists_url":"https://api.github.com/users/hu-qi/gists{/gist_id}","starred_url":"https://api.github.com/users/hu-qi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hu-qi/subscriptions","organizations_url":"https://api.github.com/users/hu-qi/orgs","repos_url":"https://api.github.com/users/hu-qi/repos","events_url":"https://api.github.com/users/hu-qi/events{/privacy}","received_events_url":"https://api.github.com/users/hu-qi/received_events","type":"User","site_admin":false},"html_url":"https://github.com/hu-qi/blog","description":"Starter of Calpa's Blog","fork":true,"url":"https://api.github.com/repos/hu-qi/blog","forks_url":"https://api.github.com/repos/hu-qi/blog/forks","keys_url":"https://api.github.com/repos/hu-qi/blog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hu-qi/blog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hu-qi/blog/teams","hooks_url":"https://api.github.com/repos/hu-qi/blog/hooks","issue_events_url":"https://api.github.com/repos/hu-qi/blog/issues/events{/number}","events_url":"https://api.github.com/repos/hu-qi/blog/events","assignees_url":"https://api.github.com/repos/hu-qi/blog/assignees{/user}","branches_url":"https://api.github.com/repos/hu-qi/blog/branches{/branch}","tags_url":"https://api.github.com/repos/hu-qi/blog/tags","blobs_url":"https://api.github.com/repos/hu-qi/blog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hu-qi/blog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hu-qi/blog/git/refs{/sha}","trees_url":"https://api.github.com/repos/hu-qi/blog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hu-qi/blog/statuses/{sha}","languages_url":"https://api.github.com/repos/hu-qi/blog/languages","stargazers_url":"https://api.github.com/repos/hu-qi/blog/stargazers","contributors_url":"https://api.github.com/repos/hu-qi/blog/contributors","subscribers_url":"https://api.github.com/repos/hu-qi/blog/subscribers","subscription_url":"https://api.github.com/repos/hu-qi/blog/subscription","commits_url":"https://api.github.com/repos/hu-qi/blog/commits{/sha}","git_commits_url":"https://api.github.com/repos/hu-qi/blog/git/commits{/sha}","comments_url":"https://api.github.com/repos/hu-qi/blog/comments{/number}","issue_comment_url":"https://api.github.com/repos/hu-qi/blog/issues/comments{/number}","contents_url":"https://api.github.com/repos/hu-qi/blog/contents/{+path}","compare_url":"https://api.github.com/repos/hu-qi/blog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hu-qi/blog/merges","archive_url":"https://api.github.com/repos/hu-qi/blog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hu-qi/blog/downloads","issues_url":"https://api.github.com/repos/hu-qi/blog/issues{/number}","pulls_url":"https://api.github.com/repos/hu-qi/blog/pulls{/number}","milestones_url":"https://api.github.com/repos/hu-qi/blog/milestones{/number}","notifications_url":"https://api.github.com/repos/hu-qi/blog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hu-qi/blog/labels{/name}","releases_url":"https://api.github.com/repos/hu-qi/blog/releases{/id}","deployments_url":"https://api.github.com/repos/hu-qi/blog/deployments","created_at":"2018-10-24T09:08:39Z","updated_at":"2018-10-24T10:43:56Z","pushed_at":"2018-10-24T10:43:55Z","git_url":"git://github.com/hu-qi/blog.git","ssh_url":"git@github.com:hu-qi/blog.git","clone_url":"https://github.com/hu-qi/blog.git","svn_url":"https://github.com/hu-qi/blog","homepage":"https://calpa.me/","size":6361,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"calpa:master","ref":"master","sha":"f732be55555f7e64fa64d47e3d99ced79c2ca8aa","user":{"login":"calpa","id":19569045,"node_id":"MDQ6VXNlcjE5NTY5MDQ1","avatar_url":"https://avatars1.githubusercontent.com/u/19569045?v=4","gravatar_id":"","url":"https://api.github.com/users/calpa","html_url":"https://github.com/calpa","followers_url":"https://api.github.com/users/calpa/followers","following_url":"https://api.github.com/users/calpa/following{/other_user}","gists_url":"https://api.github.com/users/calpa/gists{/gist_id}","starred_url":"https://api.github.com/users/calpa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calpa/subscriptions","organizations_url":"https://api.github.com/users/calpa/orgs","repos_url":"https://api.github.com/users/calpa/repos","events_url":"https://api.github.com/users/calpa/events{/privacy}","received_events_url":"https://api.github.com/users/calpa/received_events","type":"User","site_admin":false},"repo":{"id":107015560,"node_id":"MDEwOlJlcG9zaXRvcnkxMDcwMTU1NjA=","name":"blog","full_name":"calpa/blog","private":false,"owner":{"login":"calpa","id":19569045,"node_id":"MDQ6VXNlcjE5NTY5MDQ1","avatar_url":"https://avatars1.githubusercontent.com/u/19569045?v=4","gravatar_id":"","url":"https://api.github.com/users/calpa","html_url":"https://github.com/calpa","followers_url":"https://api.github.com/users/calpa/followers","following_url":"https://api.github.com/users/calpa/following{/other_user}","gists_url":"https://api.github.com/users/calpa/gists{/gist_id}","starred_url":"https://api.github.com/users/calpa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calpa/subscriptions","organizations_url":"https://api.github.com/users/calpa/orgs","repos_url":"https://api.github.com/users/calpa/repos","events_url":"https://api.github.com/users/calpa/events{/privacy}","received_events_url":"https://api.github.com/users/calpa/received_events","type":"User","site_admin":false},"html_url":"https://github.com/calpa/blog","description":"Starter of Calpa's Blog","fork":false,"url":"https://api.github.com/repos/calpa/blog","forks_url":"https://api.github.com/repos/calpa/blog/forks","keys_url":"https://api.github.com/repos/calpa/blog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/calpa/blog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/calpa/blog/teams","hooks_url":"https://api.github.com/repos/calpa/blog/hooks","issue_events_url":"https://api.github.com/repos/calpa/blog/issues/events{/number}","events_url":"https://api.github.com/repos/calpa/blog/events","assignees_url":"https://api.github.com/repos/calpa/blog/assignees{/user}","branches_url":"https://api.github.com/repos/calpa/blog/branches{/branch}","tags_url":"https://api.github.com/repos/calpa/blog/tags","blobs_url":"https://api.github.com/repos/calpa/blog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/calpa/blog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/calpa/blog/git/refs{/sha}","trees_url":"https://api.github.com/repos/calpa/blog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/calpa/blog/statuses/{sha}","languages_url":"https://api.github.com/repos/calpa/blog/languages","stargazers_url":"https://api.github.com/repos/calpa/blog/stargazers","contributors_url":"https://api.github.com/repos/calpa/blog/contributors","subscribers_url":"https://api.github.com/repos/calpa/blog/subscribers","subscription_url":"https://api.github.com/repos/calpa/blog/subscription","commits_url":"https://api.github.com/repos/calpa/blog/commits{/sha}","git_commits_url":"https://api.github.com/repos/calpa/blog/git/commits{/sha}","comments_url":"https://api.github.com/repos/calpa/blog/comments{/number}","issue_comment_url":"https://api.github.com/repos/calpa/blog/issues/comments{/number}","contents_url":"https://api.github.com/repos/calpa/blog/contents/{+path}","compare_url":"https://api.github.com/repos/calpa/blog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/calpa/blog/merges","archive_url":"https://api.github.com/repos/calpa/blog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/calpa/blog/downloads","issues_url":"https://api.github.com/repos/calpa/blog/issues{/number}","pulls_url":"https://api.github.com/repos/calpa/blog/pulls{/number}","milestones_url":"https://api.github.com/repos/calpa/blog/milestones{/number}","notifications_url":"https://api.github.com/repos/calpa/blog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/calpa/blog/labels{/name}","releases_url":"https://api.github.com/repos/calpa/blog/releases{/id}","deployments_url":"https://api.github.com/repos/calpa/blog/deployments","created_at":"2017-10-15T13:40:48Z","updated_at":"2018-10-23T04:27:45Z","pushed_at":"2018-10-24T10:58:02Z","git_url":"git://github.com/calpa/blog.git","ssh_url":"git@github.com:calpa/blog.git","clone_url":"https://github.com/calpa/blog.git","svn_url":"https://github.com/calpa/blog","homepage":"https://calpa.me/","size":6357,"stargazers_count":54,"watchers_count":54,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":22,"mirror_url":null,"archived":false,"open_issues_count":12,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":22,"open_issues":12,"watchers":54,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/calpa/blog/pulls/68"},"html":{"href":"https://github.com/calpa/blog/pull/68"},"issue":{"href":"https://api.github.com/repos/calpa/blog/issues/68"},"comments":{"href":"https://api.github.com/repos/calpa/blog/issues/68/comments"},"review_comments":{"href":"https://api.github.com/repos/calpa/blog/pulls/68/comments"},"review_comment":{"href":"https://api.github.com/repos/calpa/blog/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/calpa/blog/pulls/68/commits"},"statuses":{"href":"https://api.github.com/repos/calpa/blog/statuses/6a219720dffb6861c6c412edd9ab9ff4c0a359d1"}},"author_association":"NONE"}}
{"actor":{"display_login":"calpa"}}