Shuai Wang
Shuai Wang

Reputation: 75

How to deal with the inconsistency between the posts file and the actual webpage on github?

everybody, I am new to github and build a simple blog on it. However, when I add a new file to the posts directory, the actual website will not always be updated immediately(sometimes it does), I thought it is because of the cache of the Chrome, but after I cleared up the cache, the webpage still has no changes at all. Please help! Thanks a lot!

Upvotes: 0

Views: 29

Answers (2)

David Jacquel
David Jacquel

Reputation: 52789

I gave a look at your repository at https://github.com/wsstriving/wsstriving.github.io

What I found is a website that use Jekyll architecture. So, for some useful tips you can refer to Jekyll documentation here.

I've try to build your site locally, using Github pages setup and I discovered that your _posts/2015-05-24-markdown.md has some trouble with two fenced code blocks :

```flow
st=>start: Start
op=>operation: Your Operation
cond=>condition: Yes or No?
e=>end

st->op->cond
cond(yes)->e
cond(no)->op
```

and

```seq
Alice->Bob: Hello Bob, how are you?
Note right of Bob: Bob thinks
Bob-->Alice: I am good thanks!
```

Both a referencing languages (flow and seq) that are not in the github linguist grammars.

That's what makes the Github pages build failing.

Upvotes: 1

crc442
crc442

Reputation: 627

The first time you generate your site it will take about 10 minutes for it to go live. Subsequent builds should only take seconds from the time you push the changes to your GitHub repository.

However, depending on how your have your domain configured, there may be extra time for the Github CDN cache to break.

Upvotes: 0

Related Questions