From bb8cdb8a8823dd7324790097bb0bc1085d7fc505 Mon Sep 17 00:00:00 2001 From: Derek Lewis Date: Wed, 19 Aug 2026 20:50:17 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=97=EF=B8=8F=F0=9F=94=A7=EF=BC=9Agive?= =?UTF-8?q?=20the=20footer=20back=20the=20year=20it=20asks=20for?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The copyright line reads `{{ site.time | date: '%Y' }}`, which is Jekyll's. Nothing here provides a `site`, so it has been resolving to nothing and every page has printed the notice without a year. `buildTime` is what Jekyll meant by `site.time`: the moment the site was generated. It is the instant rather than a formatted year, so the template keeps the filter it already had and anything else wanting a build date can format it its own way. A push to live regenerates the site, so the year keeps up on its own. Signed-off-by: Derek Lewis Assisted-by: Claude-Code:claude-opus-5 --- _includes/footer.liquid | 2 +- eleventy.config.mjs | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/_includes/footer.liquid b/_includes/footer.liquid index 855d2db42..f325beeec 100644 --- a/_includes/footer.liquid +++ b/_includes/footer.liquid @@ -1,6 +1,6 @@ diff --git a/eleventy.config.mjs b/eleventy.config.mjs index 318af5b43..8c0057c55 100644 --- a/eleventy.config.mjs +++ b/eleventy.config.mjs @@ -99,6 +99,11 @@ export default async function (eleventyConfig) { 'Aggregate, curate, disseminate, and apply information derived from diverse sources.' ); eleventyConfig.addGlobalData('siteUrl', 'https://open.inf.is'); + // What Jekyll called `site.time`: the moment the site was generated. The + // footer still asks for it through a `date` filter, so this is the instant + // rather than a formatted year, and anything else wanting a build date can + // format it its own way. + eleventyConfig.addGlobalData('buildTime', () => new Date()); eleventyConfig.addGlobalData( 'env', process.env.ELEVENTY_ENV || 'development'