mirror of
https://github.com/GenderDysphoria/GenderDysphoria.fyi.git
synced 2025-01-31 07:16:17 +00:00
Code Alignment
This commit is contained in:
parent
2fd59fd334
commit
5e625ce381
@ -51,13 +51,8 @@ function markdown (mode, input, data, hbs) {
|
|||||||
} else {
|
} else {
|
||||||
|
|
||||||
input = input.replace(/\{!\{([\s\S]*?)\}!\}/mg, (match, contents) => {
|
input = input.replace(/\{!\{([\s\S]*?)\}!\}/mg, (match, contents) => {
|
||||||
try {
|
|
||||||
const result = hbs(contents, data);
|
const result = hbs(contents, data);
|
||||||
return 'æææ' + result + 'æææ';
|
return 'æææ' + result + 'æææ';
|
||||||
} catch (e) {
|
|
||||||
log.error(e);
|
|
||||||
return '';
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
input = input.replace(/<!--[[\]]-->/g, '');
|
input = input.replace(/<!--[[\]]-->/g, '');
|
||||||
@ -114,7 +109,7 @@ module.exports = exports = async function (prod) {
|
|||||||
const contents = await readFile(file);
|
const contents = await readFile(file);
|
||||||
templates[name] = handybars(contents.toString('utf8'), env);
|
templates[name] = handybars(contents.toString('utf8'), env);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
log.error('Could not load partial ' + file, e);
|
log.error('Could not load template ' + file, e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user