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.
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 '';
}
});
</tr></table>
... (truncated)
Commits
38a28e6 chore: bump patch version and meta-generator
1754d3b chore: bump patch version and meta-generator
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/jegtnes/jegtnes-static/network/alerts).
Removes axios. It's no longer used after updating ancestor dependency eleventy-plugin-metagen. These dependencies need to be updated together.
Removes
axios
Updates
eleventy-plugin-metagen
from 1.7.11 to 1.8.3Release notes
Sourced from eleventy-plugin-metagen's releases.
... (truncated)
Commits
38a28e6
chore: bump patch version and meta-generator1754d3b
chore: bump patch version and meta-generatorfce0bbc
chore: bump patch version, now v1.8.1ccb14f8
feat: format metagen output accordingly40ee69b
chore: ignore CONTRIBUTING.md in 11ty output4611d9c
chore: bump meta-generator and cleanupbb0dce0
feat: install 'meta-generator' for tag creation22936aa
chore: cleanup8c18870
feat: move tag creation logic to 'meta-generator'a2f2eef
Update CONTRIBUTING.mdDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show