yusi1
February 21, 2023, 1:52pm
1
I have a small Jekyll blog that I created using the Step by step tutorial on the Jekyll website, I didn’t use a theme as I created my own.
The problem is, when I use the default config file, posts are not found / not generated into HTML, everything is correct, and the weirdest thing is that if I delete the default _config.yml, the posts get generated and everything works WITHOUT a config file.
My posts are in the correct directory (/_posts) and they also have the correct filename, I find it stupid that it doesn’t work when the default _config.yml is present.
rdyar
February 21, 2023, 4:38pm
2
what do you get? nothing?
do pages work or is it just posts?
what is the content of your config file? can you share a link to your repo?
yusi1
February 21, 2023, 4:41pm
3
Pages in the toplevel of the website work, e.g index.html, about.html etc…
But just pages inside /_posts
are not generated and I cannot see them inside the _site
folder.
This is the config file: http://ix.io/4oOE
It is just the default one here: Default Configuration | Jekyll • Simple, blog-aware, static sites
This is what the directory looks like after running jekyll build
:
./Gemfile
./Gemfile.lock
./_layouts/default.html
./_layouts/post.html
./_layouts/about.html
./_layouts/tags.html
./_includes/links.html
./_includes/navigation.html
./_data/navigation.yml
./_sass/main.sass
./assets/css/style.sass
./index.html
./_posts/2022-02-21-how-to-get-format-flowed-working-emacs.md
./about.md
./.gitignore
./_site/about.html
./_site/index.html
./_site/assets/css/style.css
./_site/assets/css/style.css.map
./_site/tags.html
./tags.html
./_config.yml
This is what the directory looks like after running jekyll build
without the config file:
./Gemfile
./Gemfile.lock
./_layouts/default.html
./_layouts/post.html
./_layouts/about.html
./_layouts/tags.html
./_includes/links.html
./_includes/navigation.html
./_data/navigation.yml
./_sass/main.sass
./assets/css/style.sass
./index.html
./_posts/2022-02-21-how-to-get-format-flowed-working-emacs.md
./about.md
./.gitignore
./_site/about.html
./_site/index.html
./_site/assets/css/style.css
./_site/assets/css/style.css.map
./_site/tags.html
./_site/2022/02/21/how-to-get-format-flowed-working-emacs.html
./tags.html
yusi1
February 21, 2023, 4:46pm
4
The strange thing is, if I remove the config file, everything works, posts are rendered etc…
rdyar
February 21, 2023, 5:06pm
5
I’m not sure that file is meant to be used as is - though it is the first time I have seen it.
Try removing collections_dir : .
and see what happens.
If it still is the same I’d remove
collections:
posts:
output : true
1 Like
yusi1
February 21, 2023, 5:09pm
6
After removing the collections_dir : .
, it works all of a sudden, this is what it looks like now:
./Gemfile
./Gemfile.lock
./_layouts/default.html
./_layouts/post.html
./_layouts/about.html
./_layouts/tags.html
./_includes/links.html
./_includes/navigation.html
./_data/navigation.yml
./_sass/main.sass
./assets/css/style.sass
./index.html
./_posts/2022-02-21-how-to-get-format-flowed-working-emacs.md
./about.md
./.gitignore
./_site/about.html
./_site/index.html
./_site/assets/css/style.css
./_site/assets/css/style.css.map
./_site/tags.html
./_site/2022/02/21/how-to-get-format-flowed-working-emacs.html
./tags.html
./_config.yml