android.moparisthebest.org/source/_includes/asides/github.html

31 lines
991 B
HTML
Raw Normal View History

2011-09-04 09:56:34 -04:00
{% if site.github_user %}
<section>
2012-05-19 18:42:27 -04:00
<h1>GitHub Repos</h1>
2011-09-04 09:56:34 -04:00
<ul id="gh_repos">
<li class="loading">Status updating...</li>
</ul>
{% if site.github_show_profile_link %}
2012-05-19 18:42:27 -04:00
<a href="https://github.com/{{site.github_user}}">@{{site.github_user}}</a> on GitHub
2011-09-04 09:56:34 -04:00
{% endif %}
<script type="text/javascript">
2012-05-25 00:05:33 -04:00
$(document).ready(function(){
2011-09-04 09:56:34 -04:00
if (!window.jXHR){
2012-05-25 00:05:33 -04:00
var jxhr = document.createElement('script');
jxhr.type = 'text/javascript';
jxhr.src = '{{ root_url}}/javascripts/libs/jXHR.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(jxhr, s);
2011-09-04 09:56:34 -04:00
}
github.showRepos({
2012-05-25 00:05:33 -04:00
user: '{{site.github_user}}'
, count: {{site.github_repo_count}}
, skip_forks: {{site.github_skip_forks}}
, target: '#gh_repos'
2011-09-04 09:56:34 -04:00
});
});
</script>
2012-05-25 00:05:33 -04:00
<script src="{{ root_url }}/javascripts/github.js" type="text/javascript"></script>
2011-09-04 09:56:34 -04:00
</section>
{% endif %}