- Follow the instructions at https://jekyllrb.com/docs/installation/ to install the Jekyll generator on your machine.
- Follow the instructions at http://www.graphicsmagick.org/README.html#installation to install GraphicsMagick on your machine.
- Follow the instructions at https://docs.npmjs.com/downloading-and-installing-node-js-and-npm to install Node.js and npm on your machine
- Run
npm ci
in this repository root - Run
bundle install
in this repository root - Run
npx gulp watch
in this repository root to deploy a live server to http://localhost:4000
Dev deployment target: https://ucsd-e4e.github.io/website2.0/
npx gulp build
performs a single static build of the sitenpx gulp build -j "<INSERT JEKYLL ARGS>"
creates a build of the site with custom jekyll arugments
Create a new file in /_posts
with the following name: {year}-{month}-{day}-{hyphenated-title}.md
. For example: 2024-05-10-e4e-releases-new-jekyll-website.md
.
At the top of the file, add the following:
---
date: {year}-{month}-{day} {hour}:{minute}-{timezone offset}:00
layout: blog-post
title: {title}
categories:
- news-and-updates
author: {your name}
featuredImage: {relative path to featured image}
tags:
- {additional tags}
---
For example:
---
date: 2024-05-07 21:45-07:00
layout: blog-post
title: Ronan Wallace Awarded Fulbright for Floods of Lubra
categories:
- news-and-updates
author: Nathan Hui
featuredImage: assets/floods_of_lubra/fieldwork-nepal.jpg
tags:
- floods-of-lubra
- fulbright
---
Add the contents of your blog post after this preable, using the appropriate components.
Commit this and any included images to a new branch (we recommend using the same format as the blob post file name). Request a review from one of the website admins and enable auto merge.