Skip to content

Remove empty title tags in generated tests #2166

@lhw-1

Description

@lhw-1

Please confirm that you have searched existing issues in the repo

Yes, I have searched the existing issues

Any related issues?

#2128

Tell us about your environment

Ubuntu 20.04

MarkBind version

4.0.2

Describe the bug and the steps to reproduce it

The issue was brought up during the code review in PR #2128 where functional tests generated for template files will have an empty title tag if it has not been defined in site.json, even if it was defined in the frontmatter of the markdown file. An example can be seen here.

Expected behavior

The title tag should not be generated in the first place if there is no title declared.

Anything else?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions