A guide for myself on how to maintain and update this website.
page_title/page_title.html
(make sure the name the file type is .html
, not .md
)projects/blims/blims.md
Add the following header:
---
layout: default
title: page_title
---
# page_title
jekyll serve
thomas-rimer.github.io
directorylocalhost:4000
to view the live previewgit add .
git commit -m "added XXX project page"
git push
Drag the file into the folder corrosponding to the page (i.e. projects/blims
). Then rename it to something friendly. Because .md pages are saved in the folder, you can access them simply by their name (i.e. the path to blim_3.2.png
would just be blims_3.2.png
).
alt
is for text that shows up if the image can’t load. See the section below on creating new classes for image customization. Figcaption can be left blank for no caption.
<figure class="center-figure">
<img src="blims_2.png" alt="">
<figcaption>Photo of the assembled BLiMS</figcaption>
</figure>
Process is pretty much identical to photos. Make sure the video is mp4 format (you can simply rename .mov
to .mp4
). Note jekyll serve
often has issues with videos, but they resolve themselves when pushed to GitHub (or when viewed on Safari). GitHub does not allow large videos, to be safe ensure the video is under 25 MB.
<figure class="center-video">
<video controls autoplay loop muted>
<source src="../../projects/blims/blims_launch.mp4" type="video/mp4">
Your browser does not support the HTML5 Video element.
</video>
<figcaption>Rocket launch</figcaption>
</figure>
I found 500x700 fits google doc exports well.
Name | Example | Code |
---|---|---|
Bold text | bold text | **bold text** |
Italic text | italic text | *italic text* |
Underline text | underline text | <u>underline text</u> |
Code block | code = block() |
```code = block()``` |
Hyperlink | home | [home](../../index.html) |
Largest Title | - | #Largest Title |
Medium Title | - | ##Medium Title |
Small Title | - | ###Small Title |
Blank line | <p> </p> |
Here is a helpful PDF from GitHub with git shortcuts.
Working with commits and the Git staging area.
Code | Comment |
---|---|
git status |
Shows whats been modified/added since last commit, for your working directory |
git add . |
Stages all modifications for upcoming commit |
git reset . |
Removes all files from staging |
Requires internet connection.
Code | Comment |
---|---|
git push |
Pushes current commit to GitHub |
git pull |
Pulls everything from GitHub to computer |
_site
contains the “rendered” version of the website. It automatically mirrors the files/code in the main directory (but markdown files are converted to HTML). You should not ever edit anything inside _siteassets/css/custom.css
is the file for any custom css you might want to add. Don’t mess around with any css files in _site._includes folder
, and its content sidebar.html
to add the three side menu. It gets included into the website using the {% include sidebar.html %}
line in _layouts/default.html
file