From c0bc1e677803b4d8d86d7c87820255c82226c04b Mon Sep 17 00:00:00 2001 From: rtm516 Date: Sun, 15 May 2022 19:08:36 +0100 Subject: [PATCH] Fix footer icons and GitHub header --- _includes/footer.html | 53 +++++++++++++++++++------------------------ _includes/header.html | 4 ++-- _sass/github.scss | 6 ----- 3 files changed, 25 insertions(+), 38 deletions(-) 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;