Hugo Theme for my Personal Website. Adapted from Panrs Terminal Theme


Features

Built-in shortcodes

Code highlighting

A custom syntax highlighting based on Chroma. All you need to do is to wrap you code like this:

```html
  // your code here
```

How to start

You can download the theme manually by going to https://git.repetitions.de/hugo-theme-terminal and pasting it to themes/terminal in your root directory.

You can also choose one of the 3 possibilities to install the theme:

  1. as Hugo Module
  2. as a standalone local directory
  3. as a git submodule

Install theme as Hugo Module

# If this is the first time you're using Hugo Modules
# in your project. You have to initiate your own module before
# you fetch the theme module.
#
# hugo mod init [your website/module name]
hugo mod get github.com/panr/hugo-theme-terminal/v3

and in your config file add:

[module]
  # this is needed when you fetch the theme as a submodule to your repo.
  # replacements = "github.com/panr/hugo-theme-terminal -> themes/terminal"
[[module.imports]]
  path = 'github.com/panr/hugo-theme-terminal/v3'

Keep in mind that the theme by default won't show up in the themes directory. This means that you are using the theme as it was on the repository at the moment you fetched it. Your local go.sum file keeps all the references. Read more about Hugo Modules in the official documentation.

Install theme locally

git clone https://git.repetitions.de/hugo-theme-terminal.git themes/terminal

This will clone the repository directly to the themes/terminal directory.

Install theme as a submodule

git submodule add -f https://git.repetitions.de/hugo-theme-terminal.git themes/terminal

This will install the repository as a sumbodule in the themes/terminal directory.

⚠️ If you encounter any issues with:

Error: module "terminal" not found; either add it as a Hugo Module or store it in "[...your custom path]/themes".: module does not exist

then please try to remove theme = "terminal" from your config file.

How to run your site

hugo server -t terminal

and go to localhost:1313 in your browser. From now on all the changes you make will go live, so you don't need to refresh your browser every single time.

How to configure

The theme doesn't require any advanced configuration. Just copy the config.toml of the example site.

Add-ons

How to edit the theme

If you are using as a remote Hugo Module (you don't have the theme files in the theme/terminal) and you have to override only some of the styles, you can do this easily by adding static/style.css in your root directory and point things you want to change.

If you have the theme files in the theme directory, then you can directly edit anything in the theme, you just have to go to themes/terminal and modify the files. No compilation step needed.

License

Copyright © 2019-2022 Radosław Kozieł (@panr)

Copyright © 2024 Lou Woell

The theme is released under the MIT License. Check the original theme license for additional licensing information.