jekyll / jekyll-admin

A Jekyll plugin that provides users with a traditional CMS-style graphical interface to author content and administer Jekyll sites.
https://jekyll.github.io/jekyll-admin/
MIT License
2.82k stars 357 forks source link

Support for default meta fields #581

Closed strzibny closed 4 years ago

strzibny commented 4 years ago

I have a blog where I follow the standard 2020-02-16-blog-post.md post paths, but the permalink is actually without the date (and included as permalink in meta):

e.g. 2020-02-16-blog-post.md shows at /blog-post/.

Is there some way to teach jekyll-admin that the preview is found at the correct (permalink) address? And possibly let jekyll-admin to also autogenerate this correct permalink?

strzibny commented 4 years ago

Okay, it seems that the previews are actually working. So the question that remains is how to automate the permalink field or in generall other metadata like layout to post so I don't have to add it manually with each post?

ashmaroli commented 4 years ago

Please refer Jekyll documentation on this feature: https://jekyllrb.com/docs/configuration/front-matter-defaults/

strzibny commented 4 years ago

@ashmaroli Thank you. I could solve it with default Jekyll settings, sorry for the noise!