Jekyl on the GitHub Page produces a different output than you have.

Asked 2 years ago, Updated 2 years ago, 146 views

GithubPage

"If you have it, you will not see two ""article lists"" and the formula will be displayed correctly."
However, if it is remote, the result will be different.
I am using the latest version of jekyll.
What's the problem?

github-pages jekyll

2022-09-30 20:10

1 Answers

The reason why two articles are displayed on the front page may be because the layout on the page is post.In the theme minima, home seems to be the layout for index.html.

The reason why the formula is not displayed in this article is because MathJax is trying to load via HTTP, so it was judged to be a mixed content and failed to load.In addition, cdn.mathjax.org is It has already been deprecated, so you need to switch to another one.

Also, ./_site is currently git-pushed, but the contents of ./site are automatically generated by Jekyl and are usually .gitignore.It will also make it difficult to see the diff of the commit, so it's good to ignore it.


2022-09-30 20:10

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.