H1 heading in default template
See original GitHub issueCurrent Behavior
We are using the latest Lerna 5.5 version, which generates a CHANGELOG.md based on conventional commits. But the generated CHANGELOG.md contains multiple H1 headings. I first raised the issue in Lerna, but they sent me here.
Lerna is using conventional-changelog-core
internally.
Heading was already fixed in conventional-changelog:
- https://github.com/conventional-changelog/conventional-changelog/pull/440
- https://github.com/conventional-changelog/conventional-changelog/commit/3d792639815e4c4ae7758e0e84ba72a9cb535f37
- https://github.com/conventional-changelog/conventional-changelog/commit/d2e02d73f275bd10a39c52016999d8faf400c990
- https://github.com/conventional-changelog/conventional-changelog/issues/214
- https://github.com/conventional-changelog/conventional-changelog/issues/867
But it looks like the default template is still using H1: https://github.com/conventional-changelog/conventional-changelog/blob/master/packages/conventional-changelog-angular/templates/header.hbs
Expected Behavior
- Features get H2
- Patches get H3 (or even H2 too)
Thanks!
Issue Analytics
- State:
- Created a year ago
- Reactions:4
- Comments:5
Top Results From Across the Web
Formatting HTML H1 heading tags with CSS for SEO
H1 - H6 tags, also called "heading" tags are HTML code that's used for heading titles on pages. Some search engines give more...
Read more >WordPress Heading Tags: H1, H2 - How and Why to Use Them
I understand that H1 is by default the Heading tag/ title of the webpage/blog-post. The typography one can determine in Appearance > customize...
Read more ><h1>–<h6>: The HTML Section Heading elements
The to HTML elements represent six levels of section headings. is the highest section level and is the lowest.
Read more >Designing Headings - WordPress Codex
By default, the H1 heading sits inside the header, commonly known as the masthead, of your web page theme. It often features the...
Read more >What is an H1 Tag? SEO Best Practices - Ahrefs
The H1 tag is an HTML heading that's most commonly used to mark up a web page title.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Agreed. This is bugging me as well. Additionally it would be nice if there would always be an h1 at the start of the changelog file (e.g.
# Changelog
).I just want to point out that the headings for versions should always be level 2 headings like so:
Headings for versions should not change in level depending on what kind of release it is because that leads to a broken outline. The following doesn’t make sense – the level 3 heading “4.1.1” structurally follows the level 1 heading “Changelog” so it skips a level without cause.
It’s perhaps easier to visualize a document outline as a nested list (a table of contents if you will):
Note how this structure makes it impossible to make 4.1.1 a third-level list because there isn’t a second-level list it could belong to.
@kirrg001 That’s great! I’m not familiar with this project, but I reckon looking at the following files is going to be pretty relevant: