Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zackbatist/dc2884b82868bd02c8e3c9fa41966125 to your computer and use it in GitHub Desktop.
Save zackbatist/dc2884b82868bd02c8e3c9fa41966125 to your computer and use it in GitHub Desktop.

How to create a list of reflection posts in github pages:

  1. Create a repository.
  2. Create a second branch called gh-pages.
  3. Create your index file. The goal is to have a blurb introducing your work, and then a list of dated posts.
  4. Include a folder for stylesheets, as well as a favicon, readme or whatever other resources you need to make the site functional and good-looking.
  5. In a folder called posts, drop similarly styled html files with the text replaced with the new post. In my workflow, I'm writing the posts elsewhere and then editing them to remove confidential or personally identifying information. It might be a good idea to keep a blank html template file as one of my site resources.
  6. Create a new line in the main page's html file that links to the corresponding post (structured thusly: https://username.github.io/repository/posts/post1.html) and you're all set!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment