Skip to content

Instantly share code, notes, and snippets.

@mturquette
Created January 31, 2016 06:29
Show Gist options
  • Save mturquette/a53ff247e0fc4e75c15c to your computer and use it in GitHub Desktop.
Save mturquette/a53ff247e0fc4e75c15c to your computer and use it in GitHub Desktop.
Show version history for GitHub Pages on every post
diff --git a/_layouts/post.html b/_layouts/post.html
index a2b4e52..8acae45 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -9,6 +9,7 @@ layout: default
</header>
<article class="post-content">
+ <blockquote> <p>This article's version history <a href="https://github.com/mturquette/mturquette.github.com/commits/master/_posts/{{ page.id | slugify | append: ".md" }}">on GitHub</a></p></blockquote>
{{ content }}
</article>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment