Why the titles of markdown display in the content?


#1

Like this:

When I load the Jekyll project using Github pages?


#2

I think you are referring to the table of contents?

Do you have {:toc} in there somewhere? I think that is what tells it to make the table of contents.


#3

I have {:toc} like this:

---
layout: post
title: "xxxx"
data: 2017-05-09 19:27:00 +0800
categories: xxx
tag: Jekyll
---
* content
{:toc}

xxxxx

#4

not sure I understand - do you want the toc? that is what is putting the list at the top I think. If you don’t want that remove the toc part.


#5

I understand what you mean. Thanks


#6

What?! Is `{:toc} a thing? Since when? :open_mouth:


#7

It’s been a thing for a long time. It’s part of Kramdown… which Jekyll uses to convert your Markdown into HTML.

https://kramdown.gettalong.org/converter/html.html#toc


#8

Thanks, @mmistakes! I’ve been using a gist that I’m pretty sure it was you who shared in the old forum. :stuck_out_tongue: