website/templates/shortcodes/code.md
2023-01-06 03:04:10 +00:00

4 lines
141 B
Markdown

{% set code = load_data(path="code/" ~ path) -%}
```{% if syntax %}{{ syntax }}{% endif %}{% if linenos %}, linenos{% endif %}
{{ code }}
```