Skip to content

TagExtension support for tags with special characters in them (spaces, '/', etc.) #160

Description

@halostatue

The tag extension doesn't seem like it would properly support a tag like in memoriam as the directory would contain a space. Similarly, I think it would fail if I were a huge fan of AC/DC and wanted to tag posts with AC/DC.

I can see a couple of ways that this could be handled:

  • the tag extension can convert a tag into a tag slug (downcase, replace non-word character chains with single -) and set the slug during processing;
  • the permalink for the tag joins the slug instead of the tag itself.

Alternatively, the list of tags could be

tags:
  - name: in memoriam
    slug: in-memoriam

If a string is given (as it is now), then it's either used "as-is" or converted to a slug.

I prefer the automatic slug conversion as it makes it harder to accidentally give the same tag name multiple slugs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions