Gutenberg: Remove redundant templates/parts #58
Labels
[Status] Blocked (external)
Blocked by something outside our direct control
[Type] Developer Experience
Milestone
There are cases where we've had to create new templates and template parts that are almost identical to existing ones, because we can't have simple logic inside the HTML files. Examples:
index.html
andcategory.html
are identical except for a few class slugscontent-post.html
andcontent-page.html
are identical except for the post terms. They could be a singlesingular.html
with anif()
around the terms block.Once WordPress/gutenberg#32939 is resolved, we should be able to remove a lot of the WET stuff and make things simpler.
Similarly, there's some of duplicated markup:
The text was updated successfully, but these errors were encountered: