-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add default gallery template * Bump up the version
- Loading branch information
1 parent
b6b2f35
commit e98ead1
Showing
4 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
# v1.1.0 | ||
## 21-06-2021 | ||
|
||
1. [](#new) | ||
* Add default template | ||
|
||
# v1.0.1 | ||
## 14-03-2021 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{% extends 'default.html.twig' %} | ||
|
||
{% block content %} | ||
{{ parent() }} | ||
|
||
{% set item_id = 'photoswipe-gallery-' ~ random() %} | ||
|
||
{{ photoswipe(item_id, 'a') }} | ||
|
||
<div id="{{ item_id }}"> | ||
{% for item in page.media.images %} | ||
<a href="{{ item.url|e }}" class="gallery-item" data-size="{{ item.width ~ 'x' ~ item.height }}"> | ||
<img src="{{ item.cropResize(500, 250).url|e }}" alt=""/> | ||
</a> | ||
{% endfor %} | ||
</div> | ||
{% endblock %} |