From 3c23aa2fcb128b4fd54225924765873b7ee812cc Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Sat, 7 Aug 2021 19:48:27 +0200 Subject: [PATCH] Disable history for photoswipe --- blueprints.yaml | 2 +- package.json | 2 +- templates/pictures.html.twig | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/blueprints.yaml b/blueprints.yaml index a401d03..99dfa36 100644 --- a/blueprints.yaml +++ b/blueprints.yaml @@ -1,5 +1,5 @@ name: Reitanlage Oranienburg -version: 1.2.1 +version: 1.2.2 description: Design der Reitanlage Oranienburg icon: rebel author: diff --git a/package.json b/package.json index 1d40ef6..da47314 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "reitanlage-oranienburg", - "version": "1.2.1", + "version": "1.2.2", "description": "The Reitanlage Oranienburg Theme for Grav CMS.", "main": "index.js", "scripts": { diff --git a/templates/pictures.html.twig b/templates/pictures.html.twig index af0b8e4..867f664 100644 --- a/templates/pictures.html.twig +++ b/templates/pictures.html.twig @@ -47,7 +47,8 @@ function show_photoswipe(start_index) { let options = { - index: start_index + index: start_index, + history: false, }; let gallery = new PhotoSwipe( pswpElement, PhotoSwipeDefaultUI, items, options);