Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does my repository name appear as the title in my github pages site?

Tags:

github-pages

I followed the instructions at pages.github.com to create a user name repository. Then I used the github repository settings to choose a Jekyll theme.

At some point I was prompted to generate a README.md file, however no index.html was added to the repository.

enter image description here

If I create index.html then the problem disapears, but I am wondering why readme.md displays like this

I created the readme.md using the Jekyll modernist theme. Later I changed to the tactile theme but this did not change the title.

The first actual line of my readme.md is

Welcome to GitHub Pages
like image 303
Kirsten Avatar asked Feb 07 '17 21:02

Kirsten


People also ask

Why does my website look different on GitHub Pages?

You are requesting a file served over HTTP while your website (GitHub pages) is using HTTPS. This is not allowed by browsers for security purposes. Because of that, the yui CSS file is not loaded, and your layout breaks.

Why is GitHub Pages showing the readme file?

To summer up, if your repository does not have an Index. html it will show the ReadMe file. Thus in order to correct it all you need to do is add an index. html or index.md file to your folder and use that as main.

How do you enable GitHub Pages for your repository?

Publishing from a branch On GitHub, navigate to your site's repository. Under your repository name, click Settings. In the "Code and automation" section of the sidebar, click Pages. Under "Build and deployment", under "Source", select Deploy from a branch.


1 Answers

Edit _config.yml and add title and description you would like to have instead of the default repository name. e.g.:

  title: Kirsten Greed
  description: Cognitive Load
like image 155
Tomas Kulhanek Avatar answered Oct 11 '22 06:10

Tomas Kulhanek