A simple, fast, Hugo theme that can be used for blogging and as a portfolio website.
Welcome to drishtikon (perspective). Stay a while! Drishtikon is a minimal Hugo theme that takes inspiration from Andrew Hwan Park's Brutalist Blog and Tyler McRobert's Bridget. Additionally, this theme uses the Inter typeface originally developed by Rasmus Andersson.
Here is a link to my personal website which uses the same theme.
Before starting, make sure you have installed Hugo and Go. To check that both of these are installed,
$ go version$ hugo versionFirst, when you are in your main hugo site folder,
$ git submodule add https://github.com/kishenarayan/drishtikon.git themes/drishtikonThen in your hugo.toml file, add the following:
theme: 'drishtikon'To update the theme:
$ git submodule update --rebase --remoteFirst, when you are in your main hugo site folder,
$ hugo mod init github.com/<your_user>/<your_project>Then, in your hugo.toml file, add the following:
[module]
[[module.imports]]
path = 'github.com/kishenarayan/drishtikon'To update the theme:
$ hugo mod get -u github.com/kishenarayan/drishtikonFor more information, check out the docs.
You can also clone this theme's repository into your own hugo site by doing the following,
$ git clone https://github.com/kishenarayan/drishtikon.git themes/drishtikonTo update the theme:
$ cd themes/drishtikon
$ git pullEnsure your hugo.toml has the following structure (modify as necessary for your purposes):
baseURL = 'https://example.com"
languageCode = 'en-us'
title = 'your-title'
theme = 'drishtikon'
[markup]
[markup.goldmark]
[markup.goldmark.extensions]
[markup.goldmark.extensions.passthrough]
enable = true
[markup.goldmark.extensions.passthrough.delimiters]
block = [['\[', '\]'], ['$$', '$$']]
inline = [['\(', '\)']]
[caches]
[caches.images]
dir = ':cacheDir/images'
[params]
# Uncomment if you have a logo image
# logo = "/path-to-your-logo"
# Profile section for homepage
profilePhoto = "/path-to-your-profile-photo"
profileDescription = """Add a profile description."""
profileUpdates = "Add your updates."
github = "https://github.com/yourusername"
email = "mailto:your.email@example.com"
linkedin = "https://www.linkedin.com/"
pinterest = "https://www.pinterest.com/"
cv = "/path-to-your-cv"
math = true
# Uncomment if you want to customize the colors
# backgroundColor = "#f9dc90"
# linksColor = "#805690"
# textColor = "#333"
# fontFamily = "Inter"
# tableHeaderColor = "#d46f93"
# tableContentColor = "#f89e9d"
# tableRowHoverColor = "#ffbbba"
# writingCardBackground = "#fdf1cd"
[menu]
[[menu.main]]
name = "posts"
url = "/posts/"
weight = 10
[[menu.main]]
name = "writings"
url = "/writings/"
weight = 20
[[menu.main]]
name = "photos"
url = "/photos/"
weight = 30
This theme uses KaTeX for mathematics typesetting.
Ensure that your content folder has the following structure:
content
├───photos
├───posts
└───writings To add a post, simply create a new markdown file post-title.md in the posts folder.
To add a writing, simply create a new markdown file writing-title.md in the writing folder. In the frontmatter of the markdown file put category: . The available categories are research, expository, and projects.
To add photos, you must first add an album folder to the photos folder. Here is an example of what the strucutre of photos could look like.
photos
├───album1
└───album2 Ensure there is an _index.md file in the photos folder and each of the album folders you add. The frontmatter of this file should look like:
---
title: "Your Album Title"
---Then to add a photo, inside an album folder, add a markdown file photo1.md. It's front matter should look like:
---
title: "Your Photo Title"
description: "Your Photo Description"
image: "/path-to-your-photo"
weight: 1
---To replace the logo of the website put your image/svg file into into the icons directory of your website static directory. Then in your hugo.toml file uncomment the logo line and put the path to your logo.
To see your site live, use Hugo's built-in local server by running:
$ hugo serverand navigate to http://localhost:1313.
All bug reports and pull requests are welcome under https://github.com/kishenarayan/drishtikon.
The theme is available as open source under the terms of the MIT License.



