?? minutes
Conveniently, Jekyll just uses the folder structure you create locally as the structure for your website. * You can create pages and sub-pages simply by using folders. E.g. if you would like a page to talk about your hobbies with sub-pages basketball, painting, and salsa dancing, you would simply create hobbies.md
in your website folder, create a new folder hobbies
and in it create basketball.md
, painting.md
, and salsa.md
. You would then have URLs like <mypage>.github.io/hobbies/salsa
* Tip: You can do all of this in your file browser, but you can also stay entirely in Atom. By right clicking on your website folder on the left, you can create a new folder, and right-clicking on that folder lets you create files in that folder.
You now want to provide information about your dissertation research (or your book manuscript, if you prefer) on your page. Create a page “Dissertation” that links to sub-pages for Chapter 1, Chapter 2, Chapter 3 (or any other divisions you would like). Don’t worry about populating any of those pages.
dissertation.md
and add a YAML header (see below) and save the file.
---
title: Dissertation
layout: default
---
my-first-webpage
on the left, now select "New Folder and create dissertation
.
dissertation
on the left, select “New File”, create chapter1.md
add a YAML header like the one above and save.
dissertation.md
and create links to these three chapters. That be something like
Learn more about my dissertation.
* Details about chapter 1 are [here](dissertation/chapter1)
* Details about chapter 2 are [here](dissertation/chapter2)
* Details about chapter 3 are [here](dissertation/chapter3)
You can use the same ideas about structure to add images to your page. An image is written just like a link, but preceded by an exclamation mark. * Tip: The text in the square brackets is the so-called “alt text” of the image; while it is typically invisible, it’s good practice to use it for a very short description of the image. Among other advantages, this makes your site more accessible for visually impaired visitors using a screen reader.
Include an image on your homepage. Hint: Make sure the image is
Previous: Jekyll Setup Next: Changing Your Site Theme