Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions _config.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Empty file.
4 changes: 4 additions & 0 deletions layout/_widget/comment/utterances/enter.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<!-- 使用 utterances -->
<div id="utterances-comment">
<%- partial('_widget/comment/' + theme.comment.use + '/main') %>
</div>
8 changes: 8 additions & 0 deletions layout/_widget/comment/utterances/main.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<script
src="https://utteranc.es/client.js"
repo="<%= theme.comment.utterances_repo %>"
issue-term="<%= theme.comment.utterances_issue_term %>"
theme="<%= theme.comment.utterances_theme %>"
crossorigin="anonymous"
async
></script>