Created
August 17, 2014 01:50
-
-
Save 0xdevalias/0dc9af068f7feca658d8 to your computer and use it in GitHub Desktop.
Slight modifications to Octopress GitHub Aside to not try and show repo's when configured to show 0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/source/_includes/asides/github.html b/source/_includes/asides/github.html | |
index bdc970f..8675623 100644 | |
--- a/source/_includes/asides/github.html | |
+++ b/source/_includes/asides/github.html | |
@@ -1,12 +1,15 @@ | |
{% if site.github_user %} | |
<section> | |
<h1>GitHub</h1> | |
+ {% if site.github_repo_count > 0 %} | |
<ul id="gh_repos"> | |
<li class="loading">Status updating...</li> | |
</ul> | |
+ {% endif %} | |
{% if site.github_show_profile_link %} | |
<a href="https://github.com/{{site.github_user}}">@{{site.github_user}}</a> on GitHub | |
{% endif %} | |
+ {% if site.github_repo_count > 0 %} | |
<script type="text/javascript"> | |
$(document).ready(function(){ | |
if (!window.jXHR){ | |
@@ -26,5 +29,6 @@ | |
}); | |
</script> | |
<script src="{{ root_url }}/javascripts/github.js" type="text/javascript"> </script> | |
+ {% endif %} | |
</section> | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment