diff --git a/docs/docs/pages/config.mdx b/docs/docs/pages/config.mdx index 2e035b9..cf79b46 100644 --- a/docs/docs/pages/config.mdx +++ b/docs/docs/pages/config.mdx @@ -17,6 +17,7 @@ | `frontmatter.slugField` | `string` | No | - | Frontmatter field to use for slug (defaults to filepath) | | `ignore` | `string[]` | No | - | Glob patterns for files to ignore | | `removeIndexFromSlug` | `boolean` | No | `false` | Remove `/index` or `/_index` suffix from slugs | +| `stripDatePrefix` | `boolean` | No | `false` | Remove `YYYY-MM-DD-` date prefixes from slugs (Jekyll-style) | | `bluesky` | `object` | No | - | Bluesky posting configuration | | `bluesky.enabled` | `boolean` | No | `false` | Post to Bluesky when publishing documents | | `bluesky.maxAgeDays` | `number` | No | `30` | Only post documents published within this many days | @@ -96,6 +97,18 @@ By default, slugs are generated from the filepath (e.g., `posts/my-post.md` beco If the frontmatter field is not found, it falls back to the filepath. +### Jekyll-Style Date Prefixes + +Jekyll uses date prefixes in filenames (e.g., `2024-01-15-my-post.md`) for ordering posts. To strip these from generated slugs: + +```json +{ + "stripDatePrefix": true +} +``` + +This transforms `2024-01-15-my-post.md` into the slug `my-post`. + ### Ignoring Files Some frameworks use special files like `_index.md` (Zola) for section pages that aren't actual blog posts. Use the `ignore` field to skip these files during publishing: