I published a couple of old posts to Dev.to and the process was very smooth. I have markdown file structure with year to allow some structure within the posts lists locally.
posts/
2015/*.md
2017/*.md
However when I pull the posts back from dev.to
dev i -p -s --verbose
the tool does not find the old posts in the subfolders but copies them directly under posts/
Am I missing some configuration option, some flag maybe?
To me this looks like the filename is converted from the front matter title on pull. While it works just fine when publishing pulling does not consider all local files (my existing post files in subfolders) while pushing out works.
Concrete example:
- write post to file
posts/2022/example.md with title: Example, commit to git
- publish it with
dev p posts/2022/example.md
- pull all posts with
dev i -p -s
- the newly created post (and all other posts) appears now also in the file
posts/example.md
I published a couple of old posts to Dev.to and the process was very smooth. I have markdown file structure with year to allow some structure within the posts lists locally.
However when I pull the posts back from dev.to
dev i -p -s --verbosethe tool does not find the old posts in the subfolders but copies them directly under
posts/Am I missing some configuration option, some flag maybe?
To me this looks like the filename is converted from the front matter
titleon pull. While it works just fine when publishing pulling does not consider all local files (my existing post files in subfolders) while pushing out works.Concrete example:
posts/2022/example.mdwithtitle: Example, commit to gitdev p posts/2022/example.mddev i -p -sposts/example.md