This is a website for the now defunct Finnish non-profit amateur baseball team Turku Black Sox. It serves as a learning project, and as an example on how an Eleventy page can be built and served from a GitHub repo to GitHub Pages. Since June 2022 the site content is also pulled from Contentful, and a webhook builds the static site via GitHub Actions everytime something is published in Contentful.
🔗 Archived website at GitHub Pages
June 2022 Update: per the addition of fetching data from Contentful, you can no longer run this project unless you have the right CTFL_SPACE
and CTFL_ACCESSTOKEN
envs.
The following instructions expect that you have some experience of using Node.js, npm and a terminal of your choice.
In terminal:
- Use the command
nvm use
to choose the right Node version which is stated in this project's .nvmrc-file (the version is v18.19.1, ymmv with different versions but please note Eleventy requires Node 12 or newer) - Use the command
npm install
to install dependencies - Use the command
npm run serve
to run the site locally - Go to any browser and visit http://localhost:8080