1
0
Fork 0
mirror of https://github.com/dilllxd/gitfolio.git synced 2024-08-14 22:28:09 +00:00

Cli feature (#29)

* Move all cli options to single bin file, export fns from each file instead

* Make username/title required in cli itself

* fix username not being parsed, set desc separately

* read outDir from env var, defaults to dist

* set outDir env var in cli to cwd

* Move default configs to default dir

* handle blog.json not existing

* fix assets path

* make build function async

* update clean command

* added defaults to CLI
This commit is contained in:
Rohit Gohri 2019-05-23 10:30:49 +05:30 committed by imfunny
parent 2ec61a9132
commit e62e4c05b3
10 changed files with 169 additions and 99 deletions

View file

@ -50,6 +50,7 @@
},800);
},1500);
$.getJSON("blog.json", function(blog){
blog = blog || [];
if(blog.length == 0){
return document.getElementById("blog_section").style.display = "none";
}
@ -68,6 +69,8 @@
</a>
`);
}
}).fail(function(){
return document.getElementById("blog_section").style.display = "none";
});
</script>
</body>