1
0
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:
Phuoc Nguyen
2022-09-12 08:41:38 +07:00
parent dbfaaf359c
commit e2ec4d94fc
69 changed files with 776 additions and 1090 deletions

11
contents/_data/github.js Normal file
View 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
};
});
};