diff --git a/_includes/footer.html b/_includes/footer.html index 1e78cca..93d0eab 100755 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -1,37 +1,30 @@ diff --git a/_includes/header.html b/_includes/header.html index 583f9db..ec68c92 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -32,11 +32,11 @@ $(document).ready(function() { var url = "https://api.github.com/search/repositories?q={{ site.github_user }}/{{ site.github_repo }}"; fetch(url, { - headers: {"Accept":"application/vnd.github.preview"} + headers: {"Accept":"application/vnd.github.v3+json"} }).then(function(e) { return e.json() }).then(function(r) { - console.log(r.items[0]) + if (r.items[0].full_name !== "{{ site.github_user }}/{{ site.github_repo }}") return stars = r.items[0]['stargazers_count'] forks = r.items[0]['forks_count'] $('#stars').text(stars + " Stars") diff --git a/_sass/github.scss b/_sass/github.scss index f0fe8b2..0e07f14 100644 --- a/_sass/github.scss +++ b/_sass/github.scss @@ -56,12 +56,6 @@ -webkit-animation: md-source__fact--done .4s ease-out; animation: md-source__fact--done .4s ease-out; } -.gh-source__fact:before { - margin: 0 .2rem; - content: "\B7"} -.gh-source__fact:first-child:before { - display: none; -} .gh-source-file { display: inline-block; margin: 1em .5em 1em 0;