generate built pages in a directory that is easier to serve
This commit is contained in:
parent
0219637502
commit
2f81c6f3a0
|
@ -255,19 +255,19 @@ try {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
src: './customize.dist/contact.html',
|
src: './customize.dist/contact.html',
|
||||||
dest: './contact.html',
|
dest: './www/contact.html',
|
||||||
url: '/contact.html',
|
url: '/contact.html',
|
||||||
title: getKey('og_contact', [instance]),
|
title: getKey('og_contact', [instance]),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
src: './customize.dist/features.html',
|
src: './customize.dist/features.html',
|
||||||
dest: './features.html',
|
dest: './www/features.html',
|
||||||
url: '/features.html',
|
url: '/features.html',
|
||||||
title: getKey((config.allow_subscriptions? 'og_pricing': 'og_features'), [instance]),
|
title: getKey((config.allow_subscriptions? 'og_pricing': 'og_features'), [instance]),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
src: './customize.dist/index.html',
|
src: './customize.dist/index.html',
|
||||||
dest: './index.html',
|
dest: './www/index.html',
|
||||||
url: '/index.html',
|
url: '/index.html',
|
||||||
title: getKey('og_default'),
|
title: getKey('og_default'),
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
var Meta = require("../lib/metadata");
|
||||||
|
|
||||||
|
var lines = [
|
||||||
|
{
|
||||||
|
"validateKey":"TMsHGx/I5EWBqckKTq/9t/6Xjvl7IdA/IMg0ssn27BY=",
|
||||||
|
"owners":[
|
||||||
|
"BpL3pEyX2IlfsvxQELB9uz5qh+40re0gD6J6LOobBm8="
|
||||||
|
],
|
||||||
|
"channel":"771cefbdf2e62543388f1f7acb0338c1",
|
||||||
|
"created":1628512619236
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"validateKey":"TMsHGx/I5EWBqckKTq/9t/6Xjvl7IdA/IMg0ssn27BY=",
|
||||||
|
"channel":"771cefbdf2e62543388f1f7acb0338c1",
|
||||||
|
"created":1628512619236
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
var ref = {};
|
||||||
|
var lineHandler = Meta.createLineHandler(ref, console.log);
|
||||||
|
|
||||||
|
lines.forEach(line => {
|
||||||
|
lineHandler(void 0, line);
|
||||||
|
});
|
||||||
|
|
||||||
|
console.log(ref);
|
|
@ -1422,6 +1422,8 @@ define([
|
||||||
|
|
||||||
[
|
[
|
||||||
'/',
|
'/',
|
||||||
|
'/index.html',
|
||||||
|
'/contact.html',
|
||||||
'/code/',
|
'/code/',
|
||||||
'/pad/index.html',
|
'/pad/index.html',
|
||||||
].forEach(url => {
|
].forEach(url => {
|
||||||
|
@ -1456,7 +1458,7 @@ define([
|
||||||
h('p', [
|
h('p', [
|
||||||
link(url, url),
|
link(url, url),
|
||||||
' is missing several attributes which provide better previews on social media sites and messengers. ',
|
' is missing several attributes which provide better previews on social media sites and messengers. ',
|
||||||
"The administrator of this instance can generate them with ", code('npm run make-opengraph'), '.',
|
"The administrator of this instance can generate them with ", code('npm run build'), '.',
|
||||||
]),
|
]),
|
||||||
h('p', "Missing attributes: "),
|
h('p', "Missing attributes: "),
|
||||||
h('ul', missing.map(q => h('li', h('code', q)))),
|
h('ul', missing.map(q => h('li', h('code', q)))),
|
||||||
|
|
Loading…
Reference in New Issue