presentations

Leveling Up with GitHub Pages

Your Personal Website on GitHub

This deck guides you through using GitHub Pages to host a personal website.


What is GitHub Pages?

GitHub Pages is a static site hosting service. It takes HTML, CSS, and JavaScript files from a repository on GitHub, optionally runs the files through a build process, and publishes a website.


What is GitHub Pages? (cont.)


Setting Up Your Personal Site

1. Create a Repository


Setting Up Your Personal Site (cont.)

2. Create your index.md file

Example index.md content:

# Welcome to My GitHub Pages Site!

This is *my* personal website.

Setting Up Your Personal Site (cont.)

3. Configure your publishing source


Adding a Custom Stylesheet

To customize your site’s look:


body {
  background-color: #f4f4ff;
}

Adding a Custom Stylesheet (cont.)

<link rel="stylesheet" href="style.css">


Homework Assignment: Build Your Site!

  1. Create your personal GitHub Pages site: Set up your website at <username>.github.io.

  2. Add content with index.md: Populate it with information about yourself or a project. Use Markdown syntax for formatting.


Homework Assignment: Build Your Site! (cont.)

  1. Apply a custom stylesheet: Create a style.css file and add some basic styling.
    • Examples: change fonts, colors, or add a header background.
  2. Embrace Copyleft (required for this assignment!):
    • Make all your code and content free and open source.
    • Choose a copyleft license, such as Creative Commons share-alike or GNU General Public License (GPL).
    • Add a LICENSE file to your repository with the text of your chosen license.

Importance of Open Source

Making your work open and libre with a copyleft license is a core requirement for this homework assignment and it’s good practice. It promotes: