diff --git a/README.md b/README.md index 3a2744f..914dcb1 100644 --- a/README.md +++ b/README.md @@ -44,8 +44,13 @@ npx @11ty/import [type] [target] --cacheduration=20m # Change output format (default: markdown) npx @11ty/import [type] [target] --format=html -# Use absolute asset URLs (default: relative) +# Change asset reference URLs: relative (default), absolute, colocate +# slug.md and assets/asset.png with +npx @11ty/import [type] [target] --assetrefs=relative +# slug.md and assets/asset.png with npx @11ty/import [type] [target] --assetrefs=absolute +# slug/index.md and slug/asset.png with +npx @11ty/import [type] [target] --assetrefs=colocate # EXPERIMENTAL: Persist *new* non-draft content # - `github` persist type requires a `GITHUB_TOKEN` environment variable. diff --git a/cli.js b/cli.js index 7b4487b..a65c2ba 100755 --- a/cli.js +++ b/cli.js @@ -98,8 +98,10 @@ if(help) { # Change output format (default: markdown) npx @11ty/import [type] [target] --format=html - # Use absolute asset URLs (default: relative) + # Change asset reference URLs: relative (default), absolute, colocate + npx @11ty/import [type] [target] --assetrefs=relative npx @11ty/import [type] [target] --assetrefs=absolute + npx @11ty/import [type] [target] --assetrefs=colocate `); process.exit();