Syntax highlighting styles
Overview
Hugo performs syntax highlighting when rendering code samples. You may place code samples in Markdown using fenced code blocks or the built-in highlight shortcode.
```python
a, b = 3, 4
print(a, b)
```
{{< highlight python >}}
a, b = 3, 4
print(a, b)
{{< /highlight >}}
Both methods use the highlight
function to render code samples to HTML, and the highlight
function uses the Chroma syntax highlighter.
Chroma performs lexical analysis with a lexer that is unique to each code language, applying different CSS properties to language components such as functions, variables, keywords, literals, operators, and comments. A collection of CSS properties is, in this context, a highlighting style.
Configuration
Use these site configuration settings to control the style:
[markup.highlight]
style = 'monokai' # default is monokai
noClasses = true # default is true
style
- (
string
) Specify any of the predefined styles. This setting is irrelevant when using an external style sheet. The default ismonokai
. noClasses
- (
bool
) If true, Chroma adds HTMLstyle
attributes while rendering your code sample. If false, Chroma adds HTMLclass
attributes instead, requiring an external style sheet. The default istrue
.
Comparison
When noClasses
is true
, you can set the default highlighting style in your site configuration, and override it as needed with the style
highlighting option:
```python {style=emacs}
a, b = 3, 4
print(a, b)
```
{{< highlight python "style=perldoc" >}}
a, b = 3, 4
print(a, b)
{{< /highlight >}}
When noClasses
is false
, you must create an external style sheet. Hugo makes that easy for you with:
hugo gen chromastyles --style xcode > xcode.css
When using an external style sheet, you can override the highlighting style by setting noClasses
to true:
```python {noClasses=true style=emacs}
a, b = 3, 4
print(a, b)
```
{{< highlight python "noClasses=true,style=perldoc" >}}
a, b = 3, 4
print(a, b)
{{< /highlight >}}
When you set highlighting options for a fenced code block, separate the key/value pairs with either spaces or commas. When you set highlighting options for the highlight shortcode, you must separate the key/value pairs with commas.
With syntax highlighting, there are tradeoffs between inline style
attributes and external style sheets:
Inline | External | |
---|---|---|
Zero configuration | ✔️ | ❌ |
Adhoc styling | ✔️ | ✔️ |
Custom styles | ❌ | ✔️ |
Compatible with CSPs | ❌ | ✔️ |
Depending on configuration, a web server’s Content Security Policy (CSP) may block inline styles. This is the most important factor to consider when choosing between the two methods.
Predefined styles
Click through the examples below to see how Hugo renders various languages in each of the predefined highlighting styles.
abap
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
algol
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
algol_nu
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
arduino
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
autumn
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
average
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
base16-snazzy
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
borland
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
bw
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
catppuccin-frappe
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
catppuccin-latte
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
catppuccin-macchiato
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
catppuccin-mocha
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
colorful
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
doom-one
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
doom-one2
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
dracula
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
emacs
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
friendly
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
fruity
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
github
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
github-dark
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
gruvbox
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
gruvbox-light
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
hr_dark
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
hr_high_contrast
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
igor
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
lovelace
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
manni
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
modus-operandi
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
modus-vivendi
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
monokai
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
monokailight
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
murphy
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
native
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
nord
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
onedark
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
onesenterprise
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
paraiso-dark
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
paraiso-light
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
pastie
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
perldoc
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
pygments
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
rainbow_dash
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
rose-pine
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
rose-pine-dawn
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
rose-pine-moon
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
rrt
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
solarized-dark
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
solarized-dark256
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
solarized-light
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
swapoff
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
tango
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
tokyonight-day
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
tokyonight-moon
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
tokyonight-night
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
tokyonight-storm
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
trac
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
vim
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
vs
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
vulcan
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
witchhazel
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
xcode
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'
xcode-dark
body {
font-size: 16px; /* comment */
}
<a href="/about.html">Example</a> <!-- comment -->
{{ with $.Page.Params.content }}
{{ . | $.Page.RenderString }} {{/* comment */}}
{{ end }}
if ([1,"one",2,"two"].includes(value)){
console.log("Number is either 1 or 2."); // comment
}
{{< figure src="kitten.jpg" >}}
[example](https://example.org "An example") <!-- comment -->
[params]
bool = true # comment
string = 'foo'