Theme Showcase: Code and Terminal Output
Inline code such as hugo server --disableFastRender should sit naturally inside a sentence without dominating the surrounding text.
Shell
hugo server --themesDir ../../ --theme termfolio --bind 127.0.0.1 --port 1313
Long command lines should scroll horizontally inside the code block instead of breaking the layout.
JavaScript
const posts = [
{ title: "Typography and Flow", tags: ["typography", "writing"] },
{ title: "Code and Terminal Output", tags: ["code", "syntax-highlighting"] },
];
const titles = posts
.filter((post) => post.tags.includes("code"))
.map((post) => post.title);
console.log(titles.join(", "));
Configuration
params:
style:
maxWidth: 820px
accentColor: "#386f64"
toc:
enabled: true
The theme uses Chroma classes when Hugo highlighting is configured with noClasses: false.