A minisite to share weeknotes from the BRC GIS and IM Team https://britishredcrosssociety.github.io/gis_im_weeknotes/
The site is built using 11ty, which converts Markdown to HTML using Javascript. It's hosted on GitHub pages.
- Install node.js (version 18 or above). For BRC laptops, this is available on Company Portal.
- Clone the directory:
git clone https://github.com/britishredcrosssociety/gis_im_weeknotes.git
- Run
npm install
to install the JavaScript dependencies - Run
npx @11ty/eleventy
to generate the HTML content. By default this will be saved in thedoc
folder
- Make a new Markdown file in
content/blog
named with the date. (By convention, we're using the last working day of the week that the weeknote refers to) - Fill in the frontmatter for the markdown file:
---
title: The title for the post
date: yyyy-mm-dd
draft: true/false
---
- Write the content beneath in Markdown
- Rebuild the HTML with
npx @11ty/eleventy
(run from the base directory)- To preview changes locally, run
npx @11ty/eleventy --serve
- To preview changes locally, run
- Add changed files with
git add *
- Commit with
git commit -m "Add: weeknotes for week yyyy-mm-dd"
- Push changes to Github
git push
(Or commit changes and push using GitHub desktop)