question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enable/disable including creation date in the filename

See original GitHub issue

Hello, 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:open
  • Created 7 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
bert-bruggemancommented, May 13, 2017

@dereklieu

raw_title: true would be a good solution!

1reaction
pnochisakicommented, May 10, 2018

Me three!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found