# Tag-based Sections

This section displays grouped posts based on selected tags, with a customizable header pulled from a page using an internal tag. It allows you to showcase multiple categories with a stylish hover effect and controlled content structure.

**Step-by-Step Guide to Configure This Section**

1. Go to Ghost Admin.
2. Create a **page** and add the internal tag `#categories-posts`
3. Set the page title (you can use `Badge | Heading` format for styling). Text before | is used in badge \
   and text after | will be used as heading, so remember to write is format `Badge | Heading`
4. Add an excerpt for description (optional).
5. Go to **Settings → Design → Theme settings → Homepage** and set "Home tags section" with tag slugs.
6. Create posts and assign them to those tags.
7. Publish everything—the section will auto-populate.

<figure><img src="/files/FQhR7pmSgRC5XrFtPrSL" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/PbTRYX96HRA6F84uYa1k" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://themesupport.gitbook.io/gravity-docs/homepage/tag-based-sections.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
