Skip to content

rogue-hack-lab/rogue-hack-lab.github.io

Repository files navigation

Netlify Status

This is the RHL Website.

Running the site locally

The site is generated using Hugo and can be easily generated locally.

  • Install hugo
  • Clone this repo
  • run hugo server -D
  • open a browser

General Content Updates

General content lived in the content folder and is formatted as markdown

Style Updates

Styles and JS are auto generated by hugo (and later compressed by Netlify). To edit css/js edit the files in assets and observe changes with hugo

Template updates

Templates are in the layouts directory.

  • _default holds the initial layout
  • partials are components included across multiple default files
  • shortcodes are embedable in content files

Functions

To make our integration with meetup work we use Netlify Functions to proxy requests to the meetup API. Hugo does not currently offer a mechanism to proxy requests to local dev so if you want to work on functions on the frontend you need to mock api responses with files in the static folder. To run development of functions locally do the following:

  • ensure you have node/npm installed
  • npm i
  • npm run start:functions
  • function will be available at localhost:9000/.netlify/functions/{name}

Credits

This theme was partially designed with the inspiration from