Remember about the contest Code-in? well I participated in the contest and I learn't a new thing in it!
HUGO
IT IS A STATIC BLOG GENERATOR! I DON'T WANT TO GO INTO MORE DETAIL ABOUT WHAT IS HUGO WHICH YOU CAN SEARCH IN GOOGLE, LET US BUILD A BLOG USING HUGO! IT IS EASY AND TIME-SAVING!
Below is step by step instruction to build a blog using Hugo!
IMP - This post is based on WINDOWS version of Hugo.
Hugo is a static website generator. Okay, our first step is to have Hugo and Git installed on your PC. Once installed, make sure it is kept in your system path.
Run cmd on you PC and set the location where you want to work on the blog.After doing that that type the following command :-
The final step is to type the following command :-
NEXT BLOG, I WILL BE TEACHING YOU TO PUSH YOUR BLOG TO GITHUB AND VIEW AS GITHUB PAGES!
HUGO
IT IS A STATIC BLOG GENERATOR! I DON'T WANT TO GO INTO MORE DETAIL ABOUT WHAT IS HUGO WHICH YOU CAN SEARCH IN GOOGLE, LET US BUILD A BLOG USING HUGO! IT IS EASY AND TIME-SAVING!
Below is step by step instruction to build a blog using Hugo!
IMP - This post is based on WINDOWS version of Hugo.
Hugo is a static website generator. Okay, our first step is to have Hugo and Git installed on your PC. Once installed, make sure it is kept in your system path.
Run cmd on you PC and set the location where you want to work on the blog.After doing that that type the following command :-
hugo new site [Folder name you want to create]
A new folder will be created where you set the location. Now type another command to add a new post to your blog. hugo new post/[post name].md
Now we need to add a theme for our blog.. create a folder named
themes and change the location of your cmd to themes folder and type the
next command git clone [the theme repository link]
Once it has been cloned, go to the folder where we made our blog. You
may see a file called config.toml. Edit it using notepad or any text
editor. You may see a code “title=”…. you may edit the title to any
title you want.
Then add a new line of code :- theme = "[theme name]"
After doing this, return back to the folder and you will find a
folder called content and then post. Your post will be there. Edit it
now. You may write whatever you want to below the “+” sign as it is the
content of your post.Save your file after doing this.The final step is to type the following command :-
hugo server -w
Open your browser and type the following and press enter. http://localhost:1313
Now, Lets build our blog. For that type :- hugo --
That’s all , Our Blog is ready. You may later upload it to github and use it as a page..NEXT BLOG, I WILL BE TEACHING YOU TO PUSH YOUR BLOG TO GITHUB AND VIEW AS GITHUB PAGES!
Comments
Post a Comment