Skip to content

Enhancement: define filename prefixes on folder level #458

@estruyf

Description

@estruyf

Discussed in #452

Originally posted by rshmhrj November 6, 2022
Hi all!
First -- thanks for all the work on this awesome extension. I have found it extremely useful in setting up and maintaining the site. The more I use it, and the more familiar I am getting with the settings, the better it gets!

Context:

I have two sections in my Hugo site: posts and references. From the front matter dashboard, clicking create content pops up a question asking which folder to add the content to, what to title it, and then it auto creates the file based on a template.

It also slugifies the title and prepends the date for the filename.

For posts, I like the auto dating behavior. For references, I want to disable it.

Question

Is there a config setting to selectively enable/disable the auto-dating based on which folder is selected?

Obviously, the "workaround" is to create it and then manually delete the date portion of the filename (which takes 2 seconds), but just wondering if such a feature / configuration exists. I searched through the existing issues and discussions , but didn't find anything specifically related to the folder choice.

Thanks again!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions