Skip to content

Enerhim/enervoid-theme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Enervoid Theme

A simple black theme for Hugo with KaTeX & mermaid support.

Image

Demo Site

Images

Lists

Home:

Enervoid Home

Blog / Personal:

Enervoid Blog / Personal

Projects:

Enervoid Projects
Markdown

Math / Katex

KaTex

Formattings

image

Code / Mermaid

Code

Embeds

Embeds

Installation

  1. Create a new Hugo site (or use existing):

    hugo new site my-site
    cd my-site
  2. Install the theme using Git submodule:

    git init
    git submodule add https://github.com/Enerhim/enervoid-theme.git themes/enervoid

    Or clone it directly:

    git clone https://github.com/Enerhim/enervoid-theme.git themes/enervoid
  3. Configure your site — Copy the example configuration:

    cp themes/enervoid/example/hugo.toml ./hugo.toml
  4. Start Hugo server:

    hugo server -D
  5. Visit http://localhost:1313 in your browser.

Configuration

The default hugo.toml configuration file:

baseURL = 'https://example.com'
languageCode = 'en-us'
title = "Your Name"
theme = "enervoid"

[menus]
  [[menus.main]]
    name = 'Blog'
    pageRef = '/blog'
    weight = 10

  [[menus.main]]
    name = 'Personal'
    pageRef = '/personal'
    weight = 20

  [[menus.main]]
    name = 'Projects'
    pageRef = '/projects'
    weight = 30

[params]
  avatar = "https://picsum.photos/200"

  [[params.socials]]
      link = "https://github.com/yourgithub"
      icon = "devicon-github-original"
  [[params.socials]]
      link = "https://twitter.com/yourx"
      icon = "devicon-twitter-original"
   [[params.socials]]
      link = "https://linkedin.in/yourlinkedin"
      icon = "devicon-linkedin-plain"
    [[params.socials]]
      link = "https://itch.io/profile/youritch"
      icon = "fa-brands fa-itch-io" 

[markup]
  [markup.goldmark]
    [markup.goldmark.extensions.passthrough]
      enable = true
      [markup.goldmark.extensions.passthrough.delimiters]
        block = [['$$','$$'], ['\\[','\\]']]
        inline = [['$','$'], ['\\(','\\)']]

    [markup.goldmark.parser]
      [markup.goldmark.parser.attribute]
        block = true

[markup.highlight]
  noClasses = true
  codeFences = true
  guessSyntax = true
  tabWidth = 4
  style = "monokai"

For markdown configuration,

Creating Content

Blog Post:

hugo new blog/my-first-post.md
+++
title = "My first post"
date = 2024-03-22T14:45:30Z
tags = ["Your", "Tags"]
description = "Your description."
+++

Your content here...

Note: Creating a personal post is identical to blog post. Just do

hugo new personal/my-personal-post.md

Project:

hugo new projects/my-project.md
+++
title = "My first project"
date = 2024-03-22T14:45:30Z
tags = ["Your", "Project"]
summary = "Your project summary."
github= "Your Github"
website= "Or your website"
link= "Or any other link"
+++

Fallback content

License

This theme is released under the MIT License. See LICENSE for details.

About

A simple black theme for Hugo with KaTeX support.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages