Skip to content

Support for image files with dots in their name #12

Description

@kennyki

This probably has low priority, but would be nice to have.

Right now if I have image files with name in the pattern of "00.cat.jpg" and "00.dog.jpg", I'd get only one result "00.thumbnail_default_w888h500q50.jpg".

Images would be located in the ./src/files directory most of the time (if not all) - which means they should not go through Docpad's rendering processes, should we change this line to:

imageFileName = f.attributes.filename
thumbfilename = imageFileName.substring(0, imageFileName.lastIndexOf("." + ext)) + suffix + "." + ext

I felt like I'm making assumptions but that's why I'm asking of opinions here before doing anything.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions