The styles are borrowed from Hugo’s Discourse forum to have identifiable visible changes.
Rendered with Python1
{{ warnf `%s` templates.Current.Name }}
{{ with (templates.Defer (dict "key" "global")) }}
{{ $theme := $.Site.Params.colorScheme | default "slate" }}
{{ with resources.Get (printf "css/%s.css" $theme) }}
{{/* with resources.Get "css/test.css" */}}
{{ $opts := dict "minify" (not hugo.IsDevelopment) "inlineImports" true }}
{{ with . | css.TailwindCSS $opts }}
{{ if hugo.IsDevelopment }}
<link rel="stylesheet" href="{{ .RelPermalink }}">
{{ else }}
{{ with . | fingerprint }}
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}">
{{ end }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}Rendered with Hugo-HTML
Rendered with Hugo-HTML plus additional classes
{{ warnf `%s` templates.Current.Name }}
{{ with (templates.Defer (dict "key" "global")) }}
{{ $theme := $.Site.Params.colorScheme | default "slate" }}
{{ with resources.Get (printf "css/%s.css" $theme) }}
{{/* with resources.Get "css/test.css" */}}
{{ $opts := dict "minify" (not hugo.IsDevelopment) "inlineImports" true }}
{{ with . | css.TailwindCSS $opts }}
{{ if hugo.IsDevelopment }}
<link rel="stylesheet" href="{{ .RelPermalink }}">
{{ else }}
{{ with . | fingerprint }}
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}">
{{ end }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}Other frequently detected languages for HuGo template code are Ruby or Bash ↩︎

