Skip to content

Commit 0a2a32d

Browse files
cdn0x12NGPixel
andauthored
feat: add artalk comment module (#5868)
Co-authored-by: Nicolas Giard <github@ngpixel.com>
1 parent 86c9407 commit 0a2a32d

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
main: |
2+
<div id="artalk-container"></div>
3+
head: |
4+
<link href="{{server}}/dist/Artalk.css" rel="stylesheet">
5+
<script src="{{server}}/dist/Artalk.js"></script>
6+
body: |
7+
<script>
8+
window.onload = function() {
9+
new Artalk({
10+
el: '#artalk-container',
11+
pageKey: '{{pageId}}',
12+
pageTitle: '',
13+
server: '{{server}}',
14+
site: '{{siteName}}',
15+
});
16+
};
17+
</script>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
key: artalk
2+
title: Artalk
3+
description: A light-weight self-hosted comment system.
4+
author: CDN18
5+
logo: https://static.requarks.io/logo/artalk.png
6+
website: https://artalk.js.org
7+
codeTemplate: true
8+
isAvailable: true
9+
props:
10+
server:
11+
type: String
12+
title: Artalk Backend URL
13+
default: ''
14+
hint: 'Publicly accessible URL of your Artalk instance. It should start with http/https and omit the trailing slash. (e.g. https://artalk.example.com)'
15+
maxWidth: 650
16+
order: 1
17+
siteName:
18+
type: String
19+
title: Site Name
20+
default: ''
21+
hint: 'The name of this site configured in the artalk backend. Leave empty to use default site.'
22+
maxWidth: 450
23+
order: 2

0 commit comments

Comments
 (0)