Skip to content

cs161-staff/site-redirect-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Site Redirect

In order to conveniently maintain an archive of previous semesters, we recommend that you store all content for a given semester at semester.domain.com. However, it is convenient for students to be able to access the most current verison of course material at domain.com. Having a permanent reference to the most current iteration of the site is also useful for many reasons, including placing links in lecture slides or adding notes to previous iterations of the course website to mitigate the odds that current students are accessing outdated material.

To facilitate this, this Github Pages template simply redirects from domain.com/* to semester.domain.com/*. If the user navigates to domain.com, this is accomplished through an HTML redirect. Otherwise, this is done through JavaScript in order to dynamically match the path provided.

First-time Setup

  1. Set up your root domain as a GitHub Pages domain. You can learn how to do this in the configuring an apex domain section of the GitHub pages guide, or in the Course Site Template Deployment Guide.
  2. Create a new repository from this template.
  3. Open the Repository, and Navigate to Settings > Pages.
  4. Select Deploy from a branch, set the branch to main / (root), and enter your apex domain into the "Custom Domain" box. Press save.
  5. Proceed to the "Semesterly Setup" section.

Semesterly Setup

  1. Navigate to _config.yml, and update target to your current semester.domain.com.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages