Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _includes/footer.liquid
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<footer class='site-footer py-3 mt-auto'>
<p class='text-center text-body-tertiary my-0'>
&copy; {{ site.time | date: '%Y' }} The OpenINF Authors &amp; Friends
&copy; {{ buildTime | date: '%Y' }} The OpenINF Authors &amp; Friends
</p>
</footer>

Expand Down
5 changes: 5 additions & 0 deletions eleventy.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Loading