Comments (5)
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.
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.
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.
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.
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)
- How to enable discussions for a blogHow to enable discussions for a blog HOT 1
- Buttondown Api i can't generate help HOT 3
- Tags not updated HOT 2
- New Icons added request HOT 3
- Help with banner to visible in the homepage of the blog and inside HOT 2
- Im using convertkit but the newsletter not working!! HOT 1
- Add z-index to ThemeSwitch menu HOT 2
- How can I use Disqus in the app, help wanted HOT 2
- Question about tap to top on status bar
- Inconsistent Meta Descriptions in SEO Optimization
- img source base path for GH pages breaks build HOT 1
- tag-data.json file not created HOT 1
- Table of content if not working on new blogs
- [documentation] HOT 1
- comment provider disqus HOT 2
- disqus Refused to frame 'https://disqus.com/' because it violates the following Content Security Policy directive: "frame-src *.disqus.com".
- Table of content link is wrong HOT 1
- Notes on deploying vercel in a Windows environment HOT 1
- issue with node v22.2.0 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tailwind-nextjs-starter-blog.