Skip to content

Feature: Set controls on pages to prevent or limit page overview summaries#564

Open
Bas-Man wants to merge 5 commits intohalogenica:masterfrom
Bas-Man:limit-ai-search-summary
Open

Feature: Set controls on pages to prevent or limit page overview summaries#564
Bas-Man wants to merge 5 commits intohalogenica:masterfrom
Bas-Man:limit-ai-search-summary

Conversation

@Bas-Man
Copy link

@Bas-Man Bas-Man commented Mar 2, 2026

Adds a configuration option to hugo.toml
Adds new partial which can be customised meta-ai-search-summary-limits.html
Adds a new shortcode no-ai-summary
Adds an explainer page as a new post.

Closes #559

This sets the default AI search summary limit that google and other
search engines might return in search results.

Available settings:
 - "default" # This is the same as setting -1 and results in no limit
and a meta tag is not added to the pagees.
 - 0 # This creates a "no-snippet" for the the generated meta tag.
Search engines should not generate a summary at all.
 - 50,150,300 # These are character limits.

If you want to just have a blanket limit use "robots" if you want to
customise the limits add the name of the robot you wish to limit.

E.G: Bingbot, Googlebot, DuckDuckBot
Update partials/head.html to call meta-ai-search-summary-limits.html if
AISearchSummary is defined in hugo.toml

Create meta-ai-search-summary-limits.html within the partials
direcrtory.

This adds a meta tag to the page head if the page is in the
"mainSections" and if "AISearchSummary" has been defined in hugo.toml.

The value "summaryLimit" is used on all pages within "mainSection"

Each page can also have a custom setting by adding the following front
matter data.

```
summaryLimits:
  robots:
    summarylimit: 50
```

Acceptable values for summaryLimit are:
  - none -> no meta tag to be added.Search engines can create any length
summary.
  - nosnippet -> Search Summary is not permitted to create an AI summary
of the page.
  - For numeical values there is no prescribed limit value. But the
documentation I have read suggests values of 50, 150 and 300
This addes the ablility to wrap a section of a page in a a `<div
data-nosnippet></div>`.

This informs the search engine not to use section as part of the AI
summary that it will generate.
This explains the config and how to use the shortcode `no-ai-summary` in
markdown.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Meta tag and div support to block Search Engine AI summary results / snippets

1 participant