This is an example article that demonstrates how the table of contents works in your Hugo site. The TOC will automatically generate based on the headings in your article.

Introduction

This section serves as an introduction to the article. The table of contents will automatically include this heading and all subsequent headings.

Getting Started

Here’s how you can get started with your new Hugo site.

Prerequisites

Before you begin, make sure you have the following installed:

  • Hugo (extended version recommended)
  • Git

Installation

Follow these steps to set up your environment.

Main Concepts

This section covers the main concepts you need to understand.

Concept One

Details about the first concept.

Concept Two

Details about the second concept.

Sub-concept 2.1

A deeper dive into concept two.

Sub-concept 2.2

Another aspect of concept two.

Advanced Topics

For those who want to go deeper, here are some advanced topics.

Advanced Topic A

Content about advanced topic A.

Advanced Topic B

Content about advanced topic B.

Best Practices

Here are some best practices to follow:

  1. Always write clear, descriptive headings
  2. Use proper heading hierarchy (H2, H3, etc.)
  3. Keep sections focused and concise

Common Pitfalls

Be aware of these common mistakes:

  • Using too many heading levels
  • Inconsistent heading styles
  • Not organizing content logically

Conclusion

This concludes the example article. The table of contents should have automatically generated based on all the headings above.

References