Comments (12)
Demo
Use toc: true
in post where you want toc.
from mediumish-theme-jekyll.
Yoo, It worked for me. Thanks 😀
from mediumish-theme-jekyll.
Would it make sense to set an yaml paragraph before TOC like this?
---
layout: post
title: "Education must also train one for quick, resolute and effective thinking."
author: john
categories: [ Jekyll, tutorial ]
image: assets/images/3.jpg
toc: true
beforetoc: "This is the paragraph before TOC where I can shortly describe what this post is about before actually displaying the TOC "
So the output would be:
Education must also train one for quick, resolute and effective thinking.
This is the paragraph before TOC where I can shortly describe what this post is about before actually displaying the TOC.
Table of Content
Actual, usual {{content}}
from mediumish-theme-jekyll.
I'm thinking if I set a dynamic first paragraph, can conflict. In example, what if the first paragraph of the user is actually a list. Or another image? Does this make sense? This way you have total control of what you want to emphasize before TOC and also doesn't create potential conflicts as the ones described.
from mediumish-theme-jekyll.
Well, I haven't implemented yet, I wanted to consult with you guys first :)
from mediumish-theme-jekyll.
Thanks for adding but if it is after a 1st paragraph or before the first header then that is best for us.
from mediumish-theme-jekyll.
I'll see what I can do.
from mediumish-theme-jekyll.
Okay so it would be manually.
from mediumish-theme-jekyll.
Okay I understand but beforetoc: is not worked for me
from mediumish-theme-jekyll.
Ohh that's why it not worked for me.😀
from mediumish-theme-jekyll.
Working on it right now!
from mediumish-theme-jekyll.
Ok, you can check now!
from mediumish-theme-jekyll.
Related Issues (20)
- Need advice - related post in a row
- Smooth scrolling conflict with Bootstrap tabs.
- Dark Mode HOT 1
- Build success with multiple errors HOT 1
- Lunr Search Problem HOT 7
- Help needed: customize header for list vs post
- Local display different from the one on gh-pages HOT 2
- not responsive embeded video youtube
- Search isn't working HOT 5
- TOC Address bar
- Google Analytics Support HOT 1
- duplicate title
- Categories page load to fast
- Docker Compose file has invlaid syntax
- post-read-more anchor tag has an error
- Sitemap error
- File not found errors when trying to add mediumish theme to github pages
- default.html builds with hardcoded favicon (logo.png) rather than the value of favicon in config.yml
- Security Issue (Cross-Site Scripting a.k.a XSS)
- Responsible disclosure policy 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 mediumish-theme-jekyll.