Skip to content

kishenarayan/drishtikon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drishtikon

A simple, fast, Hugo theme that can be used for blogging and as a portfolio website.

./images/screengrab.png

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.

./images/postsgrab.png

./images/writingsgrab.png

./images/photosgrab.png

Here is a link to my personal website which uses the same theme.

Installation

Before starting, make sure you have installed Hugo and Go. To check that both of these are installed,

$ go version
$ hugo version

Git Submodule

First, when you are in your main hugo site folder,

$ git submodule add https://github.com/kishenarayan/drishtikon.git themes/drishtikon

Then in your hugo.toml file, add the following:

theme: 'drishtikon'

To update the theme:

$ git submodule update --rebase --remote

Hugo Submodule

First, 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/drishtikon

For more information, check out the docs.

Cloning

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/drishtikon

To update the theme:

$ cd themes/drishtikon
$ git pull

Usage

hugo.toml

Ensure 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.

Adding Content

Set-Up

Ensure that your content folder has the following structure:

content
├───photos
├───posts
└───writings 

Posts

To add a post, simply create a new markdown file post-title.md in the posts folder.

Writings

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.

Photos

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
---

Site Logo

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.

Almost Done

To see your site live, use Hugo's built-in local server by running:

$ hugo server

and navigate to http://localhost:1313.

Contributing

All bug reports and pull requests are welcome under https://github.com/kishenarayan/drishtikon.

License

The theme is available as open source under the terms of the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors