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 truestyle- (
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 HTMLstyleattributes while rendering your code sample. If false, Chroma adds HTMLclassattributes 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.cssWhen 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.
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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'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'