website/templates/shortcodes/code.md

4 lines
141 B
Markdown
Raw Normal View History

2023-01-06 03:02:54 +00:00
{% set code = load_data(path="code/" ~ path) -%}
```{% if syntax %}{{ syntax }}{% endif %}{% if linenos %}, linenos{% endif %}
{{ code }}
```