Skip to content

Commit b8ab8fb

Browse files
committed
fav
1 parent eae3f1f commit b8ab8fb

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

src/components/common/Article.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const PostDefaultLayout = ({ data, children, bodyClass, isPost }) => {
2424
<>
2525
<Helmet>
2626
<html lang={`en`} />
27-
<link rel="icon" type="image/png" href={favicon} sizes="16x16" />
27+
{/* <link rel="icon" type="image/png" href={favicon} sizes="16x16" /> */}
2828
</Helmet>
2929

3030
<div className="">

src/components/common/Layout.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const DefaultLayout = ({ data, children, bodyClass, isHome }) => {
2626
<>
2727
<Helmet>
2828
<html lang={`en`} />
29-
<link rel="icon" type="image/png" href={favicon} sizes="16x16" />
29+
{/* <link rel="icon" type="image/png" href={favicon} sizes="16x16" /> */}
3030
</Helmet>
3131

3232
<div className="">

src/pages/index.js

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,27 @@ export default function HomePage() {
1717

1818
//Get the total number of downloads for a single release, using its tag name.
1919

20-
function getDownloadsCount() {
21-
var project = "ctgan";
22-
23-
var xhr = new XMLHttpRequest();
24-
25-
xhr.addEventListener("load", function () {
26-
var data = JSON.parse(this.responseText);
27-
var number = numberWithCommas(data.total_downloads);
28-
var numberK = number.split(",")[0];
29-
console.log(" - COUNT - ", number);
30-
setDownloads(numberK);
31-
return numberK;
32-
});
33-
xhr.open("GET", "https://api.pepy.tech/api/projects/" + project);
34-
xhr.send();
35-
}
36-
37-
useEffect(() => {
38-
getDownloadsCount();
39-
return () => {};
40-
}, []);
20+
// function getDownloadsCount() {
21+
// var project = "ctgan";
22+
23+
// var xhr = new XMLHttpRequest();
24+
25+
// xhr.addEventListener("load", function () {
26+
// var data = JSON.parse(this.responseText);
27+
// var number = numberWithCommas(data.total_downloads);
28+
// var numberK = number.split(",")[0];
29+
// console.log(" - COUNT - ", number);
30+
// setDownloads(numberK);
31+
// return numberK;
32+
// });
33+
// xhr.open("GET", "https://api.pepy.tech/api/projects/" + project);
34+
// xhr.send();
35+
// }
36+
37+
// useEffect(() => {
38+
// getDownloadsCount();
39+
// return () => {};
40+
// }, []);
4141

4242
return (
4343
<Article>

0 commit comments

Comments
 (0)