wip: gallery
parent
62c4477478
commit
009d58f4be
|
@ -35,6 +35,12 @@ Projects
|
|||
Blog
|
||||
</a>
|
||||
</div>
|
||||
<div class="link">
|
||||
<a href="{{ get_url(path='/gallery') }}">
|
||||
{{ load_data(path='static/image.svg') | safe }}
|
||||
Photos
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{% endblock %}
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
<div>
|
||||
{% for asset in page.assets -%}
|
||||
{%- if asset is matching("[.](jpg|png)$") -%}
|
||||
{% set image = resize_image(path=asset, width=240, height=180) %}
|
||||
<a href="{{ get_url(path=asset) }}" target="_blank">
|
||||
<img src="{{ image.url }}" />
|
||||
</a>
|
||||
{%- endif %}
|
||||
{%- endfor %}
|
||||
</div>
|
Loading…
Reference in New Issue