├── .editorconfig ├── .gitattributes ├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md └── workflows │ └── test.yml ├── .gitignore ├── .npmrc ├── .prettierignore ├── .prettierrc.yml ├── .release-it.json ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── LICENSE ├── PULL_REQUEST_TEMPLATE.md ├── README.md ├── eslint.config.js ├── lib └── index.d.ts ├── package.json ├── src ├── date.js └── index.js └── test ├── fixtures ├── array-values │ ├── expected │ │ └── posts │ │ │ └── my-first-post │ │ │ └── index.html │ └── src │ │ └── post.html ├── backslashes │ └── src │ │ ├── blog │ │ └── posts │ │ │ └── post.html │ │ └── index.html ├── booleans │ ├── expected │ │ ├── blog │ │ │ └── how-to │ │ │ │ └── use-metalsmith-permalinks │ │ │ │ └── index.html │ │ ├── im-fixed │ │ │ └── index.html │ │ └── news │ │ │ └── general │ │ │ └── new-permalinks-release │ │ │ └── index.html │ └── src │ │ ├── fixed-permalink.html │ │ ├── new-permalinks-release.html │ │ └── use-metalsmith-permalinks.html ├── custom-date │ ├── expected │ │ ├── 2012 │ │ │ └── 01 │ │ │ │ └── index.html │ │ └── index.html │ └── src │ │ ├── index.html │ │ └── one.html ├── custom-indexfile │ ├── expected │ │ ├── alt.html │ │ ├── nested │ │ │ ├── alt.html │ │ │ └── other │ │ │ │ └── alt.html │ │ └── post │ │ │ └── alt.html │ └── src │ │ ├── alt.html │ │ ├── nested │ │ ├── alt.html │ │ └── other.html │ │ └── post.html ├── date-fn │ ├── expected │ │ ├── index.html │ │ └── sun │ │ │ └── jan │ │ │ └── 01 │ │ │ └── 2012 │ │ │ └── index.html │ └── src │ │ ├── index.html │ │ └── one.html ├── date │ ├── expected │ │ ├── 2012 │ │ │ └── 01 │ │ │ │ └── 01 │ │ │ │ └── index.html │ │ └── index.html │ └── src │ │ ├── index.html │ │ └── one.html ├── dot-notated-pattern-parts │ ├── expected │ │ └── hello │ │ │ └── world │ │ │ └── index.html │ └── src │ │ └── index.html ├── duplicate-urls │ ├── index.html │ └── src │ │ ├── one.html │ │ └── two.html ├── empty-array │ └── src │ │ └── emptyarray.html ├── invalid-filename-chars │ ├── expected │ │ └── post │ │ │ └── index.html │ └── src │ │ └── post.html ├── linkset-custom-date │ ├── expected │ │ ├── badfoo │ │ │ └── index.html │ │ ├── bar │ │ │ ├── 2016 │ │ │ │ └── 04 │ │ │ │ │ └── bar │ │ │ │ │ └── index.html │ │ │ └── 2024 │ │ │ │ └── 11 │ │ │ │ └── bar-two │ │ │ │ └── index.html │ │ └── foo │ │ │ └── 2016 │ │ │ └── 04 │ │ │ └── 21 │ │ │ └── foo │ │ │ └── index.html │ └── src │ │ ├── badfoo.html │ │ ├── bar.html │ │ ├── bar2.html │ │ └── foo.html ├── linkset-overwrite-default │ ├── expected │ │ ├── overwritten │ │ │ └── one-post │ │ │ │ └── index.html │ │ └── test │ │ │ └── index.html │ └── src │ │ ├── index.html │ │ └── one.html ├── linkset-rule-precedence │ ├── expected │ │ └── first │ │ │ ├── one │ │ │ └── index.html │ │ │ └── two │ │ │ └── index.html │ └── src │ │ ├── first.html │ │ └── second.html ├── match-pattern-complex │ ├── expected │ │ ├── api │ │ │ ├── index.html │ │ │ ├── plugins │ │ │ │ └── index.json │ │ │ └── status │ │ │ │ └── index.json │ │ └── services │ │ │ └── index.html │ └── src │ │ ├── index.md │ │ ├── plugins.json │ │ ├── services.md │ │ └── status.json ├── missing-pattern-parts │ └── src │ │ └── index.html ├── no-pattern │ ├── expected │ │ ├── index.html │ │ ├── post │ │ │ └── index.html │ │ └── two │ │ │ └── levels │ │ │ └── deep │ │ │ └── index.html │ └── src │ │ ├── index.html │ │ ├── post.html │ │ └── two │ │ └── levels │ │ └── deep.html ├── no-relative │ ├── expected │ │ ├── post │ │ │ └── index.html │ │ └── test.txt │ └── src │ │ ├── post.html │ │ └── test.txt ├── optional-path-parts │ ├── expected │ │ ├── 2022 │ │ │ └── 01 │ │ │ │ └── 15 │ │ │ │ └── documentation │ │ │ │ └── index.html │ │ └── first-post │ │ │ └── index.html │ └── src │ │ ├── docs.html │ │ └── post.html ├── pattern │ ├── expected │ │ ├── index.html │ │ └── one-post │ │ │ └── index.html │ └── src │ │ ├── index.html │ │ └── one.html ├── permalink-false │ ├── expected │ │ └── test.html │ └── src │ │ └── test.html ├── permalink-frontmatter-dynamic │ ├── expected │ │ └── services │ │ │ └── software-development │ │ │ └── index.html │ └── src │ │ └── test.html ├── permalink-invalid-chars │ ├── expected │ │ ├── html-head-essential-tags-meta-title │ │ │ └── index.html │ │ └── special-chars-in-html-f-ward-slash │ │ │ └── index.html │ └── src │ │ ├── special.html │ │ └── test.html ├── permalink-override │ ├── expected │ │ ├── blog │ │ │ └── you-don-t-need-an-init-system-for-node.js-in-docker │ │ │ │ └── index.html │ │ └── foo │ │ │ └── index.html │ └── src │ │ ├── dots-outside-pattern.html │ │ └── test.html ├── shorthand │ ├── expected │ │ ├── index.html │ │ └── one-post │ │ │ └── index.html │ └── src │ │ ├── index.html │ │ └── one.html ├── simple-linksets │ ├── expected │ │ ├── badfoo │ │ │ └── index.html │ │ ├── bar │ │ │ └── bar │ │ │ │ └── index.html │ │ └── foo │ │ │ └── foo │ │ │ └── index.html │ └── src │ │ ├── badfoo.html │ │ ├── bar.html │ │ └── foo.html ├── slug-custom-function-linksets │ ├── expected │ │ └── blog │ │ │ └── post15 │ │ │ └── index.html │ └── src │ │ └── test.html ├── slug-custom-function │ ├── expected │ │ ├── ni-hao-world │ │ │ └── index.html │ │ └── zaba-tava-vol-1.2.3- │ │ │ └── index.html │ └── src │ │ ├── hello.html │ │ └── test.html ├── slug-custom │ ├── expected │ │ └── zaba-tava-vol-123-en-cahier-d-orientations │ │ │ └── index.html │ └── src │ │ └── test.html ├── slug-options-path │ ├── expected │ │ └── new │ │ │ └── path │ │ │ └── index.html │ └── src │ │ └── foo.html ├── slug-options │ ├── expected │ │ └── We-love-Unicode │ │ │ └── index.html │ └── src │ │ └── foo.html ├── slug │ ├── expected │ │ └── zaba-tava-vol-1.2.3 │ │ │ └── index.html │ └── src │ │ └── test.html ├── unique-function │ ├── expected │ │ ├── one-post-a.html │ │ └── one-post.html │ └── src │ │ ├── one.html │ │ └── two.html └── unique-urls │ ├── expected │ ├── one-post-1 │ │ └── index.html │ └── one-post │ │ └── index.html │ └── src │ ├── one.html │ └── two.html └── index.js /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/.github/ISSUE_TEMPLATE/feature_request.md -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/.npmrc -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/.prettierrc.yml -------------------------------------------------------------------------------- /.release-it.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/.release-it.json -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/LICENSE -------------------------------------------------------------------------------- /PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/README.md -------------------------------------------------------------------------------- /eslint.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/eslint.config.js -------------------------------------------------------------------------------- /lib/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/lib/index.d.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/package.json -------------------------------------------------------------------------------- /src/date.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/src/date.js -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/src/index.js -------------------------------------------------------------------------------- /test/fixtures/array-values/expected/posts/my-first-post/index.html: -------------------------------------------------------------------------------- 1 | Hello world -------------------------------------------------------------------------------- /test/fixtures/array-values/src/post.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/test/fixtures/array-values/src/post.html -------------------------------------------------------------------------------- /test/fixtures/backslashes/src/blog/posts/post.html: -------------------------------------------------------------------------------- 1 | post -------------------------------------------------------------------------------- /test/fixtures/backslashes/src/index.html: -------------------------------------------------------------------------------- 1 | index -------------------------------------------------------------------------------- /test/fixtures/booleans/expected/blog/how-to/use-metalsmith-permalinks/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/booleans/expected/im-fixed/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/booleans/expected/news/general/new-permalinks-release/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/booleans/src/fixed-permalink.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/test/fixtures/booleans/src/fixed-permalink.html -------------------------------------------------------------------------------- /test/fixtures/booleans/src/new-permalinks-release.html: -------------------------------------------------------------------------------- 1 | --- 2 | blog: false 3 | news: true 4 | category: general 5 | --- -------------------------------------------------------------------------------- /test/fixtures/booleans/src/use-metalsmith-permalinks.html: -------------------------------------------------------------------------------- 1 | --- 2 | blog: true 3 | news: false 4 | category: how-to 5 | --- -------------------------------------------------------------------------------- /test/fixtures/custom-date/expected/2012/01/index.html: -------------------------------------------------------------------------------- 1 | 2 | one -------------------------------------------------------------------------------- /test/fixtures/custom-date/expected/index.html: -------------------------------------------------------------------------------- 1 | other -------------------------------------------------------------------------------- /test/fixtures/custom-date/src/index.html: -------------------------------------------------------------------------------- 1 | other -------------------------------------------------------------------------------- /test/fixtures/custom-date/src/one.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/test/fixtures/custom-date/src/one.html -------------------------------------------------------------------------------- /test/fixtures/custom-indexfile/expected/alt.html: -------------------------------------------------------------------------------- 1 | Alternative index -------------------------------------------------------------------------------- /test/fixtures/custom-indexfile/expected/nested/alt.html: -------------------------------------------------------------------------------- 1 | Nested index -------------------------------------------------------------------------------- /test/fixtures/custom-indexfile/expected/nested/other/alt.html: -------------------------------------------------------------------------------- 1 | Other -------------------------------------------------------------------------------- /test/fixtures/custom-indexfile/expected/post/alt.html: -------------------------------------------------------------------------------- 1 | 2 | Post -------------------------------------------------------------------------------- /test/fixtures/custom-indexfile/src/alt.html: -------------------------------------------------------------------------------- 1 | Alternative index -------------------------------------------------------------------------------- /test/fixtures/custom-indexfile/src/nested/alt.html: -------------------------------------------------------------------------------- 1 | Nested index -------------------------------------------------------------------------------- /test/fixtures/custom-indexfile/src/nested/other.html: -------------------------------------------------------------------------------- 1 | Other -------------------------------------------------------------------------------- /test/fixtures/custom-indexfile/src/post.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/test/fixtures/custom-indexfile/src/post.html -------------------------------------------------------------------------------- /test/fixtures/date-fn/expected/index.html: -------------------------------------------------------------------------------- 1 | other -------------------------------------------------------------------------------- /test/fixtures/date-fn/expected/sun/jan/01/2012/index.html: -------------------------------------------------------------------------------- 1 | 2 | one -------------------------------------------------------------------------------- /test/fixtures/date-fn/src/index.html: -------------------------------------------------------------------------------- 1 | other -------------------------------------------------------------------------------- /test/fixtures/date-fn/src/one.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/test/fixtures/date-fn/src/one.html -------------------------------------------------------------------------------- /test/fixtures/date/expected/2012/01/01/index.html: -------------------------------------------------------------------------------- 1 | 2 | one -------------------------------------------------------------------------------- /test/fixtures/date/expected/index.html: -------------------------------------------------------------------------------- 1 | other -------------------------------------------------------------------------------- /test/fixtures/date/src/index.html: -------------------------------------------------------------------------------- 1 | other -------------------------------------------------------------------------------- /test/fixtures/date/src/one.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/test/fixtures/date/src/one.html -------------------------------------------------------------------------------- /test/fixtures/dot-notated-pattern-parts/expected/hello/world/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/dot-notated-pattern-parts/src/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/test/fixtures/dot-notated-pattern-parts/src/index.html -------------------------------------------------------------------------------- /test/fixtures/duplicate-urls/index.html: -------------------------------------------------------------------------------- 1 | other -------------------------------------------------------------------------------- /test/fixtures/duplicate-urls/src/one.html: -------------------------------------------------------------------------------- 1 | --- 2 | title: One Post 3 | --- 4 | 5 | one 6 | -------------------------------------------------------------------------------- /test/fixtures/duplicate-urls/src/two.html: -------------------------------------------------------------------------------- 1 | --- 2 | title: One Post 3 | --- 4 | 5 | two 6 | -------------------------------------------------------------------------------- /test/fixtures/empty-array/src/emptyarray.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/test/fixtures/empty-array/src/emptyarray.html -------------------------------------------------------------------------------- /test/fixtures/invalid-filename-chars/expected/post/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/invalid-filename-chars/src/post.html: -------------------------------------------------------------------------------- 1 | --- 2 | title: ":::|||" 3 | --- -------------------------------------------------------------------------------- /test/fixtures/linkset-custom-date/expected/badfoo/index.html: -------------------------------------------------------------------------------- 1 | I should be at /badfoo 2 | -------------------------------------------------------------------------------- /test/fixtures/linkset-custom-date/expected/bar/2016/04/bar/index.html: -------------------------------------------------------------------------------- 1 | i should be at bar/2016/04/bar 2 | -------------------------------------------------------------------------------- /test/fixtures/linkset-custom-date/expected/bar/2024/11/bar-two/index.html: -------------------------------------------------------------------------------- 1 | i should be at bar/2024/11/bar 2 | -------------------------------------------------------------------------------- /test/fixtures/linkset-custom-date/expected/foo/2016/04/21/foo/index.html: -------------------------------------------------------------------------------- 1 | i should be at foo/2016/04/21/foo 2 | -------------------------------------------------------------------------------- /test/fixtures/linkset-custom-date/src/badfoo.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/test/fixtures/linkset-custom-date/src/badfoo.html -------------------------------------------------------------------------------- /test/fixtures/linkset-custom-date/src/bar.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/test/fixtures/linkset-custom-date/src/bar.html -------------------------------------------------------------------------------- /test/fixtures/linkset-custom-date/src/bar2.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/test/fixtures/linkset-custom-date/src/bar2.html -------------------------------------------------------------------------------- /test/fixtures/linkset-custom-date/src/foo.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/test/fixtures/linkset-custom-date/src/foo.html -------------------------------------------------------------------------------- /test/fixtures/linkset-overwrite-default/expected/overwritten/one-post/index.html: -------------------------------------------------------------------------------- 1 | one -------------------------------------------------------------------------------- /test/fixtures/linkset-overwrite-default/expected/test/index.html: -------------------------------------------------------------------------------- 1 | other -------------------------------------------------------------------------------- /test/fixtures/linkset-overwrite-default/src/index.html: -------------------------------------------------------------------------------- 1 | --- 2 | title: test 3 | --- 4 | other -------------------------------------------------------------------------------- /test/fixtures/linkset-overwrite-default/src/one.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/test/fixtures/linkset-overwrite-default/src/one.html -------------------------------------------------------------------------------- /test/fixtures/linkset-rule-precedence/expected/first/one/index.html: -------------------------------------------------------------------------------- 1 | one -------------------------------------------------------------------------------- /test/fixtures/linkset-rule-precedence/expected/first/two/index.html: -------------------------------------------------------------------------------- 1 | two -------------------------------------------------------------------------------- /test/fixtures/linkset-rule-precedence/src/first.html: -------------------------------------------------------------------------------- 1 | --- 2 | title: one 3 | bothFilesHaveThisProperty: true 4 | --- 5 | one -------------------------------------------------------------------------------- /test/fixtures/linkset-rule-precedence/src/second.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/test/fixtures/linkset-rule-precedence/src/second.html -------------------------------------------------------------------------------- /test/fixtures/match-pattern-complex/expected/api/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/match-pattern-complex/expected/api/plugins/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/test/fixtures/match-pattern-complex/expected/api/plugins/index.json -------------------------------------------------------------------------------- /test/fixtures/match-pattern-complex/expected/api/status/index.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/test/fixtures/match-pattern-complex/expected/api/status/index.json -------------------------------------------------------------------------------- /test/fixtures/match-pattern-complex/expected/services/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/match-pattern-complex/src/index.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/match-pattern-complex/src/plugins.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/test/fixtures/match-pattern-complex/src/plugins.json -------------------------------------------------------------------------------- /test/fixtures/match-pattern-complex/src/services.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Services 3 | --- -------------------------------------------------------------------------------- /test/fixtures/match-pattern-complex/src/status.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/test/fixtures/match-pattern-complex/src/status.json -------------------------------------------------------------------------------- /test/fixtures/missing-pattern-parts/src/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/no-pattern/expected/index.html: -------------------------------------------------------------------------------- 1 | index -------------------------------------------------------------------------------- /test/fixtures/no-pattern/expected/post/index.html: -------------------------------------------------------------------------------- 1 | post -------------------------------------------------------------------------------- /test/fixtures/no-pattern/expected/two/levels/deep/index.html: -------------------------------------------------------------------------------- 1 | nested -------------------------------------------------------------------------------- /test/fixtures/no-pattern/src/index.html: -------------------------------------------------------------------------------- 1 | index -------------------------------------------------------------------------------- /test/fixtures/no-pattern/src/post.html: -------------------------------------------------------------------------------- 1 | post -------------------------------------------------------------------------------- /test/fixtures/no-pattern/src/two/levels/deep.html: -------------------------------------------------------------------------------- 1 | nested -------------------------------------------------------------------------------- /test/fixtures/no-relative/expected/post/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/no-relative/expected/test.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/no-relative/src/post.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/no-relative/src/test.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/optional-path-parts/expected/2022/01/15/documentation/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/optional-path-parts/expected/first-post/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/optional-path-parts/src/docs.html: -------------------------------------------------------------------------------- 1 | --- 2 | title: documentation 3 | date: 2022-01-15 4 | --- 5 | -------------------------------------------------------------------------------- /test/fixtures/optional-path-parts/src/post.html: -------------------------------------------------------------------------------- 1 | --- 2 | title: First post 3 | --- -------------------------------------------------------------------------------- /test/fixtures/pattern/expected/index.html: -------------------------------------------------------------------------------- 1 | other -------------------------------------------------------------------------------- /test/fixtures/pattern/expected/one-post/index.html: -------------------------------------------------------------------------------- 1 | 2 | one -------------------------------------------------------------------------------- /test/fixtures/pattern/src/index.html: -------------------------------------------------------------------------------- 1 | other -------------------------------------------------------------------------------- /test/fixtures/pattern/src/one.html: -------------------------------------------------------------------------------- 1 | --- 2 | title: One Post 3 | --- 4 | 5 | one -------------------------------------------------------------------------------- /test/fixtures/permalink-false/expected/test.html: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /test/fixtures/permalink-false/src/test.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/test/fixtures/permalink-false/src/test.html -------------------------------------------------------------------------------- /test/fixtures/permalink-frontmatter-dynamic/expected/services/software-development/index.html: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /test/fixtures/permalink-frontmatter-dynamic/src/test.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/test/fixtures/permalink-frontmatter-dynamic/src/test.html -------------------------------------------------------------------------------- /test/fixtures/permalink-invalid-chars/expected/html-head-essential-tags-meta-title/index.html: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /test/fixtures/permalink-invalid-chars/expected/special-chars-in-html-f-ward-slash/index.html: -------------------------------------------------------------------------------- 1 | special -------------------------------------------------------------------------------- /test/fixtures/permalink-invalid-chars/src/special.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/test/fixtures/permalink-invalid-chars/src/special.html -------------------------------------------------------------------------------- /test/fixtures/permalink-invalid-chars/src/test.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/test/fixtures/permalink-invalid-chars/src/test.html -------------------------------------------------------------------------------- /test/fixtures/permalink-override/expected/blog/you-don-t-need-an-init-system-for-node.js-in-docker/index.html: -------------------------------------------------------------------------------- 1 | test -------------------------------------------------------------------------------- /test/fixtures/permalink-override/expected/foo/index.html: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /test/fixtures/permalink-override/src/dots-outside-pattern.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/test/fixtures/permalink-override/src/dots-outside-pattern.html -------------------------------------------------------------------------------- /test/fixtures/permalink-override/src/test.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/test/fixtures/permalink-override/src/test.html -------------------------------------------------------------------------------- /test/fixtures/shorthand/expected/index.html: -------------------------------------------------------------------------------- 1 | other -------------------------------------------------------------------------------- /test/fixtures/shorthand/expected/one-post/index.html: -------------------------------------------------------------------------------- 1 | 2 | one -------------------------------------------------------------------------------- /test/fixtures/shorthand/src/index.html: -------------------------------------------------------------------------------- 1 | other -------------------------------------------------------------------------------- /test/fixtures/shorthand/src/one.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/test/fixtures/shorthand/src/one.html -------------------------------------------------------------------------------- /test/fixtures/simple-linksets/expected/badfoo/index.html: -------------------------------------------------------------------------------- 1 | I should be at /badfoo 2 | -------------------------------------------------------------------------------- /test/fixtures/simple-linksets/expected/bar/bar/index.html: -------------------------------------------------------------------------------- 1 | i should be at bar/bar 2 | -------------------------------------------------------------------------------- /test/fixtures/simple-linksets/expected/foo/foo/index.html: -------------------------------------------------------------------------------- 1 | i should be at foo/foo 2 | -------------------------------------------------------------------------------- /test/fixtures/simple-linksets/src/badfoo.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/test/fixtures/simple-linksets/src/badfoo.html -------------------------------------------------------------------------------- /test/fixtures/simple-linksets/src/bar.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/test/fixtures/simple-linksets/src/bar.html -------------------------------------------------------------------------------- /test/fixtures/simple-linksets/src/foo.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/test/fixtures/simple-linksets/src/foo.html -------------------------------------------------------------------------------- /test/fixtures/slug-custom-function-linksets/expected/blog/post15/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/slug-custom-function-linksets/src/test.html: -------------------------------------------------------------------------------- 1 | --- 2 | title: post1 3 | collection: blog 4 | --- 5 | -------------------------------------------------------------------------------- /test/fixtures/slug-custom-function/expected/ni-hao-world/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/slug-custom-function/expected/zaba-tava-vol-1.2.3-/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/slug-custom-function/src/hello.html: -------------------------------------------------------------------------------- 1 | --- 2 | title: 你好, world! 3 | --- -------------------------------------------------------------------------------- /test/fixtures/slug-custom-function/src/test.html: -------------------------------------------------------------------------------- 1 | --- 2 | title: žaba ťava vôl 1.2.3 = - 3 | --- -------------------------------------------------------------------------------- /test/fixtures/slug-custom/expected/zaba-tava-vol-123-en-cahier-d-orientations/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/slug-custom/src/test.html: -------------------------------------------------------------------------------- 1 | --- 2 | title: žabA ťava vôl 1.2.3 = -(en) Cahier d'orientations? 3 | --- 4 | -------------------------------------------------------------------------------- /test/fixtures/slug-options-path/expected/new/path/index.html: -------------------------------------------------------------------------------- 1 | 2 | foo 3 | -------------------------------------------------------------------------------- /test/fixtures/slug-options-path/src/foo.html: -------------------------------------------------------------------------------- 1 | --- 2 | title: We ♥ Unicode. 3 | permalink: new/path 4 | --- 5 | 6 | foo 7 | -------------------------------------------------------------------------------- /test/fixtures/slug-options/expected/We-love-Unicode/index.html: -------------------------------------------------------------------------------- 1 | 2 | foo -------------------------------------------------------------------------------- /test/fixtures/slug-options/src/foo.html: -------------------------------------------------------------------------------- 1 | --- 2 | title: We ♥ Unicode. 3 | --- 4 | 5 | foo -------------------------------------------------------------------------------- /test/fixtures/slug/expected/zaba-tava-vol-1.2.3/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/fixtures/slug/src/test.html: -------------------------------------------------------------------------------- 1 | --- 2 | title: žaba ťava vôl 1.2.3 = - 3 | --- 4 | -------------------------------------------------------------------------------- /test/fixtures/unique-function/expected/one-post-a.html: -------------------------------------------------------------------------------- 1 | 2 | two 3 | -------------------------------------------------------------------------------- /test/fixtures/unique-function/expected/one-post.html: -------------------------------------------------------------------------------- 1 | 2 | one 3 | -------------------------------------------------------------------------------- /test/fixtures/unique-function/src/one.html: -------------------------------------------------------------------------------- 1 | --- 2 | title: One Post 3 | --- 4 | 5 | one 6 | -------------------------------------------------------------------------------- /test/fixtures/unique-function/src/two.html: -------------------------------------------------------------------------------- 1 | --- 2 | title: One Post 3 | --- 4 | 5 | two 6 | -------------------------------------------------------------------------------- /test/fixtures/unique-urls/expected/one-post-1/index.html: -------------------------------------------------------------------------------- 1 | 2 | two 3 | -------------------------------------------------------------------------------- /test/fixtures/unique-urls/expected/one-post/index.html: -------------------------------------------------------------------------------- 1 | 2 | one 3 | -------------------------------------------------------------------------------- /test/fixtures/unique-urls/src/one.html: -------------------------------------------------------------------------------- 1 | --- 2 | title: One Post 3 | --- 4 | 5 | one 6 | -------------------------------------------------------------------------------- /test/fixtures/unique-urls/src/two.html: -------------------------------------------------------------------------------- 1 | --- 2 | title: One Post 3 | --- 4 | 5 | two 6 | -------------------------------------------------------------------------------- /test/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/metalsmith/permalinks/HEAD/test/index.js --------------------------------------------------------------------------------