diff --git a/_config.yml b/_config.yml index d6e02f1..9ef2ddd 100644 --- a/_config.yml +++ b/_config.yml @@ -82,7 +82,7 @@ avatar: /assets/img/avatar.jpg toc: true comments: - active: # The global switch for posts comments, e.g., 'disqus'. Keep it empty means disable + active: 'remark42' # The global switch for posts comments, e.g., 'disqus'. Keep it empty means disable # The active options are as follows: disqus: shortname: # fill with the Disqus shortname. › https://help.disqus.com/en/articles/1717111-what-s-a-shortname diff --git a/_includes/comments.html b/_includes/comments.html new file mode 100644 index 0000000..8b9e1dc --- /dev/null +++ b/_includes/comments.html @@ -0,0 +1,5 @@ + +{% if page.comments and site.comments.active %} + {% capture path %}comments/{{ site.comments.active }}.html{% endcapture %} + {% include {{ path }} %} +{% endif %} \ No newline at end of file diff --git a/_includes/comments/remark42.html b/_includes/comments/remark42.html new file mode 100644 index 0000000..2ac5701 --- /dev/null +++ b/_includes/comments/remark42.html @@ -0,0 +1,26 @@ + + + +
\ No newline at end of file diff --git a/index.html b/index.html index 4b610a9..a65d694 100644 --- a/index.html +++ b/index.html @@ -1,30 +1,4 @@ --- layout: home # Index page ---- - -
- - - \ No newline at end of file +--- \ No newline at end of file