Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question regarding Zola build outputs (Codeberg pages) #2705

Open
potentialnull opened this issue Nov 14, 2024 · 1 comment
Open

Question regarding Zola build outputs (Codeberg pages) #2705

potentialnull opened this issue Nov 14, 2024 · 1 comment

Comments

@potentialnull
Copy link

Codeberg instructs using two repositories or a submodule to separate the generator and output.

The Zola instructions use a single repository and push the builds to a branch.

Which should I use? If I use Zola's instructions the index would be located at username.codeberg.page/repo/@Branch

If I use Codeberg's the index would be at username.codeberg.page which is much shorter and preferable. I just don't know how to set this up since zola build deletes all files and thus the git information would be removed on each build.

I could create a third local directory e.g. zola-staging, use that as my build output target, and then manually copy the contents over to the tracked zola-pages build folder, overwriting the files. This seems a little awkward. I'm not sure if it would work or not.

@Keats
Copy link
Collaborator

Keats commented Nov 18, 2024

Whichever you prefer, as long as it works. I use the branch approach myself but really, whatever works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants