/salekin01.github.io

Testing static web hosting

Primary LanguageHTML

salekin01.github.io

GitHub Pages is a static site hosting service that takes HTML, CSS, and JavaScript files straight from a repository on GitHub, optionally runs the files through a build process, and publishes a website.

How to publish

  1. Create a repository owned by your user account that's named <user>.github.io
  2. Now create a folder named <user>.github.io in your local directory
  3. Copy your project files (css or html or javascript) into that folder. For examples:
  4. Open Git Bash in that same folder
  5. Now type the bellow git commands in Git Bash to push the local files to git repository
    1. git init
    2. git add .
    3. git commit -m “initial commit"
    4. git remote add origin <Github repository url>
    5. git push origin master
  6. Now browse your static web site using <user>.github.io

Good articels for reuse of navigation bar on multiple pages & limitation of html include

  1. https://stackoverflow.com/questions/31954089/how-can-i-reuse-a-navigation-bar-on-multiple-pages
  2. https://css-tricks.com/the-simplest-ways-to-handle-html-includes/