Skip to content

Commit

Permalink
feat: swapping to loveit theme!
Browse files Browse the repository at this point in the history
  • Loading branch information
nareshganesan committed Mar 10, 2021
1 parent 7845baf commit e11096a
Show file tree
Hide file tree
Showing 8 changed files with 259 additions and 75 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "themes/uBlogger"]
path = themes/uBlogger
url = https://github.com/nareshganesan/uBlogger.git
[submodule "themes/LoveIt"]
path = themes/LoveIt
url = https://github.com/nareshganesan/LoveIt.git
53 changes: 40 additions & 13 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ languageCode = "en"
title = "blog | insightstream.dev"

# Change the default theme to be use when building the site with Hugo
theme = "uBlogger"
theme = "LoveIt"
# whether to use robots.txt
enableRobotsTXT = true
# whether to use git commit log
Expand All @@ -16,6 +16,11 @@ enableEmoji = true
# content summary length
summarylength = 5

[author]
name = "Naresh Ganesan"
email = "nareshganesan@insightstream.dev"
link = "https://github.com/nareshganesan"

[frontmatter]
date = [":git", "date", "publishDate", "lastmod"]
lastmod = [":git", "lastmod", ":fileModTime", ":default"]
Expand Down Expand Up @@ -60,7 +65,7 @@ summarylength = 5
# default amount of posts in each pages
paginate = 12
# copyright description used only for seo schema
# copyright = "This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License."
copyright = "This work is licensed under MIT"
# Menu config
[languages.en.menu]
[[languages.en.menu.main]]
Expand Down Expand Up @@ -111,7 +116,7 @@ summarylength = 5
pre = "<i class='fab fa-github fa-fw'></i>"
post = ""
name = ""
url = "https://github.com/nareshganesan/"
url = "https://github.com/nareshganesan/blog.insightstream"
title = "GitHub"
weight = 6
[languages.en.params]
Expand Down Expand Up @@ -165,7 +170,7 @@ summarylength = 5
# title shown in home page (HTML format is supported)
title = "Blog | insightstream.dev"
# subtitle shown in home page (HTML format is supported)
subtitle = "Stream of insights on different topics!"
subtitle = "Stream of insights!"
# whether to use typeit animation for subtitle
# typeit = true
# whether to show social links
Expand Down Expand Up @@ -198,9 +203,9 @@ summarylength = 5

[params]
# uBlogger theme version
version = "1.3.X"
version = "0.2.X"
# site description
description = "Stream of insights on different topics"
description = "Stream of insights!"
# site keywords
keywords = ["insightstream", "nareshganesan", "insights", "blog", "naresh", "posts"]
# site default theme ("light", "dark", "auto")
Expand All @@ -214,8 +219,8 @@ summarylength = 5
dateFormat = "2006-01-02"
# website images for Open Graph and Twitter Cards
images = ["/img/insightstream.png"]
author = "NareshGanesan"
authorLink = "https://insightstream.dev/about"
# author = "NareshGanesan"
# authorLink = "https://insightstream.dev/about"

# uBlogger NEW | 0.2.0 App icon config
[params.app]
Expand Down Expand Up @@ -281,7 +286,7 @@ summarylength = 5
# whether to show the copy button of the code block
copy = true
# the maximum number of lines of displayed code by default
maxShownLines = 20
maxShownLines = 30
# KaTeX mathematical formulas config (KaTeX https://katex.org/)
[params.page.math]
enable = false
Expand All @@ -295,7 +300,29 @@ summarylength = 5
copyTex = true
# KaTeX extension mhchem
mhchem = true

