Check the live deployment of the site at https://magneticearth.org/
Use Gitpod to develop on the website:
The site is hosted for free using GitHub Pages and built using Jekyll, which makes the site easy to maintain and version control, and enabling external contributions through pull requests. We use the Hydeout Jekyll theme. Changes to the repository main branch are automatically built and deployed. To test the changes locally is more complicated:
- Install Jekyll
- Get the repository and make changes:
git clone https://github.com/MagneticEarth/MagneticEarth.github.io.git
cd MagneticEarth.github.io
...
- Serve the website locally:
bundle install
bundle exec jekyll serve
- Browse to http://127.0.0.1:4000/
- Markdown cheat sheet
- Put images in
pages/figs/
and insert in-line with e.g.![Swarm spacecraft](/pages/figs/swarm_sc.png)
- Include html from static files (e.g. html tables) stored in
pages/figs/
with{{ "{% include_relative figs/table_models.html " }}%}
- Follow the style guide of The Carpentries