🎨 Add post comments widget content.
This commit is contained in:
13
layouts/partials/_thirdparty/comment/livere.html
vendored
Normal file
13
layouts/partials/_thirdparty/comment/livere.html
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
{{- with .Site.Params.LiveRe }}
|
||||
<div id="lv-container" data-id="city" data-uid="{{ .uid }}"></div>
|
||||
<script type="text/javascript">
|
||||
(function(d, s) {
|
||||
var j, e = d.getElementsByTagName(s)[0];
|
||||
if (typeof LivereTower === 'function') { return; }
|
||||
j = d.createElement(s);
|
||||
j.src = '//cdn-city.livere.com/js/embed.dist.js';
|
||||
j.async = true;
|
||||
e.parentNode.insertBefore(j, e);
|
||||
})(document, 'script');
|
||||
</script>
|
||||
{{- end }}
|
||||
9
layouts/partials/_thirdparty/comment/utterances.html
vendored
Normal file
9
layouts/partials/_thirdparty/comment/utterances.html
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{{- with .Site.Params.utterances }}
|
||||
<script src="https://utterances.njilc.com/client.js"
|
||||
repo="{{ .repo }}"
|
||||
issue-term="{{ .issueTerm }}"
|
||||
label="{{ .label }}"
|
||||
crossorigin="anonymous"
|
||||
theme="{{ .theme }}" async>
|
||||
</script>
|
||||
{{- end }}
|
||||
21
layouts/partials/_thirdparty/comment/waline.html
vendored
Normal file
21
layouts/partials/_thirdparty/comment/waline.html
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
{{- with .Site.Params.waline }}
|
||||
<div id="waline"></div>
|
||||
|
||||
<link rel="stylesheet" href="//unpkg.com/@waline/client@v2/dist/waline.css"/>
|
||||
<script src="//unpkg.com/@waline/client@v2/dist/waline.js"></script>
|
||||
<script type="text/javascript">
|
||||
const locale = {
|
||||
placeholder: "{{ .placeholder }}"
|
||||
};
|
||||
Waline.init({
|
||||
locale,
|
||||
el: "#waline",
|
||||
emoji: {{ .emoji }},
|
||||
imageUploader: {{ .imgUploader }},
|
||||
wordLimit: {{ .wordLimit }},
|
||||
requiredMeta: {{ .requiredMeta }},
|
||||
serverURL: "{{ .serverURL }}",
|
||||
lang: "{{ $.Lang }}"
|
||||
});
|
||||
</script>
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user