[params.page.comment]
enable = true
# Disqus comment config (https://disqus.com/)
[params.page.comment.disqus]
enable = true
# Disqus shortname to use Disqus in posts
shortname = "nareshkumarganesan"
# Section (all posts) page config
[params.section]
# special amount of posts in each section page
paginate = 20
# date format (month and day)
dateFormat = "01-02"
# amount of RSS pages
rss = 10
# List (category or tag) page config
[params.list]
# special amount of posts in each list page
paginate = 5
# date format (month and day)
dateFormat = "01-02"
# amount of RSS pages
rss = 10
# uBlogger NEW | 0.2.0 header config
[params.header]
# desktop header mode ("fixed", "normal", "auto")
Expand All @@ -305,7 +332,7 @@ summarylength = 5
# Header title config
[params.header.title]
# URL of the LOGO
# logo = "/img/insightstream.png"
logo = "/img/insightstream.png"
# title name
name = "insightstream.dev"
# you can add extra information before the name (HTML format is supported), such as icons
Expand All @@ -317,7 +344,7 @@ summarylength = 5

# Footer config
[params.footer]
enable = false
enable = true
# Custom content (HTML format is supported)
custom = ''
# whether to show Hugo and theme info
Expand All @@ -329,7 +356,7 @@ summarylength = 5
# site creation time
since = 2021
# license info (HTML format is supported)
# license= '<a rel="license external nofollow noopener noreffer" href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank">CC BY-NC 4.0</a>'
license= '<a rel="license external nofollow noopener noreffer" href="https://github.com/nareshganesan/blog.insightstream/blob/main/LICENSE" target="_blank">MIT</a>'


# Markup related configuration in Hugo
Expand Down
34 changes: 27 additions & 7 deletions content/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,45 @@ draft: false
</a></div><figcaption class="image-caption">Naresh Ganesan</figcaption>
</figure>

Passionate engineer/researcher, who loves to find simple solutions to challenging problems. Love to solve challenging real-world problems. At present, building an awesome SAAS product using k8s @ oneDPO. Key expertise on the following topics.
Passionate engineer, likes research and solving real-world problems. Had the wonderful opportunity to do Masters in Management Information Systems from University of Arizona, Tucson. Some of softwares which I have built in the past for companies range from OCR for Cheques/Goverment ID, Virtual Tryon application, AI Inferencing engine for Video surveillance product using kubeflow, Video streaming pipeline using DeepStream SDK, Automated Named Entity Recognition for Structured and Unstructured documents. At present, building an awesome SAAS product using k8s @ oneDPO.

### Expertise

- Algorithm design
- Natural Language Processing
- Deep learning
- kubernetes
- Kubernetes
- Architecure design

Tools / frameworks used
### Kubernetes tools

- Kubeflow
- Istio
- ArgoCD
- Jaeger / Zipkin

### Deep learning tools

- Pytorch
- Tensorflow
- Keras
- kubeflow
- istio
- ELK stack
- Tessarect

### NLP tools

- Spacy
- Flair
- Presidio
- NLTK

### Computer Vision tools

- OpenCV
- DLib

### Streaming tools

- Kafka
- Tessarect
- Gstreamer
- Deepstream SDK

Expand Down
54 changes: 0 additions & 54 deletions content/posts/hugo-netlify.md

This file was deleted.

136 changes: 136 additions & 0 deletions content/posts/hugo-netlify/index.en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
---
title: "Hugo + Netlify = awesome!"
date: 2021-02-26T00:54:35+05:30
lastmod: ""
draft: false
categories: ["hugo", "ci/cd", "jamstack"]
tags: ["hugo", "netlify", "ci/cd", "jamstack"]
---

Hugo and Netlify have really simplified the job for creating a website (static) quickly. Hugo makes content creation as simple as editing markdown files. Web hosting, deployment and TLS management are taken care by Netlify. By making content creation pipeline simple, flexibility to choose from plethora of themes and ease of deployment makes the combo really useful. There are other competitors like Next.js, Gatsby, jekyll, Nuxt etc. Some scenarios where Hugo and Netlify can really make a difference are listed below.

{{< admonition type=note >}}

- personal blog
- designer portfolio
- blog for business
- documentation site for tools
- Wiki docs

