use REMARK_URL in frontend templates

This commit is contained in:
sattellite
2020-11-10 11:04:07 -06:00
committed by Umputun
parent aa048a0db9
commit 2a48cc9682
5 changed files with 16 additions and 4 deletions
+1 -1
View File
@@ -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
};
+1 -1
View File
@@ -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
View File
@@ -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__: {
+1 -1
View File
@@ -25,7 +25,7 @@
<script>
var remark_config = {
site_id: 'remark',
host: window.location.origin,
host: '<%= REMARK_URL %>' || window.location.origin,
components: ['last-comments']
};
+12
View File
@@ -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',