GithubHelp home page GithubHelp logo

yongzx / archive-yongzx.github.io Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jonbarron/website

0.0 1.0 0.0 615.33 MB

Personal website

Home Page: https://yongzx.github.io

HTML 49.82% Ruby 0.28% SCSS 29.08% CSS 3.40% JavaScript 14.43% Shell 2.99%

archive-yongzx.github.io's Introduction

Error with CSS: https://stackoverflow.com/questions/64715686/jekyll-css-not-working-on-github-pages-but-it-works-on-localhost3000

So, instead of letting GitHub build the site for us, we can do it on our own locally by running bundle exec jekyll build, and then pushing only the contents of the _site folder to the gh-pages branch. This requires that you have two separate branches: one for your Jekyll project (typically called master or main), and the gh-pages branch that is only used to hold the contents of the _site folder every time you build the site. That’s all there is to it in order to use the latest Jekyll and any theme and plugin you want.

bash run.sh.

bundle exec jekyll serve -w --baseurl ''


# build and switch to the gh-pages branch
bundle exec jekyll build
git checkout gh-pages

# move all the index html files to current folder
rm -rf *
git checkout master -- _site
mv _site/* .

# commit (remember -am instead of -m)
git commit -am "Updated index.html from master"
git push origin gh-pages

git checkout master

archive-yongzx.github.io's People

Contributors

adityassrana avatar aliosmanulusoy avatar ankit-kaul avatar assafshocher avatar avinashpaliwal avatar davidea avatar dplarson avatar fliptrail avatar g1910 avatar harsh9524 avatar hiteshvaidya avatar ilya-muromets avatar imdiptanu avatar jaydeepborkar avatar jlidard avatar jonbarron avatar mainakpal08 avatar natehouk avatar peymanbateni avatar plalsanjay avatar pro-vider avatar qiminchen avatar rishabkhincha avatar tamarott avatar tsingularity avatar vishal-keshav avatar vr25 avatar yektademirci avatar yongzx avatar yunfanjiang avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.