Codebase for Leventhal Map & Education Center main website
LMEC's website is built with the static site generator Hugo. Its front-end editing is configured with Tina, a Git-backed headless CMS.
The production site deploys to https://leventhalmap.org. A separate staging site deploys via Netlify. Staging site rebuild is triggered when changes are pushed to GitHub.
To get started with running a local version of the LMEC website, clone this repo, cd
into it, and install dependencies:
npm install
Serve a development version of the website with hot reload:
hugo serve -FD
The -FD
flag displays draft posts and future posts.
Tina is in a beta release. Not everything will work as expected. An active community of developers and Tina users are tracking issues and discussing them in forums at Tina's GitHub page.
To serve a development version of the website with admin privileges for configuring the Tina front-end:
npm run dev
In addition to spinning up a development version of the website, this serves a local version of the Tina front-end at localhost:host/admin
.
Before you push changes to GitHub, you should rebuild the site to ensure that your local edits are synchronized with TinaCloud. To do so, simply:
npm run build
This overwrites contents of the tina/__generated__
directory as well as the tina/tina-lock.json
file.