Compare commits

...

1 Commits

Author SHA1 Message Date
Dustin 009d58f4be wip: gallery 2024-08-18 09:21:37 -05:00
2 changed files with 16 additions and 0 deletions

View File

@ -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 %}

View File

@ -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>