Blog

How to Use Google Sheet to Store Visitor Count for Your Static Website

P.S. This post assumes that the reader is aware of Google Spreadsheets, integration with Google App Scripts, how to publish a Google Script as Web App and has somewhat fimiliarity with JavaScript. If not then please google for these, there are tons of good quality posts that walks you through these features in detail. Recently while working on a static site (ofcourse generated using Hugo), I needed to add Visitor Count information on it.

Published On: Jan 3, 2019

How to Configure Hugo Site With Github Pages for Custom Domain

Hosting a static site on Github is pretty easy but there are some obscure configurations needed to get everything setup properly. This post walks through few of those for setting up hugo generated site with Github. Hugo’s official documentation on how to Host on GitHub has almost all the details that is required to configure Hugo and successfully host your static website on GitHub Pages. I got lost in the custom domain step on which the page does not have much details, except setting up the CNAME file.

Published On: Dec 24, 2018

How to Write Custom ESLint Rules for Your Project

While researching for a better (I was using JSHint before) and customizable JavaScript Code linting tool, I found ESLint and ever since have never looked back. ESList is modern, fast, customizable and cross-platform Node.js based static code analyser that looks for bad and problematic patterns in your JavaScript code. Things that I love about ESLint tool: Blazing fast scanning provides immediate feedback Ability to add custom rules this is a huge win if you use a framework that is custom or is heavily customized.

Published On: Dec 22, 2018

Highlight Active Nav Menu in Hugo

After applying the Editorial theme to my website, I found that the menu item for the current page is not being highlighted. With some fiddling I was finally able to implement it with Go logic. If you want to implement this for your theme/website, locate the code that actually renders the site menus. In the Editorial theme, it was present in layouts/partials/nav.html file (please note this might vary for different themes, just search for .

Published On: Dec 18, 2018

Automating boilerplate code generation with Go

Published On: Dec 4, 2018

Golang: Print ASCII Art on Console

Ascii Arts are always fun. Few days back I finished writing a small utility that automates the code generation for the Frontend in my project. It is a command line tool and is meant to be executed on the console (command prompt as its called on Windows). I wanted to print a nice Ascii art whenever it runs. I did some research online and found two options. Either use one of the open source libraries that provides many more option for generating dynamic Ascii art Or write something by my own (quick and dirty) I came up with a simple solution that should be obvious for most developers.

Published On: Nov 27, 2018

Golang - a Swiss Army Knife

My experience with Golang. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Published On: Nov 17, 2018

Firebase as a backend for hosting a blog

My experience with Firebase. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Published On: Oct 17, 2018

VueJS, a breeze of fresh air

My experience with VueJS. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Published On: Oct 17, 2018