Git Product home page Git Product logo

lekh's Introduction

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 = "[email protected]"
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.

lekh's People

Contributors

ba11b0y avatar darshkpatel avatar suburbanbourbon avatar suyash192 avatar verkaufer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

lekh's Issues

What is the purpose of data/personalize.toml file?

All the params in data/personalize.toml can be shifted to config.toml and the about section can be shifted to an _index.md file in the content directory.

Advantages:

  1. Single configuration file (config.toml).
  2. Seems to be the standard way based on most of the themes I've used (Could be wrong on this one).
  3. Possible to embed raw HTML in about section.
  4. Syntax highlighting for about section html / markdown.

Set default mode to dark

Thank you for an excellent minimal theme. Is it possible to set dark mode as default in config.toml and disable the rest.

I can't get this theme to work using the steps in Hugo's quickstart

Hi, I've tried several themes successfully following the steps in https://gohugo.io/getting-started/quick-start/ but with lekh I get the following message when I run hugo server.

Start building sites โ€ฆ Built in 17 ms Error: Error building site: failed to render pages: render of "home" failed: "C:\...": execute of template failed: template: index.html:34:11: executing "index.html" at <first .Site.Data.personalize.PostLimit .Pages.ByPublishDate>: error calling first: both limit and seq must be provided

Any idea what I could try?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.