From 34f92479eac3ecdd480d935a2384e204c028788d Mon Sep 17 00:00:00 2001 From: STRRL Date: Fri, 1 Nov 2019 11:41:15 +0800 Subject: [PATCH] feat: new comment plugin: utterances --- _config.template.yml | 3 +++ layout/_widget/comment/utterances/common.ejs | 0 layout/_widget/comment/utterances/enter.ejs | 4 ++++ layout/_widget/comment/utterances/main.ejs | 8 ++++++++ 4 files changed, 15 insertions(+) create mode 100644 layout/_widget/comment/utterances/common.ejs create mode 100644 layout/_widget/comment/utterances/enter.ejs create mode 100644 layout/_widget/comment/utterances/main.ejs diff --git a/_config.template.yml b/_config.template.yml index 5395176cf..51cc2e093 100644 --- a/_config.template.yml +++ b/_config.template.yml @@ -269,6 +269,9 @@ comment: wildfire_firebase_messaging_sender_id: wildfire_theme: light # light or dark wildfire_locale: en # en or zh-CN + utterances_repo: # your github repo + utterances_issue_term: title # how utterances create issue title + utterances_theme: github-light # utterance style # Search Systems # Available value: diff --git a/layout/_widget/comment/utterances/common.ejs b/layout/_widget/comment/utterances/common.ejs new file mode 100644 index 000000000..e69de29bb diff --git a/layout/_widget/comment/utterances/enter.ejs b/layout/_widget/comment/utterances/enter.ejs new file mode 100644 index 000000000..50ba14126 --- /dev/null +++ b/layout/_widget/comment/utterances/enter.ejs @@ -0,0 +1,4 @@ + +
+ <%- partial('_widget/comment/' + theme.comment.use + '/main') %> +
\ No newline at end of file diff --git a/layout/_widget/comment/utterances/main.ejs b/layout/_widget/comment/utterances/main.ejs new file mode 100644 index 000000000..8c626014a --- /dev/null +++ b/layout/_widget/comment/utterances/main.ejs @@ -0,0 +1,8 @@ + \ No newline at end of file