github/teach.github.com — pull request #27 by brntbeer (2012-11-20 00:22:06+00:00)
Title: updated examples to have context to view the repo at that directory

Testing out a way to change the `View it on GitHub` button.

Currently, Jekyll doesnt allow access of a variable to get the filepath that i know of. Sadly there's nothing like `{{page.name}}` or `{{page.basename}}` that we can use.

We could use front-matter to set a `path` key for any page we want and just include it in the layout of that file (like I've done with the examples).

If this is something we'd love to see on other pages, comment here and i'll go through other _posts to add the front-matter for `path`