├── .gitignore ├── .gitlab-ci.yml ├── .npmignore ├── LICENSE ├── README.md ├── deploy.sh ├── docs ├── 2019 │ └── 10 │ │ ├── 11 │ │ └── README │ │ │ └── index.html │ │ ├── 16 │ │ └── README │ │ │ └── index.html │ │ └── 09 │ │ └── hello-world │ │ └── index.html ├── .gitignore ├── .nojekyll ├── _config.yml ├── archives │ ├── 2019 │ │ ├── 10 │ │ │ └── index.html │ │ └── index.html │ └── index.html ├── css │ ├── fonts │ │ ├── FontAwesome.otf │ │ ├── fontawesome-webfont.eot │ │ ├── fontawesome-webfont.svg │ │ ├── fontawesome-webfont.ttf │ │ └── fontawesome-webfont.woff │ ├── images │ │ └── banner.jpg │ └── style.css ├── fancybox │ ├── blank.gif │ ├── fancybox_loading.gif │ ├── fancybox_loading@2x.gif │ ├── fancybox_overlay.png │ ├── fancybox_sprite.png │ ├── fancybox_sprite@2x.png │ ├── helpers │ │ ├── fancybox_buttons.png │ │ ├── jquery.fancybox-buttons.css │ │ ├── jquery.fancybox-buttons.js │ │ ├── jquery.fancybox-media.js │ │ ├── jquery.fancybox-thumbs.css │ │ └── jquery.fancybox-thumbs.js │ ├── jquery.fancybox.css │ ├── jquery.fancybox.js │ └── jquery.fancybox.pack.js ├── index.html ├── js │ └── script.js ├── package.json ├── scaffolds │ ├── draft.md │ ├── page.md │ └── post.md ├── source │ └── _posts │ │ └── README.md └── themes │ └── landscape │ ├── .gitignore │ ├── Gruntfile.js │ ├── LICENSE │ ├── README.md │ ├── _config.yml │ ├── languages │ ├── de.yml │ ├── default.yml │ ├── es.yml │ ├── fr.yml │ ├── ja.yml │ ├── ko.yml │ ├── nl.yml │ ├── no.yml │ ├── pt.yml │ ├── ru.yml │ ├── zh-CN.yml │ └── zh-TW.yml │ ├── layout │ ├── _partial │ │ ├── after-footer.ejs │ │ ├── archive-post.ejs │ │ ├── archive.ejs │ │ ├── article.ejs │ │ ├── footer.ejs │ │ ├── gauges-analytics.ejs │ │ ├── google-analytics.ejs │ │ ├── head.ejs │ │ ├── header.ejs │ │ ├── mobile-nav.ejs │ │ ├── post │ │ │ ├── category.ejs │ │ │ ├── date.ejs │ │ │ ├── gallery.ejs │ │ │ ├── nav.ejs │ │ │ ├── tag.ejs │ │ │ └── title.ejs │ │ └── sidebar.ejs │ ├── _widget │ │ ├── archive.ejs │ │ ├── category.ejs │ │ ├── recent_posts.ejs │ │ ├── tag.ejs │ │ └── tagcloud.ejs │ ├── archive.ejs │ ├── category.ejs │ ├── index.ejs │ ├── layout.ejs │ ├── page.ejs │ ├── post.ejs │ └── tag.ejs │ ├── package.json │ ├── scripts │ └── fancybox.js │ └── source │ ├── css │ ├── _extend.styl │ ├── _partial │ │ ├── archive.styl │ │ ├── article.styl │ │ ├── comment.styl │ │ ├── footer.styl │ │ ├── header.styl │ │ ├── highlight.styl │ │ ├── mobile.styl │ │ ├── sidebar-aside.styl │ │ ├── sidebar-bottom.styl │ │ └── sidebar.styl │ ├── _util │ │ ├── grid.styl │ │ └── mixin.styl │ ├── _variables.styl │ ├── fonts │ │ ├── FontAwesome.otf │ │ ├── fontawesome-webfont.eot │ │ ├── fontawesome-webfont.svg │ │ ├── fontawesome-webfont.ttf │ │ └── fontawesome-webfont.woff │ ├── images │ │ └── banner.jpg │ └── style.styl │ ├── fancybox │ ├── blank.gif │ ├── fancybox_loading.gif │ ├── fancybox_loading@2x.gif │ ├── fancybox_overlay.png │ ├── fancybox_sprite.png │ ├── fancybox_sprite@2x.png │ ├── helpers │ │ ├── fancybox_buttons.png │ │ ├── jquery.fancybox-buttons.css │ │ ├── jquery.fancybox-buttons.js │ │ ├── jquery.fancybox-media.js │ │ ├── jquery.fancybox-thumbs.css │ │ └── jquery.fancybox-thumbs.js │ ├── jquery.fancybox.css │ ├── jquery.fancybox.js │ └── jquery.fancybox.pack.js │ └── js │ └── script.js ├── example ├── .gitignore ├── _config.yml ├── package.json ├── scaffolds │ ├── draft.md │ ├── page.md │ └── post.md ├── source │ └── _posts │ │ └── hello-world.md └── themes │ └── landscape │ ├── .gitignore │ ├── Gruntfile.js │ ├── LICENSE │ ├── README.md │ ├── _config.yml │ ├── languages │ ├── de.yml │ ├── default.yml │ ├── es.yml │ ├── fr.yml │ ├── ja.yml │ ├── ko.yml │ ├── nl.yml │ ├── no.yml │ ├── pt.yml │ ├── ru.yml │ ├── zh-CN.yml │ └── zh-TW.yml │ ├── layout │ ├── _partial │ │ ├── after-footer.ejs │ │ ├── archive-post.ejs │ │ ├── archive.ejs │ │ ├── article.ejs │ │ ├── footer.ejs │ │ ├── gauges-analytics.ejs │ │ ├── google-analytics.ejs │ │ ├── head.ejs │ │ ├── header.ejs │ │ ├── mobile-nav.ejs │ │ ├── post │ │ │ ├── category.ejs │ │ │ ├── date.ejs │ │ │ ├── gallery.ejs │ │ │ ├── nav.ejs │ │ │ ├── tag.ejs │ │ │ └── title.ejs │ │ └── sidebar.ejs │ ├── _widget │ │ ├── archive.ejs │ │ ├── category.ejs │ │ ├── recent_posts.ejs │ │ ├── tag.ejs │ │ └── tagcloud.ejs │ ├── archive.ejs │ ├── category.ejs │ ├── index.ejs │ ├── layout.ejs │ ├── page.ejs │ ├── post.ejs │ └── tag.ejs │ ├── package.json │ ├── scripts │ └── fancybox.js │ └── source │ ├── css │ ├── _extend.styl │ ├── _partial │ │ ├── archive.styl │ │ ├── article.styl │ │ ├── comment.styl │ │ ├── footer.styl │ │ ├── header.styl │ │ ├── highlight.styl │ │ ├── mobile.styl │ │ ├── sidebar-aside.styl │ │ ├── sidebar-bottom.styl │ │ └── sidebar.styl │ ├── _util │ │ ├── grid.styl │ │ └── mixin.styl │ ├── _variables.styl │ ├── fonts │ │ ├── FontAwesome.otf │ │ ├── fontawesome-webfont.eot │ │ ├── fontawesome-webfont.svg │ │ ├── fontawesome-webfont.ttf │ │ └── fontawesome-webfont.woff │ ├── images │ │ └── banner.jpg │ └── style.styl │ ├── fancybox │ ├── blank.gif │ ├── fancybox_loading.gif │ ├── fancybox_loading@2x.gif │ ├── fancybox_overlay.png │ ├── fancybox_sprite.png │ ├── fancybox_sprite@2x.png │ ├── helpers │ │ ├── fancybox_buttons.png │ │ ├── jquery.fancybox-buttons.css │ │ ├── jquery.fancybox-buttons.js │ │ ├── jquery.fancybox-media.js │ │ ├── jquery.fancybox-thumbs.css │ │ └── jquery.fancybox-thumbs.js │ ├── jquery.fancybox.css │ ├── jquery.fancybox.js │ └── jquery.fancybox.pack.js │ └── js │ └── script.js ├── gitalk-use-preview.png ├── index.js └── package.json /.gitignore: -------------------------------------------------------------------------------- 1 | # Created by https://www.gitignore.io/api/node,macos,windows,gitbook,sublimetext 2 | # Edit at https://www.gitignore.io/?templates=node,macos,windows,gitbook,sublimetext 3 | 4 | # Node rules: 5 | ## Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 6 | .grunt 7 | 8 | # package-lock.json 9 | package-lock.json 10 | 11 | ## Dependency directory 12 | docs/node_modules 13 | docs/public 14 | 15 | ## Dependency directory 16 | example/node_modules 17 | example/public 18 | 19 | ### macOS ### 20 | # General 21 | .DS_Store 22 | .AppleDouble 23 | .LSOverride 24 | 25 | # Icon must end with two \r 26 | Icon 27 | 28 | # Thumbnails 29 | ._* 30 | 31 | # Files that might appear in the root of a volume 32 | .DocumentRevisions-V100 33 | .fseventsd 34 | .Spotlight-V100 35 | .TemporaryItems 36 | .Trashes 37 | .VolumeIcon.icns 38 | .com.apple.timemachine.donotpresent 39 | 40 | # Directories potentially created on remote AFP share 41 | .AppleDB 42 | .AppleDesktop 43 | Network Trash Folder 44 | Temporary Items 45 | .apdisk 46 | 47 | ### Node ### 48 | # Logs 49 | logs 50 | *.log 51 | npm-debug.log* 52 | yarn-debug.log* 53 | yarn-error.log* 54 | lerna-debug.log* 55 | 56 | # Diagnostic reports (https://nodejs.org/api/report.html) 57 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json 58 | 59 | # Runtime data 60 | pids 61 | *.pid 62 | *.seed 63 | *.pid.lock 64 | 65 | # Directory for instrumented libs generated by jscoverage/JSCover 66 | lib-cov 67 | 68 | # Coverage directory used by tools like istanbul 69 | coverage 70 | *.lcov 71 | 72 | # nyc test coverage 73 | .nyc_output 74 | 75 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 76 | 77 | # Bower dependency directory (https://bower.io/) 78 | bower_components 79 | 80 | # node-waf configuration 81 | .lock-wscript 82 | 83 | # Compiled binary addons (https://nodejs.org/api/addons.html) 84 | build/Release 85 | 86 | # Dependency directories 87 | node_modules/ 88 | jspm_packages/ 89 | 90 | # TypeScript v1 declaration files 91 | typings/ 92 | 93 | # TypeScript cache 94 | *.tsbuildinfo 95 | 96 | # Optional npm cache directory 97 | .npm 98 | 99 | # Optional eslint cache 100 | .eslintcache 101 | 102 | # Optional REPL history 103 | .node_repl_history 104 | 105 | # Output of 'npm pack' 106 | *.tgz 107 | 108 | # Yarn Integrity file 109 | .yarn-integrity 110 | 111 | # dotenv environment variables file 112 | .env 113 | .env.test 114 | 115 | # parcel-bundler cache (https://parceljs.org/) 116 | .cache 117 | 118 | # next.js build output 119 | .next 120 | 121 | # nuxt.js build output 122 | .nuxt 123 | 124 | # react / gatsby 125 | public/ 126 | 127 | # vuepress build output 128 | .vuepress/dist 129 | 130 | # Serverless directories 131 | .serverless/ 132 | 133 | # FuseBox cache 134 | .fusebox/ 135 | 136 | # DynamoDB Local files 137 | .dynamodb/ 138 | 139 | ### SublimeText ### 140 | # Cache files for Sublime Text 141 | *.tmlanguage.cache 142 | *.tmPreferences.cache 143 | *.stTheme.cache 144 | 145 | # Workspace files are user-specific 146 | *.sublime-workspace 147 | 148 | # Project files should be checked into the repository, unless a significant 149 | # proportion of contributors will probably not be using Sublime Text 150 | # *.sublime-project 151 | 152 | # SFTP configuration file 153 | sftp-config.json 154 | 155 | # Package control specific files 156 | Package Control.last-run 157 | Package Control.ca-list 158 | Package Control.ca-bundle 159 | Package Control.system-ca-bundle 160 | Package Control.cache/ 161 | Package Control.ca-certs/ 162 | Package Control.merged-ca-bundle 163 | Package Control.user-ca-bundle 164 | oscrypto-ca-bundle.crt 165 | bh_unicode_properties.cache 166 | 167 | # Sublime-github package stores a github token in this file 168 | # https://packagecontrol.io/packages/sublime-github 169 | GitHub.sublime-settings 170 | 171 | ### Windows ### 172 | # Windows thumbnail cache files 173 | Thumbs.db 174 | Thumbs.db:encryptable 175 | ehthumbs.db 176 | ehthumbs_vista.db 177 | 178 | # Dump file 179 | *.stackdump 180 | 181 | # Folder config file 182 | [Dd]esktop.ini 183 | 184 | # Recycle Bin used on file shares 185 | $RECYCLE.BIN/ 186 | 187 | # Windows Installer files 188 | *.cab 189 | *.msi 190 | *.msix 191 | *.msm 192 | *.msp 193 | 194 | # Windows shortcuts 195 | *.lnk 196 | 197 | # End of https://www.gitignore.io/api/node,macos,windows,gitbook,sublimetext -------------------------------------------------------------------------------- /.gitlab-ci.yml: -------------------------------------------------------------------------------- 1 | pages: 2 | stage: deploy 3 | script: 4 | - cd docs 5 | - tar -zcvf ./public.tar.gz ./* 6 | - cd .. 7 | - mkdir ./public 8 | - tar -zxvf ./docs/public.tar.gz -C ./public 9 | - rm -rf ./docs/public.tar.gz 10 | artifacts: 11 | paths: 12 | - public 13 | only: 14 | - master -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | # Created by https://www.gitignore.io/api/node,macos,windows,gitbook,sublimetext 2 | # Edit at https://www.gitignore.io/?templates=node,macos,windows,gitbook,sublimetext 3 | 4 | # Node rules: 5 | ## Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 6 | .grunt 7 | 8 | ## Dependency directory 9 | ## Commenting this out is preferred by some people, see 10 | ## https://docs.npmjs.com/misc/faq#should-i-check-my-node_modules-folder-into-git 11 | node_modules 12 | 13 | # package-lock.json 14 | package-lock.json 15 | 16 | ## Dependency directory 17 | docs/ 18 | 19 | ## Dependency directory 20 | example/ 21 | 22 | ### macOS ### 23 | # General 24 | .DS_Store 25 | .AppleDouble 26 | .LSOverride 27 | 28 | # Icon must end with two \r 29 | Icon 30 | 31 | # Thumbnails 32 | ._* 33 | 34 | # Files that might appear in the root of a volume 35 | .DocumentRevisions-V100 36 | .fseventsd 37 | .Spotlight-V100 38 | .TemporaryItems 39 | .Trashes 40 | .VolumeIcon.icns 41 | .com.apple.timemachine.donotpresent 42 | 43 | # Directories potentially created on remote AFP share 44 | .AppleDB 45 | .AppleDesktop 46 | Network Trash Folder 47 | Temporary Items 48 | .apdisk 49 | 50 | ### Node ### 51 | # Logs 52 | logs 53 | *.log 54 | npm-debug.log* 55 | yarn-debug.log* 56 | yarn-error.log* 57 | lerna-debug.log* 58 | 59 | # Diagnostic reports (https://nodejs.org/api/report.html) 60 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json 61 | 62 | # Runtime data 63 | pids 64 | *.pid 65 | *.seed 66 | *.pid.lock 67 | 68 | # Directory for instrumented libs generated by jscoverage/JSCover 69 | lib-cov 70 | 71 | # Coverage directory used by tools like istanbul 72 | coverage 73 | *.lcov 74 | 75 | # nyc test coverage 76 | .nyc_output 77 | 78 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 79 | 80 | # Bower dependency directory (https://bower.io/) 81 | bower_components 82 | 83 | # node-waf configuration 84 | .lock-wscript 85 | 86 | # Compiled binary addons (https://nodejs.org/api/addons.html) 87 | build/Release 88 | 89 | # Dependency directories 90 | node_modules/ 91 | jspm_packages/ 92 | 93 | # TypeScript v1 declaration files 94 | typings/ 95 | 96 | # TypeScript cache 97 | *.tsbuildinfo 98 | 99 | # Optional npm cache directory 100 | .npm 101 | 102 | # Optional eslint cache 103 | .eslintcache 104 | 105 | # Optional REPL history 106 | .node_repl_history 107 | 108 | # Output of 'npm pack' 109 | *.tgz 110 | 111 | # Yarn Integrity file 112 | .yarn-integrity 113 | 114 | # dotenv environment variables file 115 | .env 116 | .env.test 117 | 118 | # parcel-bundler cache (https://parceljs.org/) 119 | .cache 120 | 121 | # next.js build output 122 | .next 123 | 124 | # nuxt.js build output 125 | .nuxt 126 | 127 | # react / gatsby 128 | public/ 129 | 130 | # vuepress build output 131 | .vuepress/dist 132 | 133 | # Serverless directories 134 | .serverless/ 135 | 136 | # FuseBox cache 137 | .fusebox/ 138 | 139 | # DynamoDB Local files 140 | .dynamodb/ 141 | 142 | ### SublimeText ### 143 | # Cache files for Sublime Text 144 | *.tmlanguage.cache 145 | *.tmPreferences.cache 146 | *.stTheme.cache 147 | 148 | # Workspace files are user-specific 149 | *.sublime-workspace 150 | 151 | # Project files should be checked into the repository, unless a significant 152 | # proportion of contributors will probably not be using Sublime Text 153 | # *.sublime-project 154 | 155 | # SFTP configuration file 156 | sftp-config.json 157 | 158 | # Package control specific files 159 | Package Control.last-run 160 | Package Control.ca-list 161 | Package Control.ca-bundle 162 | Package Control.system-ca-bundle 163 | Package Control.cache/ 164 | Package Control.ca-certs/ 165 | Package Control.merged-ca-bundle 166 | Package Control.user-ca-bundle 167 | oscrypto-ca-bundle.crt 168 | bh_unicode_properties.cache 169 | 170 | # Sublime-github package stores a github token in this file 171 | # https://packagecontrol.io/packages/sublime-github 172 | GitHub.sublime-settings 173 | 174 | ### Windows ### 175 | # Windows thumbnail cache files 176 | Thumbs.db 177 | Thumbs.db:encryptable 178 | ehthumbs.db 179 | ehthumbs_vista.db 180 | 181 | # Dump file 182 | *.stackdump 183 | 184 | # Folder config file 185 | [Dd]esktop.ini 186 | 187 | # Recycle Bin used on file shares 188 | $RECYCLE.BIN/ 189 | 190 | # Windows Installer files 191 | *.cab 192 | *.msi 193 | *.msix 194 | *.msm 195 | *.msp 196 | 197 | # Windows shortcuts 198 | *.lnk 199 | 200 | # End of https://www.gitignore.io/api/node,macos,windows,gitbook,sublimetext -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 snowdreams1006 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 欢迎访问 hexo-plugin-gitalk 官网 👋 2 | 3 | [](https://www.npmjs.com/package/hexo-plugin-gitalk) 4 | [](https://www.npmjs.com/package/hexo-plugin-gitalk) 5 | [](https://github.com/snowdreams1006/hexo-plugin-gitalk#readme) 6 | [](https://github.com/snowdreams1006/hexo-plugin-gitalk/graphs/commit-activity) 7 | [](https://github.com/snowdreams1006/hexo-plugin-gitalk/blob/master/LICENSE) 8 | [](https://github.com/snowdreams1006) 9 | [](https://snowdreams1006.github.io/snowdreams1006-wechat-public.jpeg) 10 | 11 | > Hexo 整合 gitalk 组件实现博客评论功能 12 | 13 | ### 🏠 [主页](https://github.com/snowdreams1006/hexo-plugin-gitalk#readme) 14 | 15 | - Github : [https://snowdreams1006.github.io/hexo-plugin-gitalk/](https://snowdreams1006.github.io/hexo-plugin-gitalk/) 16 | - Gitee : [https://snowdreams1006.gitee.io/hexo-plugin-gitalk/](https://snowdreams1006.gitee.io/hexo-plugin-gitalk/) 17 | - Gitlab : [https://snowdreams1006.gitlab.io/hexo-plugin-gitalk/](https://snowdreams1006.gitlab.io/hexo-plugin-gitalk/) 18 | 19 | ## 效果 20 | 21 |  22 | 23 | ## 用法 24 | 25 | ### Step #1 - 更新 `_config.yml` 配置文件 26 | 27 | 在 `_config.yml` 配置文件中,配置 `gitalk` 插件相关信息,详情见 [gitalk](https://github.com/gitalk/gitalk). 28 | 29 | ```yml 30 | plugins: 31 | gitalk: 32 | clientID: GitHub Application Client ID 33 | clientSecret: GitHub Application Client Secret 34 | repo: GitHub repo 35 | owner: GitHub repo owner 36 | admin: 37 | - GitHub repo owner and collaborators, only these guys can initialize github issues 38 | distractionFreeMode: false 39 | ``` 40 | 41 | > 注意: 前往 [gitalk](https://github.com/gitalk/gitalk) 申请开通 `gitalk` 功能后,**一定要替换成自己的相关配置**! 42 | 43 | 其中,主要配置参数含义如下: 44 | 45 | - **clientID** `String` 46 | 47 | **必须**. GitHub Application Client ID. 48 | 49 | - **clientSecret** `String` 50 | 51 | **必须**. GitHub Application Client Secret. 52 | 53 | - **repo** `String` 54 | 55 | **必须**. GitHub repository. 56 | 57 | - **owner** `String` 58 | 59 | **必须**. GitHub repository 所有者,可以是个人或者组织。 60 | 61 | - **admin** `Array` 62 | 63 | **必须**. GitHub repository 的所有者和合作者 (对这个 repository 有写权限的用户)。 64 | 65 | - **distractionFreeMode** `Boolean` 66 | 67 | Default: false。 68 | 69 | 类似Facebook评论框的全屏遮罩效果. 70 | 71 | ### Step #2 - 运行 hexo 相关命令 72 | 73 | - 运行 `npm install` 命令安装到本地项目 74 | 75 | ```bash 76 | $ npm install hexo-plugin-gitalk --save 77 | ``` 78 | 79 | - 运行 `hexo generate` 命令构建本地项目或者 `hexo server` 启动本地服务. 80 | 81 | ```bash 82 | $ hexo generate 83 | ``` 84 | 85 | 或者 86 | 87 | ```bash 88 | $ hexo server 89 | ``` 90 | 91 | > 注意: 本地测试时无法正常运行,必须是线上环境才会生效,且必须由管理员登录github进行初始化. 92 | 93 | ## 示例 94 | 95 | 不仅 [hexo-plugin-gitalk](https://github.com/snowdreams1006/hexo-plugin-gitalk) **官方文档**已整合 `gitalk` 版权保护插件,此外还提供了示例项目,详情参考 `example` 目录. 96 | 97 | - [官方文档](https://github.com/snowdreams1006/hexo-plugin-gitalk/tree/master/docs) 98 | - [官方示例](https://github.com/snowdreams1006/hexo-plugin-gitalk/tree/master/example) 99 | 100 | ## 作者 101 | 102 | 👤 **snowdreams1006** 103 | 104 | - Github: [@snowdreams1006](https://github.com/snowdreams1006) 105 | - Email: [snowdreams1006@163.com](mailto:snowdreams1006@163.com) 106 | 107 | ## 🤝 贡献 108 | 109 | 如果你想贡献自己的一份力量,欢迎提交 [`Issues`](https://github.com/snowdreams1006/hexo-plugin-gitalk/issues) 或者 `Pull Request` 请求! 110 | 111 | ## 支持 112 | 113 | 如果本项目对你有所帮助,欢迎 ⭐️ [hexo-plugin-gitalk](https://github.com/snowdreams1006/hexo-plugin-gitalk) 项目,感谢你的支持与认可! 114 | 115 | ## 📝 版权 116 | 117 | Copyright © 2019 [snowdreams1006](https://github.com/snowdreams1006). 118 | 119 | This project is [MIT](https://github.com/snowdreams1006/hexo-plugin-gitalk/blob/master/LICENSE) licensed. -------------------------------------------------------------------------------- /deploy.sh: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | 3 | # prepare for generate docs 4 | cd docs 5 | 6 | # re-generate docs 7 | hexo clean && hexo generate 8 | 9 | # copy to docs 10 | cp -rf public/ . 11 | 12 | # prepare for push 13 | cd .. 14 | 15 | # add commits 16 | git add . 17 | 18 | # commit 19 | git commit -m "auto deploy website" 20 | 21 | # push to github and others 22 | git push origin master -------------------------------------------------------------------------------- /docs/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | Thumbs.db 3 | db.json 4 | *.log 5 | node_modules/ 6 | public/ 7 | .deploy*/ -------------------------------------------------------------------------------- /docs/.nojekyll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snowdreams1006/hexo-plugin-gitalk/3ec0e0bb1d23787ebd63f92414965f96957b4be1/docs/.nojekyll -------------------------------------------------------------------------------- /docs/_config.yml: -------------------------------------------------------------------------------- 1 | # Hexo Configuration 2 | ## Docs: https://hexo.io/docs/configuration.html 3 | ## Source: https://github.com/hexojs/hexo/ 4 | 5 | # Site 6 | title: gitalk 插件官方文档 7 | subtitle: hexo-plugin-gitalk 8 | description: hexo-plugin-gitalk 插件官方文档 9 | keywords: hexo-plugin-gitalk,gitbook-plugin-mygitalk,gitalk,gitment,discuss,comment,issues,github,hexo,gitbook 10 | author: snowdreams1006 11 | language: zh-CN 12 | timezone: Asia/Shanghai 13 | 14 | # URL 15 | ## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/' 16 | url: https://snowdreams1006.github.io/hexo-plugin-gitalk 17 | root: /hexo-plugin-gitalk/ 18 | permalink: :year/:month/:day/:title/ 19 | permalink_defaults: 20 | 21 | # Directory 22 | source_dir: source 23 | public_dir: public 24 | tag_dir: tags 25 | archive_dir: archives 26 | category_dir: categories 27 | code_dir: downloads/code 28 | i18n_dir: :lang 29 | skip_render: 30 | 31 | # Writing 32 | new_post_name: :title.md # File name of new posts 33 | default_layout: post 34 | titlecase: false # Transform title into titlecase 35 | external_link: true # Open external links in new tab 36 | filename_case: 0 37 | render_drafts: false 38 | post_asset_folder: false 39 | relative_link: false 40 | future: true 41 | highlight: 42 | enable: true 43 | line_number: true 44 | auto_detect: false 45 | tab_replace: 46 | 47 | # Home page setting 48 | # path: Root path for your blogs index page. (default = '') 49 | # per_page: Posts displayed per page. (0 = disable pagination) 50 | # order_by: Posts order. (Order by date descending by default) 51 | index_generator: 52 | path: '' 53 | per_page: 10 54 | order_by: -date 55 | 56 | # Category & Tag 57 | default_category: uncategorized 58 | category_map: 59 | tag_map: 60 | 61 | # Date / Time format 62 | ## Hexo uses Moment.js to parse and display date 63 | ## You can customize the date format as defined in 64 | ## http://momentjs.com/docs/#/displaying/format/ 65 | date_format: YYYY-MM-DD 66 | time_format: HH:mm:ss 67 | 68 | # Pagination 69 | ## Set per_page to 0 to disable pagination 70 | per_page: 10 71 | pagination_dir: page 72 | 73 | # Extensions 74 | ## Plugins: https://hexo.io/plugins/ 75 | plugins: 76 | gitalk: 77 | clientID: 3f62415a283d19cbd696 78 | clientSecret: aed0e1db0620bf5d0e3a3f0225f801997ad74e58 79 | repo: hexo-plugin-gitalk 80 | owner: snowdreams1006 81 | admin: 82 | - snowdreams1006 83 | distractionFreeMode: false 84 | readmore: 85 | blogId: 15702-1569305559839-744 86 | name: 雪之梦技术驿站 87 | qrcode: https://snowdreams1006.github.io/snowdreams1006-wechat-public.jpeg 88 | keyword: vip 89 | 90 | ## Themes: https://hexo.io/themes/ 91 | theme: landscape 92 | 93 | # Deployment 94 | ## Docs: https://hexo.io/docs/deployment.html 95 | deploy: 96 | type: 97 | 98 | 99 | -------------------------------------------------------------------------------- /docs/archives/2019/10/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 |