Skip to content

nitish2112/website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To install hugo on your Ubuntu machine

% sudo apt-get install golang-go
% wget https://github.com/gohugoio/hugo/releases/download/v0.27.1/hugo_0.27.1_Linux-64bit.deb
% sudo dpkg -i hugo_0.27.1_Linux-64bit.deb

Note you can also find other releases of hugo on:

https://github.com/gohugoio/hugo/releases/

These are the steps to download this website and build it on Ubuntu machine

% git clone [email protected]:nitish2112/website.git
% cd website
% git submodule update --init
% git clone https://github.com/nitish2112/nitish2112.github.io.git public

Now you can make your chnages in the website/contents folder and run the following commands to view your website locally

% cd website
% hugo server -w

Go to your browser and type http://localhost:1313/ in the URL and you should be able to view your website.

To commit your changes to the website and make them public

% cd public
% git commit -a -m "XYZ"
% git push

This will push your repository to nitish2112.github.io and the changes in your website will be available publicly.

To commit the changes in the markdown files

% cd website
% git commit -a -m "ABC"
% git push

This will push the changes to website repo so that you can clone your hugo project on any machine.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages