-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Will there be a support for markdown? #75
Comments
Hi @sharu725, thanks for the question! Are you looking for something similar to Jekyll or Hugo that has frontmatter in YAML and then a markdown body? I'm definitely open to discussion, but here are my current thoughts on the content editing experience. Whenever I used other SSG's I relied heavily on the structured frontmatter and seldom used the unstructured markdown. The key/value nature of frontmatter allowed me to do more interesting things, like pulling content into specific sections using variables and styling components according to an established style guide. Large markdown files felt reminiscent of WYSIWYG text editors, which can lead to inconsistent styles if you're not careful and make it hard for the developer to display specific information in dynamic ways. With Plenti you could still have a large content section for things like blog posts, you would just define your own key for it since we don't require any specific content structure or reserve any keywords. That said, we're in this weird middle ground at the moment where the frontend CMS is not ready so you have to edit JSON directly. I fully recognize that manually putting content into JSON is a terrible experience. If the goal was to edit these files directly, I think we'd have to implement some sort of yml/md solution to make this experience better. Ultimately these JSON content files will really just be something you track in Git, and you will edit the content directly on your website in the browser. Since JSON is a pretty standard format with generally good performance, I figured it was the right choice given the long-term goals I just outlined. I would love to hear your thoughts / usecases / disagreements though! |
@jimafisk I wasn't expecting this elaborate answer. Thanks you.
Yes, but I think I can wait till the frontend CMS is ready. So I thought I can just use the markdown I already have. Another way could be converting all the posts into JSON. That could be a quick fix for now. Awesome job by the way. Good luck. |
Thanks for taking a look at the project and I appreciate hearing your perspective! If you do end up bringing things over from Jekyll please keep me posted. I hope pulling your content into JSON isn't too much of a pain. I wrote my own config readers early on in the project, but I've been meaning to move things over to viper. This would potentially make it easy to read YAML and we have an open ticket for it, but there are so many competing priorities that I don't want to overpromise a timeline for this. I actually hadn't tested the build speeds with a large number of posts, so you've piqued my interest. I just did a rough test by copying the "about" page 200 times ( The about page in the default starter is pretty simple, so with real content this would probably be slower. I was actually surprised it was this fast already, because I expect to make some significant performance gains when I implement concurrent build steps. |
Awesome. Thanks for the test. I'm now a little confident to migrate. I might have some templates that can be ported to Plenti as well. I will keep you posted. Also, why tapeworm? |
🤣 We talk a little about our mascot choice here: https://youtu.be/Gr3KTOnsWEM?t=28. Basically planarians are really simple and flexible - two of our guiding principals. |
Hey @jimafisk , |
Thanks @kbsali! It's definitely helpful to know the features folks want to see. I agree with your points, I'll have to take another look at this but it probably won't happen until at least themes are complete. Thanks for the feedback! |
@claxxmoldii and I were talking on twitter about md support as well, so I figured it was worth adding to the conversation here. My current thoughts are:
|
My perspective: Markdown support would enable me to migrate my old posts to this otherwise very neat SSG tool. |
Folks on this thread might want to check out https://github.com/roobyz/articulatePost by @roobyz to be able to write in markdown and convert it to json so it can be used in a plenti project. |
Hi All, Notes:
It will sit there waiting for any change to a file. So just hit save to your markdown file and it will generate the JSON output. You can run plenti serve -L from another terminal to get your changes refreshed pretty quickly. Cheers! |
From the docs
Does that mean there will not be one?
The text was updated successfully, but these errors were encountered: