Wrapped HighlightJS grammars in Discourse theme components.

{{ printf "discourse Hello %s -> %s" $World .}}
{{- /*  printf "ONE second line */ -}}
<div class="help"/>
{{ range $k, $v := hugo.Generator $ $.Method -}}
{{ site.Language.Label }}
{{ hugo.Sites.Pages }}

You don’t have to be that colorful. Have a look at the Discourse Example and Hugo examples to see how it could look like.

Download

Packages can be downloaded from: Releases.

Usage

Standard Styles should already be active in your instance. To take advantage of the special scopes (eg _template variables or context have a look CSS class reference. Add these to

Even without you will gain immediate effect of proper highlighted templates.

Discourse Requirements

The theme components are tested in virtual machines hosted on Windows 11 Professional

Support

Use the issue tracker for feedback, issues, ideas…


  1. deprecated, but much faster than the dev container in a VM ↩︎