Skip to content

Allow local structure for posts #22

@rpsu

Description

@rpsu

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:

  1. write post to file posts/2022/example.md with title: Example, commit to git
  2. publish it with dev p posts/2022/example.md
  3. pull all posts with dev i -p -s
  4. the newly created post (and all other posts) appears now also in the file posts/example.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions