From 2bacda9de52a6b27fca724e95bfd2f24b985f033 Mon Sep 17 00:00:00 2001 From: Nick Pegg Date: Tue, 6 May 2025 21:16:29 -0700 Subject: [PATCH] fix image pages --- resources/skel/_templates/photo.html | 10 ++--- src/generate.rs | 56 ++++++++++++++-------------- src/generate/album_dir.rs | 9 +++-- 3 files changed, 37 insertions(+), 38 deletions(-) diff --git a/resources/skel/_templates/photo.html b/resources/skel/_templates/photo.html index 3ede869..f586b3f 100644 --- a/resources/skel/_templates/photo.html +++ b/resources/skel/_templates/photo.html @@ -5,11 +5,11 @@ document.onkeydown = function(event) { if (event.key == "ArrowLeft") { {% if prev_image %} - location.href = "{{prev_image.html_path}}"; + location.href = "{{prev_image.html_filename}}"; {% endif %} } else if (event.key == "ArrowRight") { {% if next_image %} - location.href = "{{next_image.html_path}}"; + location.href = "{{next_image.html_filename}}"; {% endif %} } } @@ -17,13 +17,13 @@ {% block content %}
- +