How to Create a Summary [Webflow Blog Tutorial]

Tutorial
3 min
Published on Mar 20, 2023
Updated on
Preview of a Table of Contents (ToC) with the Finsweet Webflow Attributes logo
Use AI to summarize this article
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

Projection of the Digidop logo on a building facade in a major city at night, symbolizing brand visibility.
Storytelling
Digidop

Was it a good idea (or not) to name our company Digidop?

Was it a good idea (or not) to name our company Digidop?
Conceptual illustration of a user facing two versions of a website: a traditional interface on the left and a futuristic, data-driven one on the right. A metaphor for today’s and tomorrow’s web.
Documentation
AI

When LLMs Redefine the Role of Brand Websites

When LLMs Redefine the Role of Brand Websites
Group photo of Webflow EMEA Director Hélène, Digidop co-founders Thomas and Florian, and other attendees during the Webflow Momentum Tour Paris rooftop gathering with the Eiffel Tower in the background.
Events
Webflow

Webflow Momentum Tour Paris: Talks, Demo & Networking with Webflow & Digidop

Webflow Momentum Tour Paris: Talks, Demo & Networking with Webflow & Digidop

Want to turn your website into your most valuable asset?

Contact us today