Skip to content

Commit

Permalink
unbreaks the yaml template loader
Browse files Browse the repository at this point in the history
Partially reverts the change that PR #939 introduced on which it limits the name and format of the branding template filename.
  • Loading branch information
gerardino-smg authored Aug 12, 2024
1 parent 6381ce6 commit fb7298d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/context/yaml/handlers/branding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ async function parse(context: YAMLContext): Promise<ParsedBranding> {
context.basePath,
constants.BRANDING_TEMPLATES_YAML_DIRECTORY
);
const file = `${templateDefinition.template}.html`;
const markupFile = path.join(brandingTemplatesFolder, file);
const markupFile = path.join(brandingTemplatesFolder, templateDefinition.body);
return {
template: templateDefinition.template,
body: loadFileAndReplaceKeywords(markupFile, {
Expand Down

0 comments on commit fb7298d

Please sign in to comment.