{{< /admonition >}}

## Hugo and Netlify setup

Let's try to understand what makes this combination really useful. Hugo is static site generator primarily based on Markdown for creating content. The Site can be customised using predefined themes from community or creating one from scratch. Once the hugo site is ready, deployment is as easy as commiting files to github. This is where Netlify comes into play. Lets review the steps to get started with the combination

{{< admonition type=tip >}}

- Install golang
- Install hugo and theme
- Create content using markdown files
- Create a netlify account
- Create a github repo
- Commit and deploy website to netlify subdomain (domain can also be done by configuring DNS with netlify)

{{< /admonition >}}

The following installation steps are verified against Ubuntu 18.04

### 1. Install Golang

```shell
# download golang binary
wget https://dl.google.com/go/go1.13.linux-amd64.tar.gz
# extract
sudo tar -C /usr/local -xzf go1.13.linux-amd64.tar.gz
# add to system path
export PATH=$PATH:/usr/local/go/bin
source ~/.bashrc
# verify installation
go version
```

### 2. Install Hugo and theme

```shell
# setup a src repo for golang / hugo
mkdir $HOME/src
cd $HOME/src
# clone hugo source repo
git clone https://github.com/gohugoio/hugo.git
cd hugo
# install hugo
# remove --tags extended (if you do not want to have scss/css)
go install --tags extended
# verify installation
hugo version
# create a static website
hugo new site static-website-name

# install hugo themes
cd static-website-name
git init
# add hugo theme as a submodule of the current project repo
git submodule add https://github.com/budparr/gohugo-theme-ananke.git themes/ananke
# add theme name to config.yaml
echo theme = "ananke" >> config.toml
```

### 3. Create static content

```shell
cd static-website-name;
# to create a new post
hugo new posts/my-first-post.md
# to start hugo server
hugo server -D
```

More information about hugo is [here](https://gohugo.io/getting-started/quick-start/)

### 4. Create Netlify account

Netlify supports github/gitlab/bitbucket for account creation. After creating the account, it asks for connecting to github to read repository information, we have to login to our github account and approve netlify app with those permissions. Once done, then netlify can direclty connect to our github account and access any repository for website deployment in one of their subdomain. More information about Netlify can be found [here](https://gohugo.io/hosting-and-deployment/hosting-on-netlify/)

### 5. Create github repo

```shell
cd static-website-name;
# add the remote repository from github
git remote add origin <remote repository URL>
# add all the changes
git add .
# commit the changes
git commit -m 'initial commit'
# push to remote repo
git push origin master

```

### 6. Deploy to Netlify

Deployment to netlify is as simple as authenticating netlify with github and selecting the github repo to build and deploy. Once the repo is selected, netlify automatically deploys the hugo application to one of hugo's subdomain (automatically created). It also manages TLS for the subdomain so we dont have to worry about security. More articles about Netlify and hugo can be found [here](https://www.netlify.com/tags/hugo/)

## Hugo

Some of my favorite features which make hugo really standout are below

- Simple markdown based rendering
- REST api support (makes serving dynamic data)
- Javascript theme support
- Ease of Deployment (mainly github and netlify)
- Live reload

We can simply focus on the content and not worry about web layout or design as there are plenty of preconfigured themes to choose. It is also relevantly easy to customise an existing theme or build one from scratch. I prefer to use a theme out of the box to save time.

## Netlify

Netlify has made deployment super simple. For starters it supports github/gitlab/bitbucket for scm, by default netlify deploys to its subdomain and they also support custom domain.

- Free hosting
- Built-in CI/CD
- Domains & DNS management
- Auto TLS certificate management using Let's encrypt
- CDN

My current domain provider is google but I have transferred the DNS settings to Netlify so I can use their auto deployment and tls management. There is only one downside to this setup, since I had to manage Google Workspace MX records in netlify's DNS settings.
Loading

0 comments on commit e11096a

Please sign in to comment.