Skip to content

Commit

Permalink
Fix gallery
Browse files Browse the repository at this point in the history
  • Loading branch information
vercas committed Oct 28, 2023
1 parent b72739b commit 8c20393
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions _layouts/project.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,9 @@ <h1 id="project-title">{{ page.title }}</h1>

{% if page.gallery %}
<script type="text/javascript">
$(document).ready(function() {
$("#project-gallery").lightGallery({
plugins: [lgFullscreen, lgThumbnail],
thumbnail:true
});
lightGallery(document.getElementById('project-gallery'), {
plugins: [lgFullscreen, lgThumbnail],
thumbnail:true
});
</script>
{% endif %}
Expand Down

0 comments on commit 8c20393

Please sign in to comment.