Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Slight modifications to Octopress GitHub Aside to not try and show repo's when configured to show 0
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