Theme Configuration

These values are inside your toml config file.

Table of Contents

TOC global settings.

[params]
enable_toc = true # default: true

Table of Contents Position

TOC position global setting.

[params]
toc_position = "right" # "top" | "right", default: "top"

Collapsible Menu

Collapsible global settings.

[params]
enable_collapsible_toc = false # default: false
enable_collapsible_changelogs = false # default: false

Hide Navbar on Scroll

Hide navbar on scroll

[params]
hide_navbar_on_scroll = true # true | false, default: true

List Layout

[params]
  [params.list_layout]
  enable_group_by_year = true # default: true
  enable_show_date = true # default: true
  enable_pagination = false # default: false

External Library

MathJax

Use $$ or \(\) to create inline result, $$$$ or \\[\\] to create block result.

You may also want to setup the Goldmark passthrough extension.

Besides, double-escape the $ delimiter (\\$) if you encounter rendering issue outside the math context.

[params]
enable_math = true # default: false

Zooming.js

Zooming.js global setting.

[params]
enable_zooming_js = false # default: true

Syntax Highlighting

Using Chroma (server-side)

See Syntax Highlighting for more details.

[param]
  [param.syntax_highlight]
  lib = "builtin" # "builtin" | "prism.js" (default: "builtin")
    [param.syntax_highlight.builtin]
    enable_code_copy = true # default: true

Using Prism.js (client-side)

Disable markup highlight feature

[markup.highlight]
codeFences = false
lineNos = false

Enable Prism.js

[param]
  [params.syntax_highlight]
  lib = "prism.js" # "builtin" | "prism.js" (default: "builtin")
    [params.syntax_highlight.prism]
    enable_code_copy = true # default: true
    enable_line_no = true # default: true

SEO

Author

[params]
author = "kaiiiz" # default: no author `meta` tag

Open Graph

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

[params]
enable_open_graph = false # default: true

X (Twitter) Cards

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

[params]
enable_twitter_cards = false # default: true

Custom CSS

You can override the default styles by creating a new /static/user.css file.

Default Color Scheme

You can set the default color scheme for your website

[params]
color_scheme = "dark" # "light" or "dark"

default: “light”

Custom head

You can insert your custom code in <head> section using the /layouts/_partials/user_head.html file.

This is useful for inject third-partiy libraries (e.g. Google Ads) or your custom script.

Custom template at the end of page

To insert custom content at the end of each page, create the file at: /layouts/_partials/user_content_end.html.

This is useful for injecting custom components, such as a comment service.