Skip to content

Commit b4b44b4

Browse files
committed
fix plugin order
1 parent c085e5e commit b4b44b4

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Go to the `v1` branch to see the changelog of Lume 1.
1616

1717
### Fixed
1818
- Ensure console output for validate_html and seo plugins is shown after the build process.
19+
- Ensure `metas` plugin is registered after `og_images`.
1920
- `run` command.
2021
- Added missing tests for SEO plugin.
2122
- Renamed `Config` interface of `seo` and `validate_html` plugins to `Options`.

core/utils/lume_config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ export const pluginNames = [
1717
"relations",
1818
"lume_cms",
1919
"mdx",
20-
"metas",
2120
"multilanguage",
2221
"nav",
2322
"nunjucks",
@@ -62,6 +61,7 @@ export const pluginNames = [
6261
"transform_images",
6362

6463
// Assets in HTML
64+
"metas",
6565
"inline",
6666
"sri",
6767
"validate_html",

lint.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ const orderMatter = new Set([
1919
"inline",
2020
"base_path",
2121
"feed",
22+
"metas",
23+
"og_images",
2224
]);
2325

2426
const validOrder = pluginNames

tests/plugins.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ Deno.test("Plugins list in init", () => {
2222
"relations",
2323
"lume_cms",
2424
"mdx",
25-
"metas",
2625
"multilanguage",
2726
"nav",
2827
"nunjucks",
@@ -59,6 +58,7 @@ Deno.test("Plugins list in init", () => {
5958
"svgo",
6059
"picture",
6160
"transform_images",
61+
"metas",
6262
"inline",
6363
"sri",
6464
"validate_html",

0 commit comments

Comments
 (0)