How to Create a Summary [Webflow Blog Tutorial]

Tutorial
March 20, 2023
3 min
Preview of a Table of Contents (ToC) with the Finsweet Webflow Attributes logo
Key points

Optimize Your Blog's SEO with a Table of Contents!

Adding a table of contents to your blog posts significantly enhances the user experience for your readers. (And as you've learned from reading this article, UX matters in SEO).

The table of contents allows your readers to:

  • Get an overview of your content
  • Quickly access a specific section through "anchor" links

How to integrate an automatic table of contents using the Finsweet attribute?

By following the documentation, it's easy to add a table of contents to your Webflow blog. With the Finsweet solution, the table of contents will be generated automatically based on your headings (h2, h3, h4, etc.).

⚠️ The H1 heading tag will never be included in your table of contents (ToC).

Discover the steps to follow!

1. Go to the Fs attributes Table of Contents page

2. Copy and paste the JavaScript code into the <!-- fs-richtext-ignore --><head> tag of your page

<!-- [Attributes by Finsweet] Table of Contents -->
<script defer src="https://cdn.jsdelivr.net/npm/@finsweet/attributes-toc@1/toc.js"></script>

3. Add a "contents" attribute to the <!-- fs-richtext-ignore --><Rich Text> element of your blog post

Adding a contents attribute to a Rich Text Block on Webflow

4. Add link attributes to the "template" links in your table of contents (you will need to create and design your table of contents)

Adding a Link attribute to a link in a table of contents on Webflow
Note: you can add the attribute either on the link block or on the text block within the link block. Both will work.

5. Publish your site 🎉

Further Optimize Your Table of Contents!

You can take your table of contents customization even further on Webflow with the various attribute options available

  • OFFSET TOP: to adjust the arrival of the link, very useful when your navigation bar overlaps your title upon clicking
  • OFFSET BOTTOM: same benefits as TOP, but in reverse
  • HIDE URL HASH: allows you to disable the automatic generation of the #ID in the URL
  • ANIMATIONS: you can also add native Webflow animations to your links (current state, hide/show, etc.)
Additional options for the Table Of Contents attribute
Florian Bodelot
Florian Bodelot
Co-founder

Suggested articles

Webflow Localization, Credial's Use Case
Documentation
Webflow

Webflow Localization: Practical Guide & Credial's Use Case

Webflow Localization: Practical Guide & Credial's Use Case
Visuel showcasing digidop.fr switching to digidop.com
News
Digidop

Digidop.fr is now Digidop.com

Digidop.fr is now Digidop.com
Photo of the Digidop team with the Digidop Logo 2024
News
Digidop

A Look Back at an Exceptional 2024 and Vision 2025

A Look Back at an Exceptional 2024 and Vision 2025

Want to turn your website into your most valuable asset?

Contact us today