Skip to content

Redefine slug function #10875

Open
Open
@avidseeker

Description

@avidseeker

I have file names:

0101-firstpost.md
0117-second.md
0217-third.md
...

Adding a rule to config.yaml:

permalinks:
  posts: "/:filename"

will give them 0101-firstpost permalinks. Changing that rule to /:slug gives a hyphenated "title" from the front matter. I suggest enabling redefinition of :slug placeholder or maybe creating a function that :filename can be piped into.

Related discussion: 43740

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions