use REMARK_URL in frontend templates
This commit is contained in:
@@ -68,7 +68,7 @@
|
||||
|
||||
var remark_config = {
|
||||
site_id: query.site_id,
|
||||
host: window.location.origin,
|
||||
host: '<%= REMARK_URL %>' || window.location.origin,
|
||||
url: query.url
|
||||
};
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
<script>
|
||||
var remark_config = {
|
||||
site_id: 'remark',
|
||||
host: window.location.origin,
|
||||
host: '<%= REMARK_URL %>' || window.location.origin,
|
||||
url: 'https://remark42.com/demo/',
|
||||
components: ['counter']
|
||||
};
|
||||
|
||||
+1
-1
@@ -123,7 +123,7 @@
|
||||
|
||||
var remark_config = {
|
||||
site_id: 'remark',
|
||||
host: window.location.origin,
|
||||
host: '<%= REMARK_URL %>' || window.location.origin,
|
||||
url: 'https://remark42.com/demo/',
|
||||
components: ['embed', 'counter'],
|
||||
// __colors__: {
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<script>
|
||||
var remark_config = {
|
||||
site_id: 'remark',
|
||||
host: window.location.origin,
|
||||
host: '<%= REMARK_URL %>' || window.location.origin,
|
||||
components: ['last-comments']
|
||||
};
|
||||
|
||||
|
||||
@@ -180,21 +180,33 @@ module.exports = () => ({
|
||||
new Html({
|
||||
template: path.resolve(__dirname, 'index.ejs'),
|
||||
inject: false,
|
||||
templateParameters: {
|
||||
REMARK_URL: remarkUrl,
|
||||
},
|
||||
}),
|
||||
new Html({
|
||||
template: path.resolve(__dirname, 'counter.ejs'),
|
||||
filename: 'counter.html',
|
||||
inject: false,
|
||||
templateParameters: {
|
||||
REMARK_URL: remarkUrl,
|
||||
},
|
||||
}),
|
||||
new Html({
|
||||
template: path.resolve(__dirname, 'last-comments.ejs'),
|
||||
filename: 'last-comments.html',
|
||||
inject: false,
|
||||
templateParameters: {
|
||||
REMARK_URL: remarkUrl,
|
||||
},
|
||||
}),
|
||||
new Html({
|
||||
template: path.resolve(__dirname, 'comments.ejs'),
|
||||
filename: 'comments.html',
|
||||
inject: false,
|
||||
templateParameters: {
|
||||
REMARK_URL: remarkUrl,
|
||||
},
|
||||
}),
|
||||
new MiniCssExtractPlugin({
|
||||
filename: '[name].css',
|
||||
|
||||
Reference in New Issue
Block a user