destack icon indicating copy to clipboard operation
destack copied to clipboard

A blog component(and editor)?

Open iojcde opened this issue 3 years ago • 3 comments

Since this project is used as sort of a static site generator, a blog component and editor would be a great feature in the long term. Still thinking how to implement this though.

One idea off the top of my head is creating a WYSIWYG md editor, and storing the posts in a directory(let's say ./blog) in markdown format and use nextjs's dynamic routing to show the proper blog post.

I have an abandoned social media project that has an md editor, so we might be able to reuse some of the code.

iojcde avatar May 28 '21 11:05 iojcde

another idea can be to build a blog layout component using the current editor. Keep md files as CMS like what is used in https://github.com/vercel/next.js/tree/canary/examples/blog-starter example. dynamically replace contents of the layout component from the md. This will be a great feature if it is added. one time we design the layout(s). The content developers only edit the md files.

arun-lmnas avatar Oct 29 '21 16:10 arun-lmnas

@arun-lmnas This is very close to the solution I have in mind.

Firstly we will need multi-page support https://github.com/LiveDuo/destack/issues/24#issuecomment-904067773 so a landing page and a few blog pages can co-exist in the same project. After that we will only need a markdown component in the editor and the developer can pass the markdown content (ie. the content of the .md file) from a component.

Quite busy atm to implement multi-page support but once we have it I will create an example for everyone to use!

LiveDuo avatar Oct 29 '21 17:10 LiveDuo

So I need this

vahidalvandi avatar Sep 15 '23 04:09 vahidalvandi