Minimalistic Hugo theme (mirror of https://github.com/niklasbuschmann/contrast-hugo)
Go to file
Niklas Buschmann 96c4063716 update images 2020-11-25 18:23:27 +01:00
archetypes init 2019-07-15 15:04:11 +02:00
data/fontawesome fix build 2020-02-19 22:14:49 +01:00
images update images 2020-11-25 18:23:27 +01:00
layouts update katex 2020-11-25 17:57:09 +01:00
static merge upstream 2020-11-25 18:16:04 +01:00
.gitignore init 2019-07-15 15:04:11 +02:00
LICENSE.txt move file 2019-07-18 21:59:43 +02:00
README.md directly include icons as svgs 2020-02-18 17:55:14 +01:00
theme.toml change license 2019-07-18 22:09:55 +02:00

README.md

Adaption of the of contrast Jekyll theme.

Installation

To install Contrast as your default theme, first install this repository in the themes/ directory:

$ cd themes/
$ git clone https://github.com/niklasbuschmann/contrast-hugo.git

Second, specify contrast-hugo as your default theme in the config.yaml file. Just add the line

theme: "contrast-hugo"

at the top of the file.

Sidebar

Instead of the horizontal menu, a sidebar can be enabled with sidebar: true. See here for an example of the sidebar in action.

An example config.yaml section could look like this:

params:
  sidebar: true
  show_excerpts: true
  description: 'Made by <a href="">Blog Author</a>'

menu:
  main:
  - {name: "Home", url: "/", identifier: "home", weight: 1}
  - {name: "About", url: "/about/", identifier: "address-card", weight: 2}
  remote:
  - {name: "Mail", url: "mailto:", identifier: "envelope", weight: 3}
  - {name: "Github", url: "https://github.com/", identifier: "github", weight: 4}
  - {name: "Subscribe", url: "/index.xml", identifier: "rss", weight: 5}

Features

  • supports dark mode on macOS Mojave
  • optional sidebar
  • MathJax support
  • no external resources
  • responsive

Based on

License

public domain