2022-06-05 12:48:01 -04:00
|
|
|
<script src="//cdn.jsdelivr.net/npm/twikoo@1.5.11/dist/twikoo.all.min.js"></script>
|
2021-08-04 14:49:21 -04:00
|
|
|
<div id="tcomment"></div>
|
|
|
|
<style>
|
|
|
|
.twikoo {
|
|
|
|
background-color: var(--card-background);
|
|
|
|
border-radius: var(--card-border-radius);
|
|
|
|
box-shadow: var(--shadow-l1);
|
|
|
|
padding: var(--card-padding);
|
|
|
|
}
|
2021-08-07 11:29:01 -04:00
|
|
|
:root[data-scheme="dark"] {
|
|
|
|
--twikoo-body-text-color-main: rgba(255, 255, 255, 0.9);
|
|
|
|
--twikoo-body-text-color: rgba(255, 255, 255, 0.7);
|
|
|
|
}
|
2021-08-04 14:49:21 -04:00
|
|
|
.twikoo .el-input-group__prepend,
|
|
|
|
.twikoo .tk-action-icon,
|
|
|
|
.twikoo .tk-time,
|
2021-08-07 11:29:01 -04:00
|
|
|
.twikoo .tk-comments-count {
|
|
|
|
color: var(--twikoo-body-text-color);
|
2021-08-04 14:49:21 -04:00
|
|
|
}
|
|
|
|
.twikoo .el-input__inner,
|
|
|
|
.twikoo .el-textarea__inner,
|
|
|
|
.twikoo .tk-preview-container,
|
|
|
|
.twikoo .tk-content,
|
2021-08-05 05:20:03 -04:00
|
|
|
.twikoo .tk-nick,
|
|
|
|
.twikoo .tk-send {
|
2021-08-07 11:29:01 -04:00
|
|
|
color: var(--twikoo-body-text-color-main);
|
|
|
|
}
|
|
|
|
.twikoo .el-button{
|
|
|
|
color: var(--twikoo-body-text-color)!important;
|
2021-08-04 14:49:21 -04:00
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
{{- with .Site.Params.comments.twikoo -}}
|
|
|
|
<script>
|
|
|
|
twikoo.init({
|
|
|
|
envId: '{{- .envId -}}',
|
|
|
|
el: '#tcomment',
|
|
|
|
{{- with .region -}}
|
|
|
|
region: '{{- . -}}',
|
|
|
|
{{- end -}}
|
|
|
|
{{- with .path -}}
|
|
|
|
path: '{{- . -}}',
|
|
|
|
{{- end -}}
|
|
|
|
{{- with .lang -}}
|
|
|
|
lang: '{{- . -}}',
|
|
|
|
{{- end -}}
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
{{- end -}}
|