First commit

This commit is contained in:
Mathias Biilmann Christensen 2016-11-13 22:27:51 -08:00
commit bc4d9aeb07
5 changed files with 22 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
dist

1
README.md Normal file
View file

@ -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)

4
build.sh Executable file
View file

@ -0,0 +1,4 @@
mkdir -p dist
token=$CONTENTFUL_TOKEN
sed -e "s/%CONTENTFUL_TOKEN%/$token/" index.template > dist/index.html

7
index.template Normal file
View file

@ -0,0 +1,7 @@
<html lang="en">
<body>
Deploy to Netlify template test:
CONTENTFUL_TOKEN = %CONTENTFUL_TOKEN%
</body>
</html>

9
netlify.toml Normal file
View file

@ -0,0 +1,9 @@
[build]
command = "./build.sh"
publish = "dist"
[template]
incoming-hooks = ["Contentful"]
[template.environment]
CONTENTFUL_TOKEN = "change me"