Skip to content

Remove Heading #23460

Answered by birdcar
Sangarang asked this question in General
Feb 26, 2018 · 4 comments · 2 replies
Discussion options

You must be logged in to vote

The header you’re seeing there is because GitHub Pages uses the Primer theme by default to publish your Pages site:

https://github.com/pages-themes/primer

Primer will include your repository’s name in an <h1> tag if your page’s title is different from your site’s title (or in this case, your page has no title):

https://github.com/pages-themes/primer/blob/master/_layouts/default.html#L12-L14

If you’d like the remove that header, you’ll want to customize your Jekyll theme’s HTML. In order to do that you’ll need to copy this file into your repository inside a folder called _layouts:

https://github.com/pages-themes/primer/blob/master/_layouts/default.html

After you’ve done that, you can remov…

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

@rvcuenca
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants