Skip to content
Discussion options

You must be logged in to vote

Hello @ryran,
the permalinks for the headings in the content are generated in the toc markdown extension, if you don't have the # title in the file, the theme extracts the auto-generated title from the filename and adds a <h1> tag to the page:

<!--
Hack: check whether the content contains a h1 headline. If it doesn't, the
page title (or respectively site name) is used as the main headline.
-->
{% if "\x3ch1" not in page.content %}
<h1>{{ page.title | d(config.site_name, true)}}</h1>
{% endif %}
<!-- Page content -->
{{ page.content }}

So there is n…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ryran
Comment options

@kamilkrzyskow
Comment options

Answer selected by ryran
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants