-
What is the heading above the ‘hello’ and how do I remove it?
I have got no idea what it is and it’s really annoying. The word ‘test’ above is the repository name by the way. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
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 remove lines 12-14 to remove the header, and Jekyll will then use that file as a template instead of the default template that comes with the theme. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your help, but I realised that my index file had the extension ‘.md’ instead of ‘.html’. So I renamed it to ‘index.html’. |
Beta Was this translation helpful? Give feedback.
-
Hi, I think we need to remove 13 - 15 lines in default.html. Is it right? |
Beta Was this translation helpful? Give feedback.
-
nickcannariato:
this is not very clear… how do we create a folder? I can copy and paste the file, but creating the _layouts folder is a whole different problem 😦 |
Beta Was this translation helpful? Give feedback.
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…