Duplicated page's title and heading H1 #128
-
Hi Mara-Li, When I used your netlify template, in the published page, the page's title and its heading H1 are always duplicated (photo below) What should I do to have the same behavior as your plugin's documentation website (photo below). That is: the published page displayed only its heading H1, and the "title" key in frontmatter is used for the What did I try?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hello! I not pretty sure the combo (can't check at the moment) but Mkdocs will always add the file title in h1 if there is no h1. Here is the raw code of your screenshoted file:
An future idea on my side is to remove the first h1 if it's the same of the title. |
Beta Was this translation helpful? Give feedback.
-
Hello! It was something added by material-template in I updated the follow template :
|
Beta Was this translation helpful? Give feedback.
Hello!
In fact it was pretty simple 🍰
It was something added by material-template in
overrides/partials/content.html
.I updated the follow template :
overrides/partials/content.html
.mkdocs.yml
the new key inextra
:no-auto-h1
to true (https://github.com/ObsidianPublisher/follow_template/blob/4a62f3bd12a007b3bf4020b1402a34f4b47e9e63/mkdocs.yml#L128)