This repository has been archived on 2023-07-05. You can view files and clone it, but cannot push or open issues/pull-requests.
notes/Terminal Tips/Shells/Internet/Hosting/Github Pages.md

2.0 KiB

Tools:

  • Github
    • website
  • Jekyll
  • Prose

  • Terminal

This is where your own personal website lives. It is hosted via github for free and fully customizable to your heart's content so make sure to take full advantage of it!

  • this is what your portfolio site looks like currently.
  • and this is your github repo where your code files live

Publish files to a gh-pages branch on GitHub (or any other branch anywhere else). Do the following:

npm install gh-pages --save-dev

or to add to a different branch: yarn add gh-pages


Watch this video

How to Host a website on Github Pages. We can host a static HTML website for free on Github. You can only host static websites (HTML, CSS, JavaScript, including react, angular, bootstrap). You won't be able to upload a web application with a server (python flask/django, ruby on rails, node.js/express, etc). The steps are as followed:

  1. Create a GitHub account and login
  2. Create a repository and name it {username}.github.io if it's a personal website; else, name it whatever you like.
  3. Upload your web page files to the new repository
  4. Go to settings, pages, and click on source. Change 'none' to 'master' or 'main' (or whichever branch you'd like) Your website will have this structure: {username}.github.io/{repository-name}
  5. To add a custom domain to your website, check out this video:     • How to add a Cust...

Getting my Github back up again.

  1. git clone my repository into a folder
  2. if there are dependency issues use yarn install

Tips: