init repo
This commit is contained in:
3
templates/shortcodes/alert.html
Normal file
3
templates/shortcodes/alert.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<alert class="alert">
|
||||
<img src="{{ get_url(path=url) }}" alt="{{ description }}"/>
|
||||
</alert>
|
||||
11
templates/shortcodes/gallery.html
Normal file
11
templates/shortcodes/gallery.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<div class="no-prose">
|
||||
{% for asset in page.assets -%}
|
||||
{%- if asset is matching(name) -%}
|
||||
{% set image = resize_image(path=asset, height=320, op="fit_height") %}
|
||||
{% set full_image = resize_image(path=asset, width=1024, height=1024, op="fit") %}
|
||||
<a href="{{ full_image.url }}" target="_blank">
|
||||
<img src="{{ image.url }}" />
|
||||
</a>
|
||||
{%- endif %}
|
||||
{%- endfor %}
|
||||
</div>
|
||||
16
templates/shortcodes/image.html
Normal file
16
templates/shortcodes/image.html
Normal file
@@ -0,0 +1,16 @@
|
||||
{% for asset in page.assets -%}
|
||||
{%- if asset is matching(name) -%}
|
||||
{% set image = resize_image(path=asset, height=size, op="fit_height") %}
|
||||
<figure>
|
||||
{% set full_image = resize_image(path=asset, width=1024, height=1024, op="fit") %}
|
||||
<a href="{{ full_image.url }}" target="_blank">
|
||||
<img src="{{ image.url }}">
|
||||
</a>
|
||||
{% if caption %}
|
||||
<figcaption>
|
||||
{{ caption }}
|
||||
</figcaption>
|
||||
{% endif %}
|
||||
</figure>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
Reference in New Issue
Block a user