Go to file
2023-05-06 10:04:04 +05:30
archetypes Inception commit 2020-04-02 15:07:23 +05:30
exampleSite Add About to layouts and config.toml 2021-05-02 16:14:02 +05:30
images Update screenshot and thumbnail 2020-04-16 23:37:33 +05:30
layouts hotfix 2021-05-02 16:18:21 +05:30
static removed --- from fonts.css (#11) 2023-05-06 10:04:04 +05:30
.gitignore Inception commit 2020-04-02 15:07:23 +05:30
LICENSE.md Inception commit 2020-04-02 15:07:23 +05:30
README.md Add About to layouts and config.toml 2021-05-02 16:14:02 +05:30
theme.toml update docs and example config.toml 2021-05-02 14:21:10 +05:30

Lekh

Simple, text-focussed and minimal personal portfolio theme based on https://github.com/vegarsti/vegarsti.github.io

Screenshot (Live Demo)

Screenshot

Features

  • Social media links
  • Markdown supported
  • Easy to personalize
  • RSS feed
  • Dark mode (taken from https://www.gwern.net/ as it is.)
  • GoatCounter counts(analytics). Know more about GoatCounter here

Installation

Installing Hugo

# For Linux
sudo apt-get install hugo

# For Mac
brew install hugo

# Detailed instructions at https://gohugo.io/getting-started/installing#readout

Creating a new site

hugo new site <site_name>

Adding lekh as a theme

cd <site_name>
git init
git submodule add https://github.com/ba11b0y/lekh.git themes/lekh
echo theme = \"lekh\" >> config.toml

Here's Hugo's official guide for more details.

Personalization

Hugo looks for a config.toml in the root of your site. To personalize the theme, copy the default config shipped with the theme

cp themes/lekh/exampleSite/config.toml config.toml

And then customize accordingly.

Or simply copy the below config and customize accordingly.


baseURL = "https://example.com/"
languageCode = "en-us"
title = "Example Lekh Site"
theme = "lekh"

[params]
Name = "Agent Smith"
About = "We're not here because we're free. We're here because we're __not__ free. There's no escaping reason. No denying purpose. Because as we both know without purpose, we would not exist.<br/> Read more [here](https://matrix.fandom.com/wiki/Agent_Smith)"
Email = "agentsmith@thematrix.com"
Resume = "" # Add the filename with file extension.
PostLimit = 4 # Sets the number of posts to display on the front page
GoatCounterCode = ""

[[params.profiles]]
name = "GitHub"
url = "https://github.com/ba11b0y"

[[params.profiles]]
name = "Twitter"
url = "https://twitter.com/ba11b0y"

[[params.profiles]]
name = "Goodreads"
url = "https://www.goodreads.com/user/show/91520565-rahul-tiwari"

[[params.profiles]]
name = "LinkedIn"
url = ""

Creating posts

# This creates a new draft post in content/posts
hugo new posts/title-of-post.md

Serving it up

# This will show up your draft posts as well.
hugo server -D
#OR

#This will show up only your published posts.
hugo server

Credits

Feel free to contribute and open issues.