Skip to main content

I'm using Leanpub's Upload writing mode, and I would like to have a Table of Contents appear on the book's landing page. How can I do that?

Keywords: upload, upload, table of contents

Written by Leanpub Support
Updated over 3 weeks ago
I'm using Leanpub's Upload writing mode, and I would like to have a Table of Contents appear on the book's landing page. How can I do that?

You can do this on the "About" page for the book, which is in the book's "Settings" section:

You can get to this page by going here:

https://leanpub.com/author/book/YOUR_BOOK/settings/about

...making sure to replace YOUR_BOOK with your book's unique web address.

You can also find the "About" page on your book's "Overview" page.

On that page, you will see a section where you can enter your Table of Contents as HTML:


Currently, you'll need to know HTML to use this feature.

Here is a simple example of what you can do:

<ul class="toc no-parts">
<li>Introduction</li>
<li>Chapter One</li>
<li>Chapter Two</li>
<li>Chapter Three</li>
<li>Chapter Four</li>
<li>Chapter Five</li>
</ul>

When you're done, scroll down and click the "Update Book" button:

Publishing a New Version of Your Book (or Publishing for the First Time)

The next time you click the button to publish a new version of your book (or if you're publishing it for the first time), you will see a Table of Contents section on your book's landing page.

Here's an example of a great Table of Contents from this book:

If your book is already published and you add or change your Table of Contents HTML, you will need to publish a new version for the addition or change to take effect on the book's landing page.

Sharing Your Own Example

There's a lot more you can do with your HTML Table of Contents than in our simple example above!

If you've set up a Table of Contents in HTML and you'd like to share your code with other Leanpub authors who don't really know any HTML, please post about it on the Leanpub Authors Forum!


If you have any feedback or questions about this article, please email the Leanpub team about it at hello@leanpub.com!

If you have any questions or thoughts on writing and self-publishing with Leanpub, please join our global community of authors in our Authors Forum here!

Are you interested in self-publishing, and creating your first Leanpub book? Here are some quick tutorials for our most popular writing modes: http://help.leanpub.com/en/articles/3088382-quick-walkthroughs-for-getting-started-on-a-leanpub-book

Are you looking for great deals on Leanpub ebooks, ebook bundles, and courses? Sign up for our Weekly and Monthly newsletter sales here!

Subscribe to our YouTube channel here: https://www.youtube.com/leanpub

Please subscribe to our YouTube channel here: https://www.youtube.com/leanpub

You can also follow Leanpub in lots of other places!

Did this answer your question?