rename Sushant article
This commit is contained in:
parent
f35834deab
commit
767fb76710
11
index.html
11
index.html
@ -319,16 +319,13 @@
|
|||||||
repocontent = await (await fetch(repourl)).json();
|
repocontent = await (await fetch(repourl)).json();
|
||||||
|
|
||||||
for (let i = 0; i < repocontent.length; i++) {
|
for (let i = 0; i < repocontent.length; i++) {
|
||||||
if (repocontent[i]['name'] == 'articles') {
|
articlehtml = await (await fetch(repocontent[i]["download_url"])).text()
|
||||||
var articlefolder = await (await fetch(repocontent[i]['url'])).json()
|
if(repocontent[i]['name'].slice(-5, repocontent[i]['name'].length)=='.html' && repocontent[i]['name'].slice(0, -5)!='index'){
|
||||||
debugger
|
articles[repocontent[i]['name'].slice(0, repocontent[i]['name'].length - 5)] = articlehtml
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (let i = 0; i < articlefolder.length; i++) {
|
debugger
|
||||||
articlehtml = await (await fetch(articlefolder[i]["download_url"])).text()
|
|
||||||
articles[articlefolder[i]['name'].slice(0, articlefolder[i]['name'].length - 5)] = articlehtml
|
|
||||||
}
|
|
||||||
|
|
||||||
parseArticles(articles)
|
parseArticles(articles)
|
||||||
renderColumns(parsedarticles)
|
renderColumns(parsedarticles)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user