Coder Social home page Coder Social logo

Comments (5)

timlrx avatar timlrx commented on June 11, 2024 1

Implementation wise is relatively straightforward - add a new priority field to contentlayer and sort by priority and date.

Design wise is where it is tricky as I feel that there should be a change or notice to indicate that a particular post is pinned. Not sure if the current layout is the best for this. If you implement it on your end end, happy to add it to the list of blogs as a reference, but I don't think I will add it to the general repository.

from tailwind-nextjs-starter-blog.

PxlSyl avatar PxlSyl commented on June 11, 2024 1

Hi!

Another solution could be to add a featured section, with a "featured" field (instead of priority) set to true when needed.

If you want to implement this without making too many changes within the application, I think the best would be to create a "Featured" layout, and then import it into the desired page inside the app folder.

I think it is even possible not to show this new layout if there is no featured post, so the integration within the current application would be rather smooth.

Should be quite straightforward as well!

from tailwind-nextjs-starter-blog.

CuB3y0nd avatar CuB3y0nd commented on June 11, 2024 1

Hi!

Another solution could be to add a featured section, with a "featured" field (instead of priority) set to true when needed.

If you want to implement this without making too many changes within the application, I think the best would be to create a "Featured" layout, and then import it into the desired page inside the app folder.

I think it is even possible not to show this new layout if there is no featured post, so the integration within the current application would be rather smooth.

Should be quite straightforward as well!

Sounds like a good idea, I'll try it!

from tailwind-nextjs-starter-blog.

PxlSyl avatar PxlSyl commented on June 11, 2024 1

Hi!
Another solution could be to add a featured section, with a "featured" field (instead of priority) set to true when needed.
If you want to implement this without making too many changes within the application, I think the best would be to create a "Featured" layout, and then import it into the desired page inside the app folder.
I think it is even possible not to show this new layout if there is no featured post, so the integration within the current application would be rather smooth.
Should be quite straightforward as well!

Sounds like a good idea, I'll try it!

Hi again, if you want to have a look, I just implemented this on my i18n template!

from tailwind-nextjs-starter-blog.

CuB3y0nd avatar CuB3y0nd commented on June 11, 2024 1

Hi!
Another solution could be to add a featured section, with a "featured" field (instead of priority) set to true when needed.
If you want to implement this without making too many changes within the application, I think the best would be to create a "Featured" layout, and then import it into the desired page inside the app folder.
I think it is even possible not to show this new layout if there is no featured post, so the integration within the current application would be rather smooth.
Should be quite straightforward as well!

Sounds like a good idea, I'll try it!

Hi again, if you want to have a look, I just implemented this on my i18n template!

Woah, what a neat implementation! I will refer it, you really saved me a lot of trouble, thank you!

from tailwind-nextjs-starter-blog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.