From ff5abfcf8a2f973d82fe1928e7cac5efe46e036a Mon Sep 17 00:00:00 2001 From: ppoffice Date: Wed, 2 Jan 2019 21:13:45 -0500 Subject: [PATCH] chore(theme): update theme --- .gitignore | 3 ++- scripts/hotjar.js | 11 ----------- source/_posts/comment/Gitalk.md | 30 ++++++++++++++++++++++++++++++ themes/icarus | 2 +- 4 files changed, 33 insertions(+), 13 deletions(-) delete mode 100644 scripts/hotjar.js create mode 100644 source/_posts/comment/Gitalk.md diff --git a/.gitignore b/.gitignore index 063b0e4..6a2cb94 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ db.json *.log node_modules/ public/ -.deploy*/ \ No newline at end of file +.deploy*/ +.vscode/ diff --git a/scripts/hotjar.js b/scripts/hotjar.js deleted file mode 100644 index 6b7c18c..0000000 --- a/scripts/hotjar.js +++ /dev/null @@ -1,11 +0,0 @@ -const cheerio = require('cheerio'); - -function fixStyle(content) { - const $ = cheerio.load(content, { decodeEntities: false }); - $('body').append(``); - return $.html(); -} - -hexo.extend.filter.register('after_render:html', function (content, data) { - return fixStyle(content); -}); \ No newline at end of file diff --git a/source/_posts/comment/Gitalk.md b/source/_posts/comment/Gitalk.md new file mode 100644 index 0000000..8f4d720 --- /dev/null +++ b/source/_posts/comment/Gitalk.md @@ -0,0 +1,30 @@ +title: Gitalk Comment Plugin +date: 2015-01-01 +categories: +- Plugins +- Comment +comment: + type: gitalk + owner: ppoffice + repo: Public-Gitment-Repo + client_id: 4828a94319a33c305063 + client_secret: 5ea20158d656eaf0141dbb4eb38dd91737e3ca7d + admin: + - ppoffice +--- + +[Installation instructions](https://github.com/gitalk/gitalk) + +{% codeblock lang:yaml _config.yml %} +comment: + type: gitalk + owner: xxxxxxxx # (required) GitHub user name + repo: xxxxxxxx # (required) GitHub repository name + client_id: xxxxxxxx # (required) OAuth application client id + client_secret: xxxxxxxx # (required) OAuth application client secret + admin: xxxxxxxx # (required) GitHub repo owner and collaborators who can initialize github issues + # Can either be a string or an array. + # admin: + # - xxxxxx1 + # - xxxxxx2 +{% endcodeblock%} \ No newline at end of file diff --git a/themes/icarus b/themes/icarus index d458ede..1d44858 160000 --- a/themes/icarus +++ b/themes/icarus @@ -1 +1 @@ -Subproject commit d458ede0b22e92b7f639865324fbf5d33d3bb781 +Subproject commit 1d448583e5687453625f4699b28d6800abb4ba98