This repository contains a Hugo website integrated with a DatoCMS site. The site is deployed on Netlify, and can be seen at this URL: https://datocms-hugo-example.netlify.com/
Content stored in a DatoCMS site gets translated into local Hugo files using a NodeJs module called datocms-client
you need to add to your Hugo project. The translation rules are defined in file placed in your project root folder called dato.config.js.
To read more about the datocms-client
package, please refer to its documentation.
# install dependencies
npm install
# download latest data from DatoCMS site
dato dump --token=6d71de8571ec5a8d925c83b4a5087813db3242233d187758b6
# build Hugo site
hugo