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
.mdextension) Convert Markdown to HTML. - Wrap the content in a Liquid layout.
- Write the results to a parallel location in the
destination, but with an.htmlextension.
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
To add support for additional syntaxes you can add a _syntaxes/ directory to the project root and include in this directory a
Sublime Text syntax definition file each syntax.
The theme is taken from your _cobalt.yml. To see the list of supported themes:
$ cobalt debug highlight themes