Comments (6)
@PsyGik it's probably too feature-packed for my liking haha but feel free to share the implementation and others can copy it if that's what they are looking for. If the code is not too long, you could consider adding it to the FAQ as well.
from tailwind-nextjs-starter-blog.
Thank you both for your responses(@PxlSyl @timlrx ). I am looking forward to using the floating TOC. I will refer to your implementation and make use of it.
from tailwind-nextjs-starter-blog.
It already exists, but it's an opt-in feature for each post so you can insert it where it fits best. Check out https://tailwind-nextjs-starter-blog.vercel.app/blog/new-features-in-v1#table-of-contents-component.
Just include the following component in your post: <TOCInline toc={props.toc} />
. You can see an example in the raw markdown file as well.
from tailwind-nextjs-starter-blog.
Hi, yes it already exists. I recently implemented the toc feature as an automatic sidebar when navigating to the posts (I may modify it to make it optional) on my i18n version, the reason I did this is for long blog posts and accessibility: I think it's better to have a floating button that can trigger the toc component, than the TOC at the top of the posts. If @timlrx is okay, I may do some PR for some of the features I implemented :)
from tailwind-nextjs-starter-blog.
@PsyGik it's probably too feature-packed for my liking haha but feel free to share the implementation and others can copy it if that's what they are looking for. If the code is not too long, you could consider adding it to the FAQ as well.
Np, I'll try to do that. I was talking about some features like series or share components (not all features but some common ones), but it's really as you want :)
from tailwind-nextjs-starter-blog.
I believe having a TOC in the sidebar, similar to this, would be a good option.
from tailwind-nextjs-starter-blog.
Related Issues (20)
- 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 2
- #842 Issue Is the 842 error still the same? HOT 4
- Collapsible Headers
- Email error with icon HOT 1
- It seems that a small number of people leave comments about the Google Search Console registration HOT 1
- Blog title contain comma will cause 404 HOT 1
- Umami cloud won't track navigated pages HOT 2
- image url resolution with base path HOT 2
- Supporting Relative Image Paths in Markdown HOT 1
- Support for Self Hosted Plausible HOT 2
- Static deploy can't load site.webmanifest HOT 2
- Warning logged in console when switching between light and dark Modes
- Deploy on cloudflare pages ,The dynamic routing doesn't work HOT 2
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.