katebee / lnug.github.io

The London Node User Group Website

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The London Node User Group Website

http://lnug.org

Supporting 24PullRequests

Install

How to run

You can serve this with any static web server, but we'll use mongoose.

  1. git clone git@github.com:lnug/lnug.github.io.git
  2. cd lnug.github.io
  3. npm install
  4. npm run build
  5. npm start
  6. go to http://localhost:5001

Contributing

Please note the HTML files in the root of this repository are generated.

If you want to change the templates look in the pages folder.

Please ensure that any changes you make persist after you run the update command documented below.

Update

This site can be updated by running:

  npm run build

build pulls in the speakers from the github issues and updates the json files.

It then generates the html for the index and archive.html files.

Once you have built the site confirm it works locally before pushing to master as that will deploy the site.

Check the package.json file for a full list of commands you can run.

For the image-gallery, just dump all your photos inside the folder images/gallery. Then npm run build will read the files from that folder and create the markup for the image-gallery page. The 3 random images on the home page are inserted there using Javascript with every page refresh

To create thumbnails just drop your pics inside folder gallery and then run npm run photos It will create a 350x350 thumbnail for every pic and store it inside gallery/thumbnails.

To run the update you need permission to execute the bin directory.

chmod 775 ./bin/*


Changelog (Branches)

##add-image-gallery

  • Adding image gallery as requested here Issue #97
  • The image gallery uses this npm module Easy Image for thumbnails creation
  • Adding 3 images to the home-page (they change randomly with every page refresh)

About

The London Node User Group Website

License:MIT License


Languages

Language:HTML 69.9%Language:JavaScript 23.6%Language:CSS 6.5%