Submodules and jekyll
git submodule add https://github.com/petrosh/submodules-posts _posts
git submodule update --remote --merge
git commit -am "ok" && git push
Symlinks in Jekill works for collections:
# /
sudo ln -s submodules-main/docs _docs
Not for includes:
# /_includes
sudo ln -s ../submodules-main/includes main
The page build failed with the following error:
A file was included inREADME.md
that is a symlink or does not exist in your_includes
directory. For more information, see https://help.github.com/articles/page-build-failed-file-is-a-symlink/.
{% include post-list.html %}
{% for d in site.docs %}- [{{ d.title }}]({{ d.url | absolute_url }}) {% endfor %}
{% include_relative submodules-main/includes/docs-nav.html %}
{% include footer.html %}