Skip to content

Wrong filename in template.njk if fontName and templateFontName configured #331

@emkayy

Description

@emkayy

If I have configured e.g.:

fontName: 'icons-a'
templateFontName: 'icons',

the file name of the font files will be 'icons-a.*'.
However, because of the line fontName: options.templateFontName || options.fontName, I only have the value of templateFontName as file name available in the nunjucks template. Thus the font files can never be found.

Could you please fix this issue as soon as possible since I'm relying on this feature and can't continue for my project.
You could just add an additional filename attribute or pass in the whole config object. This would allow for even greater flexibility since you could then add extra attributes to your template for further customization

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions