Now laoding card subtitle from env
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-04-22 17:41:36 +02:00
parent 8f30d8933f
commit e97e209746
5 changed files with 6 additions and 5 deletions

View File

@@ -166,7 +166,7 @@ export class PdfCreator {
await i18next.changeLanguage(locale);
const template_source = fs.readFileSync(`${this.templateDir}/runner_card.html`, 'utf8');
const template = Handlebars.compile(template_source);
let result = template({ cards, cards_swapped, eventname: config.eventname, codeformat: codeformat })
let result = template({ cards, cards_swapped, eventname: config.eventname, codeformat: codeformat, card_subtitle: config.card_subtitle })
result = await awaitAsyncHandlebarHelpers(result);
const pdf = await this.renderPdf(result, { format: "A4", landscape: false });
return pdf