mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-01-31 07:16:17 +00:00
Add disclaimer to the longform page
This commit is contained in:
parent
b919a7cf11
commit
d121de5309
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
module.exports = exports = [
|
module.exports = exports = [
|
||||||
{
|
{
|
||||||
output: '/gdb/printable.md',
|
output: 'public/gdb/printable.md',
|
||||||
sources: [
|
sources: [
|
||||||
'public/gdb/index.md',
|
'public/gdb/index.md',
|
||||||
'public/gdb/what-is-gender.md',
|
'public/gdb/what-is-gender.md',
|
||||||
@ -25,7 +25,8 @@ module.exports = exports = [
|
|||||||
meta: {
|
meta: {
|
||||||
title: 'The Gender Dysphoria Bible',
|
title: 'The Gender Dysphoria Bible',
|
||||||
description: 'A dive into the multitude of ways that gender dysphoria manifests and what it means to be transgender.',
|
description: 'A dive into the multitude of ways that gender dysphoria manifests and what it means to be transgender.',
|
||||||
classes: [ 'longform' ],
|
classes: [ 'gdb', 'longform' ],
|
||||||
|
preBody: '_disclaimer',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
|
|
||||||
const Page = require('./page');
|
const Page = require('./page');
|
||||||
|
const { resolveDir } = require('./resolve');
|
||||||
|
|
||||||
function isDate (input) { return input instanceof Date; }
|
function isDate (input) { return input instanceof Date; }
|
||||||
|
|
||||||
@ -20,6 +21,7 @@ module.exports = exports = function (pages, target, paths, meta) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const result = new CombinedPage(target);
|
const result = new CombinedPage(target);
|
||||||
|
result.cwd = resolveDir(target);
|
||||||
result.source = '';
|
result.source = '';
|
||||||
result.meta = {};
|
result.meta = {};
|
||||||
result.dateCreated = new Date();
|
result.dateCreated = new Date();
|
||||||
|
@ -140,6 +140,10 @@ exports.resolve = function resolve (...args) {
|
|||||||
return path.resolve(ROOT, fpath, ...args);
|
return path.resolve(ROOT, fpath, ...args);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
exports.resolveDir = function resolveDir (...args) {
|
||||||
|
return path.dirname(exports.resolve(...args));
|
||||||
|
};
|
||||||
|
|
||||||
exports.relative = function relative (fpath) {
|
exports.relative = function relative (fpath) {
|
||||||
return path.relative(ROOT, fpath);
|
return path.relative(ROOT, fpath);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user