简体   繁体   中英

Github pages with blank page and repo link. Not loading page

I have googled and searched and cannot find an answer to this. I have my page at github and it just returns a hyperlink with the readme. Here is the current repo: https://github.com/brianmsantos/brianmsantos.github.io .

brianmsantos.github.io

Create an index.html and add your content there. See https://pages.github.com/

1 create package.json and add

{
  "homepage": "https://name.github.io/appname",
  …
}

2.Use the terminal and install gh pages using command: npm install --save gh-pages

3.Add this to your scripts in package.json

"scripts": {
      "predeploy": "npm run build",
      "deploy": "gh-pages -d build",
      …
  }
  1. make deploy using npm run deploy in commandline 5 in your repository settings set the branch to gh-pages branch and save

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM