From 101a301472833dfa90bac976b4f23bdbaad649a8 Mon Sep 17 00:00:00 2001 From: Nicolas Hoizey Date: Tue, 2 Jan 2024 16:27:29 +0100 Subject: [PATCH] Add virtual permalink URLs for photos without galleries --- eleventy.config.js | 3 +-- src/_layouts/galleries.njk | 2 +- src/_redirects | 4 ---- src/_redirects.njk | 13 +++++++++++++ 4 files changed, 15 insertions(+), 7 deletions(-) delete mode 100644 src/_redirects create mode 100644 src/_redirects.njk diff --git a/eleventy.config.js b/eleventy.config.js index f52c394a0..b5960aa8d 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -197,8 +197,7 @@ module.exports = function (eleventyConfig) { ) .addPassthroughCopy('src/ui') .addPassthroughCopy('src/robots.txt') - .addPassthroughCopy('src/favicon.ico') - .addPassthroughCopy('src/_redirects'); + .addPassthroughCopy('src/favicon.ico'); eleventyConfig.setUseGitIgnore(false); eleventyConfig.addWatchTarget('./ui/'); diff --git a/src/_layouts/galleries.njk b/src/_layouts/galleries.njk index 273eedbe3..1dc38f3c2 100644 --- a/src/_layouts/galleries.njk +++ b/src/_layouts/galleries.njk @@ -30,7 +30,7 @@ {% set sub_galleries = collections.photo_galleries | sub_galleries(gallery_root) %} {% if sub_galleries | length %} -

See all photos below gallery “{{ title }}”.

+

See all photos below gallery “{{ title }}” on a single page.

{{ css('components/gallery_content', build.env) }}