Skip to content
Snippets Groups Projects

hugo: get example scripts from static/py/auto

Merged Wuttke, Joachim requested to merge corr300 into r20.0
2 files
+ 2
1
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -7,7 +7,7 @@ Argument 1 = File path below /src/
{{- $lang := .Get "language" | default ("python") }}
{{- $opt := .Get "opt" | default ("linenos=table") }}
{{ $path := (printf "/src/%s" $src) }}
{{ $path := (printf "/py/auto/%s" $src) }}
{{ $file := $path | readFile }}
{{ highlight (print $file) $lang $opt}}
Loading