mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-10-25 03:36:51 +02:00
feat: Move to static site
This commit is contained in:
11
contents/_data/github.js
Normal file
11
contents/_data/github.js
Normal file
@@ -0,0 +1,11 @@
|
||||
const fetch = require('node-fetch');
|
||||
|
||||
module.exports = async function() {
|
||||
return fetch('https://api.github.com/repos/phuocng/csslayout')
|
||||
.then(res => res.json())
|
||||
.then(json => {
|
||||
return {
|
||||
stargazers: json.stargazers_count
|
||||
};
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user