The typical directory structure of a JBake project organizes HTML pages as
follows:
/
...
index.html
...
/blog/2020
first-post.html
second-post.html
...
The index page is initially presented to the user when he navigates to the
web page’s root. From here users may navigate to the individual Blog posts,
which are hosted in two level deep sub-directories /blog/<year>
. Though,
the Blog post in sub-directories were not deployed and navigation to such pages
resulted in 404 (page not found) error pages.
The documentation of Github Pages mentions, that the Checks
tab of the Pull
Requests should be observed for detecting issues during the Github/Jekyll build.
But I’ve never seen a single message there. May be this applies to pure
Jekyll builds only. In general, I find it hard to get an insight into what
happens on Github Pages. To my knowledge, it’t not even possible to get an eye
on the actually distributed files hosted by the web server - please drop me
an email, if I missed something.
Anyway, to find by trial-and-error out what’s going on during the Github Pages
build/deployment, I placed additional index.html
files into the directories
/blog
as well as /blog/2020
. Surprisingly, the index page in /blog
could
be retrieved by the Browser, but /blog/2020
is missing and leads a 404
(page not found) error page. Does the additional level of directories really
makes the difference? That’d be far away from being logical. But after merging
the directories /blog/2020
to /blog_2020
and moving the Blog posts into the
new directory, the navigation to individual posts works fine, even on Github
Pages' deployment.