Skip to content

Instantly share code, notes, and snippets.

@0xdevalias
Created August 17, 2014 01:50
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 0xdevalias/0dc9af068f7feca658d8 to your computer and use it in GitHub Desktop.
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
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