sudo apt-get install ruby ruby-dev make build-essential
sudo gem install -V bundler
bundle
make
_config.yml
file_config.yml
fileImportant 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.
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: projects / talks / session ... haruko collection banauna ko lagi
_data
> navigation.yml file and create new pages with new title and url.`_pages
folder and create new .html file (eg: portfolio-archive.html) note page url = permalink of this .html file_post
folderNote : website lai akchoti search engine ma verify garayo vanya pugxa.
__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
___config.yml
like so: google_site_verification: "yourVerificationCode"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
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.
Note π : Primary name server and Secondary name server are different for all users so don't copy other , look in your cloudfair account.
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
### 7. You can setup many rules in cloudfair for your website.
### 8.Visiable in google + SEO
Go throw : [mmistakes](https://mmistakes.github.io/minimal-mistakes/docs/configuration/)
* [Create search engine first](https://cse.google.com/cse/all)
* 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
* Submite your sitemap : https://madanbaduwal.com.np/sitemap.xml , in google search console.
# Reference
* [maelfabien](https://github.com/maelfabien/maelfabien.github.io)
* [mmistakes](https://mmistakes.github.io/minimal-mistakes)
* [amitness](https://github.com/amitness/amitness.github.io)