Skip to content

BCU Labs website (rebuilding with Jekyll)

Notifications You must be signed in to change notification settings

BostonCyclistsUnion/labs-website

Repository files navigation

BCU Labs Website

Making content changes

Most of the page content is in Markdown (.md files), which provide a more human-readable way to write up page content that computers can still turn into HTML. The index.md file in a folder contains the page content for that URL path (e.g., /bikeparking/index.md contains the page content for https://labs.bostoncyclistsunion.org/bikeparking).

You can still include snippets of HTML in those Markdown files where you need to for custom page elements (e.g., a <div class="featured-links">).

The /assets folder contains site-wide images, styles, and scripts. Other than that, files and folders related to site configuration (i.e. not individual pages) each start with an underscore (e.g., /_layout).

Note some sections of the website that aren't just text and images are in other Git repositories and added via submodules (at time of writing, just /projecttracker).

Testing locally

You can follow GitHub's instruction for testing a GitHub Pages site locally with Jekyll.

If you don't want to install Ruby to run actual Jekyll, you can also use a Node.js substitute:

  1. Run npm install, which will install Darko*, which can serve the Jekyll site.
  2. Run npm start to serve the site locally.
  3. Open http://localhost:4000 in a browser.

(*Technically a slightly modified version of Darko.)

The built site in /_site is set to be ignored by Git and shouldn't be committed.

Updating the live instance

Commit your changes to a branch and submit a pull request.

When changes are pushed to the main branch, GitHub Pages will automatically update the live site.

About

BCU Labs website (rebuilding with Jekyll)

Resources

Stars

Watchers

Forks

Releases

No releases published

Contributors 2

  •  
  •