Theme Configuration
These values are inside your toml config file.
Table of Contents
TOC global settings.
Table of Contents Position
TOC position global setting.
List Layout
Header Anchor Link
Render an anchor link next to the header element.
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.
Zooming.js
Zooming.js global setting.
Site Search
Add the following settings to hugo.toml:
Enable site search
Syntax Highlighting
Using Chroma (server-side)
See Syntax Highlighting for more details.
Using Prism.js (client-side)
Disable markup highlight feature
Enable Prism.js
SEO
Open Graph
A flag to render open graph internal template. See Open Graph for additional settings.
X (Twitter) Cards
A flag to render open X (twitter) cards template. See X (Twitter) Cards for additional settings.
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
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.