Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Templating folder for new posts #476

Closed
casprwang opened this issue Jul 5, 2017 · 2 comments
Closed

Templating folder for new posts #476

casprwang opened this issue Jul 5, 2017 · 2 comments

Comments

@casprwang
Copy link

casprwang commented Jul 5, 2017

It would be awesome If user create new post with a dynamic folder each time.
for example, a templated folder with a name from the title.

  - name: "dynamic blog"
    slug: "{{year}}-{{month}}-{{day}}-{{slug}}" 
    folder: "/blog/{{slug}}"
    media_folder: "/blog/{{slug}}"

which gives /blog/YYYY-MM-DD-example-post/index.md.

benefits

Users could upload images or other media to the post folder, not another unified media folder. So the images for each post would be sitting inside the related folder, makes it easier to manage.

tree view

blog
├── YYYY-MM-DD-example
│   ├── index.md
│   └── image-for-example.png
│   └── image-2-for-example.png
├── YYYY-MM-DD-example-2
│   ├── index.md
│   └── image-for-example-2.png

@casprwang casprwang changed the title Dynamic folder for new posts Templating folder for new posts Jul 5, 2017
@erquhart
Copy link
Contributor

erquhart commented Sep 8, 2017

Related to #513.

@erquhart
Copy link
Contributor

erquhart commented Dec 8, 2017

Closing in favor #513.

@erquhart erquhart closed this as completed Dec 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants