Feature: Set controls on pages to prevent or limit page overview summaries#564
Open
Bas-Man wants to merge 5 commits intohalogenica:masterfrom
Open
Feature: Set controls on pages to prevent or limit page overview summaries#564Bas-Man wants to merge 5 commits intohalogenica:masterfrom
Bas-Man wants to merge 5 commits intohalogenica:masterfrom
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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