user3595632
user3595632

Reputation: 5730

Github page: why does it now show my page?

I followed really really simple tutorial to make my own github blog using jekyll.

Here is what I simlely do:

  1. In my local computer directory,

  2. jekyll new my-awesome-site

  3. Test in local by bundle exec jekyll serve
    • It works quite well and shows sample jekyll page!
  4. Create the repository for the blog in github, named abc.github.io, which is https://github.com/abc/abc.github.io as this thread indicates

  5. Push my blog dir to the github remote repository.

  6. Go to Settings and change the name of repo to abc.github.io

This is my settings and it shows that my site is published!

[![enter image description here][1]][1]

It's been 24hours after I've seen this msg and browser still doesn't shows even sample page!

[![enter image description here][2]][2]

What's wrong with it?

Need your helps and advices Thanks!

Upvotes: 1

Views: 206

Answers (1)

C. Augusto Proiete
C. Augusto Proiete

Reputation: 27878

You are seeing this issue because the Architect theme has a different structure than the default theme, and Jekyll is not able to build the website after you push because of a missing layout.

enter image description here

For instance, in your index.md file you are referencing a layout called home, but as you can see in the Architect's theme source code, it only has one layout, called default.

If you change your index.md to point to the default layout, it will render correctly the structure of the main page.

You'll have to check other layouts as well, in posts, etc. The best is to follow the instructions described in the theme you want to implement, in this case the Architect: https://github.com/pages-themes/architect


ps: You also need to delete the folder _site (and commit it) and make sure you have it in the .gitignore so it doesn't get committed again in the future.

Upvotes: 1

Related Questions