madanbaduwal / madanbaduwal-old.github.io

A personal blog where I write about mathematics, data science, and artificial intelligence.
https://madanbaduwal.github.io/
5 stars 5 forks source link

Run this project πŸƒ

For local run

Install dependencies

sudo apt-get install ruby ruby-dev make build-essential
sudo gem install -V bundler
bundle

Run jekyll locally

make

About _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.

Creating a pages

Goto _data and add title and url

main:
  - title: "Posts"
    url: /posts/
  - title: "Post collections"
    url: /postcollections/
  - title: "About"
    url: /about/

Goto _pages folder and create pages.

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.


Creating posts

Goto _posts folder and create posts.

Note while writing post

Directly write in markdown


Page and post


Creating a collections

Note: projects / talks / session ... haruko collection banauna ko lagi


Note : website lai akchoti search engine ma verify garayo vanya pugxa.

Google Custom Search Engine

SEO, and analytics settings

Note : different search engine ma afno site verify garnuparni ani tyo search tool le afai khojxa , there are lots of search engine tool

SEO( talko searching tool use garni)

Google Search Console

Bing Webmaster Tools

Note : There are lots of search engine tool ok.

analytics settings (website ma kati traffic ayo sabai herna milxa ..)


For custome domain

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

Steps for custome domain

1. Go to the DNS server :

   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.

2. Go to the register.com.np

3. After 24 hours you will gate update

4. Check whether my domain is Primary name server and Secondary name server from cloudfair

5. CNAME(no any extension) file in github

6.SSL setup ( For secure)

Unfortunately Github pages does't support SSL on GIithub pages for custome domain , so do that in cloudfair

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)