Add a summary in Webflow

Tools:

Video

Why add a summary to your blog posts?

Adding a summary to a blog post is important for several reasons:

  1. Facilitate navigation: the summary allows readers to quickly find the sections that interest them without having to read the entire article. This can improve the reading experience and encourage readers to stay on your blog longer.
  2. Improve readability: a well-structured summary can help make your article clearer and easier to follow. This can be especially important if your article is long or complex.
  3. Promote SEO: a summary can help search engines understand the structure of your article and better rank it in search results. This can potentially increase traffic to your blog.
  4. Show that you thought about your reader: by adding a summary, you show that you have taken into account the needs of your readers and that you want to offer them a pleasant and effective reading experience.

In summary, adding a summary to your blog post can improve navigation, readability, SEO, and show your commitment to your readers.

1. Add this script to the URL <head>of your page

 < script defer src="https://cdn.jsdelivr.net/npm/@finsweet/attributes-toc@1/toc.js"></script>

2. Add a “contents” attribute <Rich Text>to your blog post element

3. Add “link” attributes to the links in your summary

4. Publish your site and test the result

Bonus 1: Add style to the active state of your summary

The current state of the generated table of contents links integrates with the current native state of Webflow.

To change the “Current state” class in Webflow Designer:

  • See the green “Current” class appear in the Styles panel (add the current page link in your link settings)
  • Apply current/active styles for the link. These styles will be used when a link is active when scrolling through the table of contents.

Bonus 2: Add an offset

When a user clicks on a table of contents link, the page is anchored and scrolled to that content section. This attribute adds an offset to the top of the header content. Especially useful when your Heading goes behind your navigation bar.

Author photo
Sandro D.
Updated on
30/5/2024
Growth Marketer, Webflow expert and a jack of all trades. I take care of commercial operations, ensure the smooth running of projects and take care of issues related to marketing (SEO, Tracking, Copywriting, etc.)
Are you stuck with your current site?
Let's talk ?
Welcome
>
Gemeos Academy
>
Add a summary in Webflow
These tutorials might interest you

Our tutorials in the same category

See all our tutorials
Illustration traits
We use the best tools

Your site is developed using the best tools and best practices

Gemeos doesn't just offer you a website, but expertise in the best tools to guarantee you the best possible return on your investment.

Figma

To design your custom website and optimize its conversion rate

Webflow

For pixel-perfect, optimized integration of your website

Client-first

Organizing your project to perfection

Wized

To add advanced features to your project

Make

Automate your workflows and save maximum time