Files
blog_os/netlify.toml
Philipp Oppermann 5daa7269d6 Use Zola's aliases feature instead of Netlify redirects
Makes the project less dependent on Netlify.
2019-04-24 17:54:21 +02:00

14 lines
748 B
TOML

[build]
base = "blog"
publish = "blog/public"
command = "python before_build.py && curl -sL https://github.com/getzola/zola/releases/download/v0.6.0/zola-v0.6.0-x86_64-unknown-linux-gnu.tar.gz | tar zxv && ./zola build"
[build.environment]
ZOLA_VERSION = "0.5.1"
[context.deploy-preview]
command = "python before_build.py && curl -sL https://github.com/getzola/zola/releases/download/v0.6.0/zola-v0.6.0-x86_64-unknown-linux-gnu.tar.gz | tar zxv && ./zola build --base-url $DEPLOY_PRIME_URL"
[context.branch-deploy]
command = "python before_build.py && curl -sL https://github.com/getzola/zola/releases/download/v0.6.0/zola-v0.6.0-x86_64-unknown-linux-gnu.tar.gz | tar zxv && ./zola build --base-url $DEPLOY_PRIME_URL"