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

A blog component(and editor)? #8

Open
iojcde opened this issue May 28, 2021 · 3 comments
Open

A blog component(and editor)? #8

iojcde opened this issue May 28, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@iojcde
Copy link
Contributor

iojcde commented May 28, 2021

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.

@LiveDuo LiveDuo added the enhancement New feature or request label May 28, 2021
@arun-lmnas
Copy link

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.

@LiveDuo
Copy link
Owner

LiveDuo commented Oct 29, 2021

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

Firstly we will need multi-page support #24 (comment) 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!

@vahidalvandi
Copy link

So I need this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants