How to omit date from md file YYYY-MM-DD.my-link and use date in file #80
Unanswered
sts-ryan-holton
asked this question in
Q&A
Replies: 1 comment
-
You can configure the package to use In <?php
return [
'default_collection' => 'posts",
'collections' => [
'posts' => [
'disk' => 'posts',
'sheet_class' => App\Models\Post::class,
- 'path_parser' => Spatie\Sheets\PathParsers\SlugWithDateParser::class,
+ 'path_parser' => Spatie\Sheets\PathParsers\SlugParser::class,
'content_parser' => Spatie\Sheets\ContentParsers\MarkdownParser::class,
'extension' => 'txt',
],
],
]; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I've got markdown files that I'm using and I'm storing a
createdAt
variable in the YYYY-MM-DD format within the three back ticks. I'd like to omit date from the md file name. How do i achieve this?Beta Was this translation helpful? Give feedback.
All reactions