sudo apt-get install ruby ruby-dev make build-essential
sudo gem install -V bundler
bundle
make
- All setup are done in
_config.yml
file
Important note : main file is _config.yml
file ho so tyo file ma kai update garyasi mathi github ko line ma herhani pass vaya ki vavyana vanyara
After config config.yml
file we will move in creating pages, posts, and collections.
main:
- title: "Posts"
url: /posts/
- title: "Post collections"
url: /postcollections/
- title: "About"
url: /about/
permalink: /about/
title: "About"
classes: wide
excerpt: Learn about me, who iam and what I do.
Be sure the permalink = url in navigation.yml file.
Note: page ma click garni bitikai auni banaunai kura haru yahi lekhni . Yadi post haru lekhnu x vanya post ma lekhni.
- Note while creating posts we need to focus on first setion.
- Write simple text directly.
- --- is for horizontal line
print("hello")
- For image you can use : draw.io
- For emoji : emojipedia
- For githubcard : githubcard
- For weights : shild
- Note : if page, post,.yml, or j ni git ma properly configuration vayo vanya thyakka mathi bar ma yellow point dekhinxa github action pass vanyara.
- page ma classes: wide vanyara hunxa
- post ma layout : categories,posts vanyara hunxa.
Note: projects / talks / session ... haruko collection banauna ko lagi
- Goto the
_data
> navigation.yml file and create new pages with new title and url. - Goto the ```_pages`` folder and create new .html file (eg: portfolio-archive.html) note page url = permalink of this .html file
- Write collection in
_post
folder
Note : website lai akchoti search engine ma verify garayo vanya pugxa.
- follow minimal mistake
- Create a New search engine in Google Custom Search Engine tya bata ako cx="YOUR_SEARCH_ENGINE_ID" lai
__config.yml
ko google: search_engine_id: YOUR_SEARCH_ENGINE_ID ma past gardeni.
Note : different search engine ma afno site verify garnuparni ani tyo search tool le afai khojxa , there are lots of search engine tool
- 1-day, 2-day jati time lagxa verify huna
- google search engine ma visiable banauna , google search console ma verify garaunu parxa/ yadi google analytics ma verify garisakeko x vanya yasma garnu pardaina
- Formerly known as Google Webmaster Tools, add your verification code in
___config.yml
like so: google_site_verification: "yourVerificationCode"
- Bing ma website visiable banauna yo chai(google search console jastai arko tool ho yo)
- Bing webmaster tools ma site add garni 2 tarika xan , akchoti google console ma add garisakyasi tya verify vaisakeko x vanya bing ma google search console ko help le site lai bing webmaster tools ma add garna sakinxa
- or manully ni add garna sakixa
Note : There are lots of search engine tool ok.
If you have a custome domain(eg: madan.com) you can config your DNA to github as shown below. We are going to config .np domain here in cloudflare, similiarly you can config in any DNS server.
Note π : .np domain have no option CNAME so we use cloudflare
- Example : cloudflare
- Redirected: Domain name point at ip address(A record)>DNS point ip address to another domain name(CNAME)
A record : Madanbaduwal.com.np points to 185.199.109.153(githubip)
A record : Madanbaduwal.com.np points to 185.199.110.153(githubip)
A record : Madanbaduwal.com.np points to 185.199.111.153(githubip)
CNAME record : MadanBaduwal.com.np is an alise of madanbaduwal.github.io
Note π : github ip are same for all users.
- look your Primary name server and Secondary name server from cloudfair
Note π : Primary name server and Secondary name server are different for all users so don't copy other , look in your cloudfair account.
- Pest you Primary name server and Secondary name server from cloudfair
- You can create CNAME file manually in github project(CNAME align with index.html) with madanbaduwal.com.np. or
- In project setting if we set custome domain it create CNAME file automatically with it body.
Unfortunately Github pages does't support SSL on GIithub pages for custome domain , so do that in cloudfair
- Goto the SSL/TLS and make
Encrypts end-to-end, using a self signed certificate on the server
and
-
SSL/TLS Recommender ON
-
Goto the Page rule set the following two rules
madanbaduwal.com.np/* : Always Use HTTPS
www.madanbaduwal.com.np/* :Always Use HTTPS
Go throw : mmistakes
-
Google webmaster + Google search console (mathi madadnbaduwal.github.io ko lagi garya jastai)
-
Verified your website by copy provided text and pest in DNS(cloudfair) as TXT record.
TXT record : Madanbaduwal.com.np points to <text copy from google search console>.
- Submite your sitemap : https://madanbaduwal.com.np/sitemap.xml , in google search console.