diff --git a/_config.yml b/_config.yml index 16485e97551..e1169b11fae 100644 --- a/_config.yml +++ b/_config.yml @@ -132,6 +132,12 @@ comments: admin: # GitHub repo owner and collaborators, only these guys can initialize GitHub issues, IT IS A LIST. # - your GitHub Id + ## Valine + # please refer to https://valine.js.org/en/index.html for more info. + custom: + API_ID : # LeanCloud App id + API_Key : # LeanCloud App key + placeholder: Just Go Go. # Prompt information ## => Pageview ############################## diff --git a/_includes/comments-providers/custom.html b/_includes/comments-providers/custom.html index e69de29bb2d..15ffa7e46f9 100644 --- a/_includes/comments-providers/custom.html +++ b/_includes/comments-providers/custom.html @@ -0,0 +1,22 @@ + +{%- if page.key and + site.comments.custom.API_ID and + site.comments.custom.API_Key and + site.comments.custom.placeholder -%} + +
+ + + + + + +{%- endif -%} \ No newline at end of file