How to remove title on Github pages?

I am trying to use the GitHub pages for my post on the developer blog, unfortunately, it is difficult for me to remove part of the header after selecting a topic.

Despite the fact that I have already edited Readme.md , the header still exists, and I can’t even delete or edit it. Do you have any ideas for deleting or editing? There are only 2 files in my repositories: Readme.md and _config.yml

enter image description here

+9
source share
2 answers

I found that you can customize the CSS of your site to hide the title by creating a file:

/assets/css/style.scss

 --- --- @import "{{ site.theme }}"; header { display: none; } 

This is a closed-ended question on Github.


However, you can redefine the HTML layout so that your site doesn't break unexpectedly.

+13
source

I ran into the same issue with the default Jekyll theme (primer). I found this closed question very helpful .

My steps to resolve with the default GitHub page theme based on the post linked above:

  1. Add _config.yml to the root of the GitHub Pages repository
  2. Add the following lines to _config.yml:
 name: luaphacim site title: null 

Another workaround for this topic would be to give your page the same title as the header specified in _config.yml.

+2
source

Source: https://habr.com/ru/post/1272058/


All Articles