100 Sites Part 3

SITE 9 - 11 

9. NETLIFY

Cloud hosting, lifetime, only once

To use Netlify you need Github account.

First go to https://github.com/danielsacramanto/NEWNETLIFY and click the green Code button. 

Download zip. Move the zip and Extract in a New folder. These are the site files. Css, favicon, index etc.


Go to https://github.com/ and create a new account.

Log in to Github and click the plus icon at the top. Choose New repository.

Write a name (same as sitename you want to give), scroll down click create repository.

Click uploading an existing file.


Open the previously downloaded folder containing the site files.

Select all files and drag and drop into the upload field on Github. Wait for uploading to finish. 

Click Commit changes.


Go to https://netlify.com and sign up

Visit https://app.netlify.com/ click "Add new site"

Choose "import existing project"

Choose Github as git provider. Give permission

Choose the repository just created.

Next keep everything as is and click Deploy site. 

Click site settings, scroll down click Change site name, type sitename.

Save. Visit


Sample: https://newnetlifys.netlify.app/


-----------------------

EDIT YOUR SITE:

Personalize the site according to your needs.

Edit the site files on Github to make any changes. 

The index.html file is for Homepage

The newpost.html is the template for new posts

The blogpost.html is a sample blogpost


There are 3 pages now. Don't need to change blogpost.html as we will delete this page later. 


To edit any page go the specific repository and click on the file needed to change. 

You will see code of the page. Click the pencil icon at the right to edit code. 


First edit the homepage which is index.html file:

Need to change Title, Site logo, Navbar items, front page posts


Change <title tag to your page title. Page title is visible on browser tab. If you're editing homepage, change to YOURSITENAME. For post pages insert Post title here.


Change <h1 class="sitelogo to YOURSITENAME

Change navbar items HOME, TECHNOLOGY etc.

Change featured images placehold.png to different images

Change Card Post Title & Descriptions

Change List group item Headings & Descriptions

Click commit changes to Save.


-----------------------

Download & Edit Your posting template:

Go to the site files on github

Click on newpost.html file

Use the "Copy raw contents" button to copy the "newpost.html" file code.  

Paste the code on notepad++ and Name the file to posttemplate.html. Save this and use it for creating new posts.

You can use this file to make copies and edit the copy to create a new post.


Let's create a new article:

Copy your post template file and edit with notepad++

First Edit <title

Insert image address in  first <img 

Edit <h2 class="item-post-tile"

Edit <p class="byline" With your name and date

Then insert rest of the article using P tags and links.

Save file. Give it a short one word name. 

Go to github. Click on the repository

Click Add file, UPLOAD files 

choose only the New file to upload

New post will be available at https://sitename.netlify.app/postname.html


=====================================

10. VERCEL

Cloud hosting, lifetime, only once

Go to Github and create a new repository

Give a name

Open new tab and download the site files from https://github.com/danielsacramanto/NEWVERCEL

Unzip folder inside a new folder

Upload the folder contents on Github repository. wait for upload and then click commit


Go to https://vercel.com/ and create a new account

Go to https://vercel.com/dashboard 

Connect Github with Vercel (give permission)

Click new project

Import repository from list

Keep everything as is and click Deploy

Visit site. 


- Edit everything from Github just like netlify site. 

- Upload post on github by using the newpost.html file just like netlify site. 


Sample: https://newvercel-indol.vercel.app/

=======================================


11. CLOUDFLARE PAGES

Cloud hosting, lifetime, only once

Go to Github and create new repository with a new sitename

Click Upload existing files

Go to https://github.com/danielsacramanto/NEWCFPAGES and download zip

Extract in a new folder

Go to github upload window and upload folder contents. 


Go to https://www.cloudflare.com/ and sign up

Go to https://dash.cloudflare.com/ and click on Pages from left menu

Click create project

Connect with github account

Choose Github and click on Repository name to select

Click begin setup. keep as is and click save and deploy

Wait for deploying to finish

Visit site

Upload new posts through github by using the newpost.html file


Sample: https://newcfpages.pages.dev/

=========================================

UP NEXT: 100 Sites Part 4