Pages
A page is any file found in the source
directory that:
- Has an extension in
template_extensions
- isn't hidden (leading
.
or_
) - isn't excluded through
ignore
Pages go through several transformations:
- Evaluate Liquid template expressions.
- (If
.md
extension) Convert Markdown to HTML. - Wrap the content in a Liquid layout.
- Write the results to a parallel location in the
destination
, but with an.html
extension.
You can customize this behavior with the frontmatter.
Syntax Highlighting
You can highlight your code using the {% highlight LANG %}
/ {% endhighlight %}
Liquid tags.
Alternatively, if you are using Markdown, you can annotate your code blocks.
To see what syntaxes are supported:
$ cobalt debug highlight syntaxes
The theme is taken from your _cobalt.yml
. To see the list of supported themes:
$ cobalt debug highlight themes