Angad Sharma
Jul 26 · 4 min read

Introduction

A personal portfolio is always fun. Whether it be flaunting it amongst your peers or standing out from the crowd in hiring. Everyone wants to have one but no one wants to write boring HTML for it. Well guess what, now you can make your own portfolio the way you write your READMEs on GitHub, in markdown.

Hugo, the world’s fastest framework for building websites, offers the following features for building your own website with both blazing fast speed and smooth ease. Hugo provides the following features:

  • Fast reloading with real time changes on the web
  • Loads of themes and templates
  • Multi-language support
  • Static site generator
  • Millisecond build time

Installation

To get started, make sure you have the Go installed. To install Hugo refer this.. Hugo offers a very easy-to-use multi Operating System command line interface to interact with its underlying features.

Getting started

To create a new website using Hugo, simply run the following commands on the command line.

$ hugo new site mysite
$ cd mysite
$ git clone https://github.com/vaga/hugo-theme-m10c.git themes/m10c
# Directory structure of the projectmysite
├── archetypes
│ └── default.md
├── config.toml
├── content
├── data
├── layouts
├── static
└── themes
└── m10c
7 directories, 2 files

You can look at some great themes for Hugo over here. In this tutorial we are going to use the m10c theme.

Add theme = "m10c", at the end of config.toml. You can start the hugo server by typing:

$ hugo server -D

Go to localhost:1313 and you will be able to see the following:

Empty m10c theme

Now to add social links to your portfolio you can take a look at mysite/themes/m10c/exampleSite/config.toml. This serves as an example of adding different components to your own config.toml. You can add the social login links to your own config. Copying the params to our own config.toml, it now looks like this:

baseURL = "http://example.org/"
languageCode = "en-us"
title = "About me"
theme = "m10c"
[params]
author = "Angad Sharma"
description = "Noob is just a state of mind"
[[params.social]]
name = "github"
url = "https://github.com/L04DB4L4NCER"
[[params.social]]
name = "twitter"
url = ""
[[params.social]]
name = "linkedIn"
url = "https://linkedin.com/in/angad-sharma-07bb38122/"

To add an avatar, simple add an image of yourself, name it avatar.jpg and place it in static/ folder. Our website now looks like this:

The website, with social links and avatar

Now that we have our image and social links on the website, it is time to add some more of our information.

In Hugo, we can create different web pages. Each webpage goes into the content/posts/ directory as a markdown file. It is there that we can write markdown and define how we want it all to lay out.

Webpages are created in the form of posts in Hugo. Lets get started with creating a new post.

$ hugo new posts/Blogs.md

This creates a new file called Blogs.md in the content/posts/ folder. Open Blogs.md and you can start writing markdown.

---
title: "Blogs"
date: 2019-07-23T20:14:38+05:30
draft: true
---
### This is a new blog page
I can write in markdown over here
<br>#### Index[Links to blogs](#a)
[Links to blogs](#b)
[Links to blogs](#c)
[Links to blogs](#d)
[Links to blogs](#e)
[Links to blogs](#f)
<br>- [X] Markdown
- [X] Is
- [X] Fun

And it will automatically be reloaded on your website in the form of a hyperlink. You can paginate over these hyperlinks and also set which hyperlinks to show first in the order of the time they were created. On clicking the hyperlink, you will be able to see contents of the markdown file that we defined above.

First post
Blogs.md

With the right number of posts and enough content, you can make your own portfolio. Take a look at one of my post pages.

An industry with an increasing number of competition is the best motivation for someone to start designing their portfolio in a way that it stands out from the rest of the competition. But who says it has to be hard?

With a handful of simple steps, and some markdown magic, anyone can make their own beautiful website without coding one bit. Hugo is indeed a very fast tool, with advanced features like instant reloading and real time refresh, loads of templates, easy configuration, multi-language support and of course, markdown!

References

DSC VIT Vellore

Developer Student Clubs VIT, powered by Google Developers, is a non-profit community that aims to inspire intelligent minds in the field of technology. DSC provides opportunities where developers, designers and managers work together to carry out real-time projects.

Angad Sharma

Written by

Aptly named L04DB4L4NC3R

DSC VIT Vellore

Developer Student Clubs VIT, powered by Google Developers, is a non-profit community that aims to inspire intelligent minds in the field of technology. DSC provides opportunities where developers, designers and managers work together to carry out real-time projects.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade