Changelogs
v0.8.0
Add enableCollapsibleTOC and enableCollapsibleChangelogs properties

Theme Configuration

These values are inside your toml config file.

HTML is available.

1
2
[params]
navbarTitle = "Monochrome"

default: site’s title

HTML is available.

1
2
[params]
footer = "Copyright © 2021 by kaiiiz"

default: footer section will not be rendered.

Table of Contents

1
2
[params]
enableTOC = false

default: true

Collapsible Menu

To enable the collapsible TOC globally, add:

1
2
[params]
enableCollapsibleTOC = true

default: false

To enable the collapsible changelogs globally, add:

1
2
[params]
enableCollapsibleChangelogs = true

default: false

Monochrome uses built-in menu system supported by hugo itself. (Checkout document for more deatil.) By default, the menu called navbar is used to decide which item need to be rendered on the navbar.

So you can simply add the following code to your page front-matter, and the menu info will be handled by hugo out of the box. (simple method mentioned in document)

1
2
3
---
menu: navbar
---

Also, weighted value is supported out of the box, you can explicit assign the weight of the navbar entry, hugo will first sort the menu using weight, if there has two entries shared the same weight, the default order will be applied.

1
2
3
4
5
---
menu:
  navbar:
    weight: -99
---

If you try to put entry that aren’t attached to a piece of content, or you want to organize your navbar into a single file, checkout Add Non-content Entries to a Menu or Configuration file of demo site and set these values in your toml settings file.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
[[menu.navbar]]
identifier = "about"
name = "about"
title = "about"
url = "/about/"
weight = 100

[[menu.navbar]]
identifier = "series"
name = "series"
url = "/series/"
weight = -100

[[menu.navbar]]
identifier = "categories"
name = "categories"
url = "/categories/"
weight = 80
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
menu:
  navbar:
  - identifier: about
    name: about
    title: about
    url: /about/
    weight: 100
  - identifier: series
    name: series
    url: /series/
    weight: -100
  - identifier: categories
    name: categories
    url: /categories/
    weight: 80

External Library

MathJax

Use $ to create inline result, $$ to create block result.

1
2
[params]
enableMathJax = true

default: false

Zooming.js

1
2
[params]
enableZoomingJS = false

default: true

1
2
[params]
enableSiteSearch = true

default: false

Syntax Highlighting

Using Chroma (server-side)

See Syntax Highlighting for more details.

1
2
[params]
enableCodeCopy = false

default: true

Using Prism.js (client-side)

Disable markup highlight feature

1
2
3
[markup.highlight]
codeFences = false
lineNos = false

Enable Prism.js

1
2
[params]
usePrismJS = true

default: false

Enable line numbers feature

1
2
[params]
enablePrismJSLineNo = true

default: true

SEO

Author

1
2
[params]
author = "kaiiiz"

default: not generate author meta tag

Open Graph

A flag to render open graph internal template. See Open Graph for additional settings.

1
2
[params]
enableOpenGraph = false

default: true

Twitter Cards

A flag to render open twitter cards template. See Twitter Cards for additional settings.

1
2
[params]
enableTwitterCards = false

default: true