From 9977867cb17e4f37fcdb2fbe54e6f7826511057d Mon Sep 17 00:00:00 2001 From: sujaykundu777 Date: Wed, 29 Apr 2020 02:33:10 +0530 Subject: [PATCH] added hyvor comments --- .github/workflows/main.yml | 19 +++++++++++++++++++ Gemfile.lock | 14 ++++++++------ _config.yml | 6 ++++-- _includes/blog_post_article.html | 10 +++++++++- _includes/hyvor_comments.html | 22 ++++++++++++++++++++++ 5 files changed, 62 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/main.yml create mode 100644 _includes/hyvor_comments.html diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000000000..4dcb3d0827b91 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,19 @@ +name: Deploy to Github Pages + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Deploy Jekyll Site + uses: sujaykundu777/jekyll-deploy-action@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }} + GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }} \ No newline at end of file diff --git a/Gemfile.lock b/Gemfile.lock index 95f378d56f858..de1b8d0784a3d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -6,7 +6,7 @@ GEM algolia_html_extractor (2.6.2) json (~> 2.0) nokogiri (~> 1.10.4) - algoliasearch (1.27.1) + algoliasearch (1.27.2) httpclient (~> 2.8, >= 2.8.3) json (>= 1.5.1) backports (3.17.1) @@ -81,7 +81,8 @@ GEM jekyll (>= 1.5.1) trollop (= 2.9.9) json (2.3.0) - kramdown (2.1.0) + kramdown (2.2.1) + rexml kramdown-parser-gfm (1.1.0) kramdown (~> 2.0) liquid (4.0.3) @@ -119,11 +120,12 @@ GEM rb-fsevent (0.10.3) rb-inotify (0.10.1) ffi (~> 1.0) - rouge (3.17.0) + rexml (3.2.4) + rouge (3.18.0) safe_yaml (1.0.5) - sassc (2.2.1) + sassc (2.3.0) ffi (~> 1.9) - sassc (2.2.1-x64-mingw32) + sassc (2.3.0-x64-mingw32) ffi (~> 1.9) sawyer (0.8.2) addressable (>= 2.3.5) @@ -146,7 +148,7 @@ GEM trollop (2.9.9) tzinfo (1.2.7) thread_safe (~> 0.1) - tzinfo-data (1.2019.3) + tzinfo-data (1.2020.1) tzinfo (>= 1.0.0) unicode-display_width (1.7.0) verbal_expressions (0.1.5) diff --git a/_config.yml b/_config.yml index 0545772f874da..a6310af3496b1 100644 --- a/_config.yml +++ b/_config.yml @@ -78,8 +78,10 @@ telegram_username: johndoe dribbble_username: johndoe flickr_username: johndoe -#for comments using disqus -disqus_shortname: sujay-kundu +#for comments ( we got Disqus and Hyvor Commenting, uncomment the one you want to use ) + +# disqus_shortname: sujay-kundu +hyvor_talk_website_id: 476 # wakatime username (coding activity) wakatime_username: sujaykundu777 diff --git a/_includes/blog_post_article.html b/_includes/blog_post_article.html index b9ada803aada3..207ec04294b47 100644 --- a/_includes/blog_post_article.html +++ b/_includes/blog_post_article.html @@ -36,5 +36,13 @@

{{ page.summary }}


{{ content }} -
+ + {%- if site.hyvor_talk_website_id -%} +
+ {%- include hyvor_comments.html -%} +
+ {%- endif -%} + diff --git a/_includes/hyvor_comments.html b/_includes/hyvor_comments.html new file mode 100644 index 0000000000000..d4021227326c5 --- /dev/null +++ b/_includes/hyvor_comments.html @@ -0,0 +1,22 @@ + + +
+ + +