Enable/disable including creation date in the filename
See original GitHub issueHello, I’ve been swimming through the issues and I can’t find an answer to this. The closer is this issue.
Given:
- It’s a non-Jekyll site:
- There is a
title
field defined in the metadata
Then: Is there an easy way to tell prose to avoid including the date in the filename for files in a certain directory, yet keep including the date in the filename for files in another directory?
For example:
posts/
--> Include date (YYYY-MM-DD-slug.md
)foobar/
--> Don’t include date(slug.md
)
This is How I defined the title field in the metadata:
posts:
- name: "title"
field:
label: "Title"
element: "text"
foobar:
- name: "title"
field:
label: "Title"
element: "text"
I want to keep the title field declaration in the metadata, because these files will be created by users, and I don’t want them editing the filename manually, they could mess up things if they do. So it is important to keep the title field in the metadata.
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
How to Change the Last Modified Date, Creation Date, and ...
To do this, type Set-ItemProperty -Path file -Name IsReadOnly -Value True, replacing file with your file name. For a full list of possible ......
Read more >Setting created date by file name - ExifTool by Phil Harvey
Example1: fails I believe due to the IMG prefix on the filename. It isn't the image prefix, it's the numbers that are in...
Read more >awk - Set file modification date from date stored as filename
but actual file creation date is different. I need to set it back to date from a filename. I know how to change...
Read more >ssis - how to generate excel attach the date to filename ...
how can i generate a excel file with date in filename (e.g. filename_yyyymmdd.xlsx) ... Check ssis-tutorial-part-17-create-excel-file.html.
Read more >Appending creation date on filename - bash - Stack Overflow
In order to get the file creation time, I use stat with option -c %w instead of date -r that gives the modification...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dereklieu
raw_title: true
would be a good solution!Me three!