Skip to content

A personal blog where I write about mathematics, data science, and artificial intelligence.

Notifications You must be signed in to change notification settings

madanbaduwal/madanbaduwal-old.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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

  • 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.

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 creating posts we need to focus on first setion.

Note while writing post

Directly write in markdown

  • Write simple text directly.
  • --- is for horizontal line
 print("hello")

Things need while writing posts


Page and post

  • 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.
  • image
  • page ma classes: wide vanyara hunxa
  • post ma layout : categories,posts vanyara hunxa.

Creating a collections

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.

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)

  • 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.

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 :

  • 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.

2. Go to the register.com.np

  • Pest you Primary name server and Secondary name server from cloudfair

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

  • 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.

6.SSL setup ( For secure)

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

  • Create search engine first

  • 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>.

Reference

About

A personal blog where I write about mathematics, data science, and artificial intelligence.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published