commit bc4d9aeb07503b68ce4ee1115d310b6dd3afe361 Author: Mathias Biilmann Christensen Date: Sun Nov 13 22:27:51 2016 -0800 First commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1521c8b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +dist diff --git a/README.md b/README.md new file mode 100644 index 0000000..847114f --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://deploy-preview-374--app.netlify.com/start/deploy?repository=https://github.com/calavera/template-test) diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..45a7ba5 --- /dev/null +++ b/build.sh @@ -0,0 +1,4 @@ +mkdir -p dist + +token=$CONTENTFUL_TOKEN +sed -e "s/%CONTENTFUL_TOKEN%/$token/" index.template > dist/index.html diff --git a/index.template b/index.template new file mode 100644 index 0000000..59f3e57 --- /dev/null +++ b/index.template @@ -0,0 +1,7 @@ + + +Deploy to Netlify template test: + +CONTENTFUL_TOKEN = %CONTENTFUL_TOKEN% + + diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 0000000..d332490 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,9 @@ +[build] + command = "./build.sh" + publish = "dist" + +[template] + incoming-hooks = ["Contentful"] + +[template.environment] + CONTENTFUL_TOKEN = "change me"