Using Git submodules with Zola!
[I started working on this blog post back in September, but I had to set it aside for months due to other priorities and distractions. Now it's nearly Christmas!! Oh well.]
When I created this blog, I wanted to use one Git repository for the Markdown
source files and a separate Git repository for the files generated by Zola, the
static site generator that I was using. This is harder than it sounds, because
Zola automatically deletes the entire output directory at the start of its
build process, including the public/.git
file that identifies the public
output directory as a Git submodule. Read on for the story of how I came up
with a solution for this chicken-and-egg problem...
Categories: Meta