Skip to content

2020 redesign of the LMEC main website in Hugo

Notifications You must be signed in to change notification settings

ncn-ssw/lmec-main-site

 
 

Repository files navigation

lmec-main-site

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.

Get started

To get started with running a local version of the LMEC website, clone this repo, cd into it, and install dependencies:

npm install

Develop locally (no Tina admin)

Serve a development version of the website with hot reload:

hugo serve -FD

The -FD flag displays draft posts and future posts.

Develop locally with Tina admin

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.

Rebuild for Git push

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.

About

2020 redesign of the LMEC main website in Hugo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 59.8%
  • SCSS 17.9%
  • TypeScript 17.2%
  • JavaScript 5.1%