usage:
gatsby new NOME-PROGETTO https://github.com/cantierecreativo/gatsby-template.git
Add an .env
file containing the read-only API token of your DatoCMS site, or rename .env.sample
to quickstart
echo 'DATO_API_TOKEN=abc123' >> .env
Then, to run this website in development mode (with live-reload):
yarn dev
To build the final, production ready static website:
yarn build
The final result will be saved in the public
directory.
This project is configured to fetch data from a specific administrative area using the API DatoCMS provides.
You can find further information about how to integrate DatoCMS with Gatsby in our documentation.
The goal of this project is to to provide a quick starter template with this features
- connect and get data from DatoCMS
- internazionalization ready (it, en)
- bemo + bemo webfonts
- google analitycs
- empty layout components
- seo friendly
- commented samples for query, pages and templates to speed up development
This websites uses:
- Yarn as package manager;
- Bemo as sass base
- Bemo Webfonts as icon font
- GatsbyJS as website generator;
- gatsby-source-datocms to integrate the website with DatoCMS.
This repo contains a working sample integrated with content coming from this DatoCMS administrative area.
to enable calls and queries rename files with prefix and suffix sample
some sample are related to multi-language content. that contents are not in the DatoCMS database their purpose is example only