Releases: tannerdolby/eleventy-plugin-metagen
1.8.3
What's Changed?
- add support for: og_image, og_image_alt, og_image_width, og_image_height, og_image_type
Full Changelog: v1.8.2...v1.8.3
1.8.2
What's Changed?
- fix: properly return the meta-generator output when defining the metagen shortcode in .eleventy.js (fixed since v1.8.1)
- chore: use latest version of
meta-generator
Notable Changes from v1.8.0
- bump Eleventy to latest stable version (v2.0.1) (resolves #25)
- package install size reduced from 48.7MB -> 25.0MB and publish size from 14.0kB -> 7.72kB
- updated custom tag input and usage
- improved functionality for js, css, inline-js, inline-css
- updated inline-css to inline_css and inline-js to inline_js
- updated attr_name to twitter_attr_name
Full Changelog: v1.8.0...v1.8.2
1.8.0
What's Changed?
Moved tag creation logic from .eleventy.js
to a separate package meta-generator
. Which will power populating metadata here in eleventy-plugin-metagen, now the logic can also be used in a React app or any JavaScript environment. See docs for more details.
- bump Eleventy to latest stable version (v2.0.1) (resolves #25)
- package install size reduced from 48.7MB -> 25.0MB and publish size from 14.0kB -> 7.72kB
- updated
custom
tag input and usage - improved functionality for js, css, inline-js, inline-css
- updated inline-css to inline_css and inline-js to inline_js
- updated attr_name to twitter_attr_name
Notable
I mistakenly returned an array of tag strings instead of properly returning string output for this v1.8.0 version 🙃. Please use v1.8.1+ or refer to the updated code if you wish to use v1.8.0 which works, you will just need to add the following to properly return the meta-generator
output:
eleventyConfig.addShortcode('metagen', (data) => {
const head = metagen(data);
if (Array.isArray(head)) {
return head.join('\n');
} else if (typeof head === 'string') {
return head;
} else {
return '';
}
});
Full Changelog: v1.7.11...v1.8.0
1.7.11
What's Changed?
- Improved formatting in README.md to remove unnecessary section.
- Reduced overall package size by 0.6 kB from 14.9 kB to 14.3 kB.
Full Changelog: v1.7.10...v1.7.11
1.7.10
1.7.9
What's Changed?
- Added support for
image
which is synonymous withimg
. - Added helper function
twitterHandle
to avoid@undefined
in tag output if a twitter handle isn't specified in metagen calls. If a handle is not provided, thetwitter:site
andtwitter:creator
won't be generated.
Full Changelog: v1.7.8...v1.7.9
1.7.8
What's Changed?
- Added support for
description
shortcode argument which is equivalent todesc
.
Full Changelog: v1.7.7...v1.7.8
1.7.7
What's New?
- Adds
minified
parameter which will return the minified output. - Realized position of {% metagen ... %} in the current line will affect the output of the shortcode, to avoid having to "dance" with keeping the other tags indented the same as the original metagen call, I let the user be in control and place
{% metagen %}
calls where they want the first tag to appear and the rest will be indented by 1 tab. All tags but the first tag will be indented by 1 tab and separated by a newline. - The above is more preferred than adding a newline to have all tags indented by 1 tab regardless of where
metagen
is used on the calling line.
Full Changelog: v1.7.4...v1.7.7
1.7.4
What's Changed
- Fixed indentation for metagen output to ensure all tags are indented by 1 tab
Full Changelog: v1.7.3...v1.7.4