File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ const cacheBuster = require('@mightyplow/eleventy-plugin-cache-buster');
44const htmlmin = require ( 'html-minifier' ) ;
55const { minify } = require ( 'terser' ) ;
66const siteSettings = require ( './src/globals/site.json' ) ;
7+ const {
8+ version : eleventyVersion ,
9+ } = require ( './node_modules/@11ty/eleventy/package.json' ) ;
710
811module . exports = function ( eleventyConfig ) {
912 eleventyConfig . addPassthroughCopy ( './src/css/tailwind.include.css' ) ;
@@ -13,6 +16,10 @@ module.exports = function (eleventyConfig) {
1316 return new Date ( ) . getFullYear ( ) . toString ( ) ;
1417 } ) ;
1518
19+ eleventyConfig . addShortcode ( 'eleventyVersion' , function ( ) {
20+ return `Eleventy ${ eleventyVersion } ` ;
21+ } ) ;
22+
1623 eleventyConfig . addPlugin ( inclusiveLangPlugin ) ;
1724
1825 if ( process . env . ELEVENTY_ENV === 'production' ) {
Original file line number Diff line number Diff line change 44 <meta charset =" utf-8" />
55 <meta http-equiv =" X-UA-Compatible" content =" IE=edge" />
66 <meta name =" viewport" content =" width=device-width, initial-scale=1.0" />
7+ <meta name =" generator" content =" {% eleventyVersion %}" >
78 <meta
89 name =" description"
910 content =" {{ description if description else site.description }}"
You can’t perform that action at this time.
0 commit comments