jekyll -> zola
This commit is contained in:
4
templates/shortcodes/code.md
Normal file
4
templates/shortcodes/code.md
Normal file
@ -0,0 +1,4 @@
|
||||
{% set code = load_data(path="code/" ~ path) -%}
|
||||
```{% if syntax %}{{ syntax }}{% endif %}{% if linenos %}, linenos{% endif %}
|
||||
{{ code }}
|
||||
```
|
5
templates/shortcodes/image.html
Normal file
5
templates/shortcodes/image.html
Normal file
@ -0,0 +1,5 @@
|
||||
{% set image = resize_image(path=path, width=1024, height=1024, op="fit", format="webp") %}
|
||||
{% set url = get_url(path=path) %}
|
||||
<a href="{{ url }}">
|
||||
<img src="{{ image.url }}"{% if alt %} alt="{{ alt }}"{% endif %} />
|
||||
</a>
|
Reference in New Issue
Block a user