Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Special anchor character ¶ gets indexed #112

Open
ant-tar opened this issue Mar 16, 2021 · 3 comments
Open

Special anchor character ¶ gets indexed #112

ant-tar opened this issue Mar 16, 2021 · 3 comments

Comments

@ant-tar
Copy link

ant-tar commented Mar 16, 2021

Affected page(s)

https://docs.modx.com All doc pages been indexed

Here is link to search result: https://www.google.com/search?newwindow=1&safe=active&hl=ru&source=hp&ei=NvBQYLn3ILKAjLsP5YmvgAc&iflsig=AINFCbYAAAAAYFD-Rle16EezplJUDSiiJU1SjXY3RGdb&q=modx+getting+started&oq=modx+getting+started&gs_lcp=Cgdnd3Mtd2l6EAMyAggAOggIABCxAxCDAToLCAAQsQMQxwEQowI6DggAELEDEIMBEMcBEKMCOgUILhCxAzoFCAAQsQM6CAguELEDEIMBOg4IABCxAxCDARDHARCvAToICAAQxwEQrwE6BggAEBYQHlDpEliSMWDNMmgBcAB4AIABjwGIAfMLkgEEMTcuM5gBAKABAaoBB2d3cy13aXqwAQA&sclient=gws-wiz&ved=0ahUKEwi56vCqsLXvAhUyAGMBHeXEC3AQ4dUDCAY&uact=5

What needs to be improved?

Special character ¶ gets into Google reach snippet:

2021-03-16 21 02 35
2021-03-16 20 52 15

Maybe we can use a different anchor symbol or alternatively use an attribute recommended by Google itself for non-indexing? Here it is:
https://developers.google.com/search/docs/advanced/robots/robots_meta_tag#data-nosnippet-attr

P.S. I also have more ideas on how to make search snippet "richer", but I will probably describe this in next request.

Relevant context

all pages for 2.x and 3.x.

@Mark-H Mark-H transferred this issue from modxorg/Docs Mar 16, 2021
@Mark-H Mark-H closed this as completed in d27682a Mar 16, 2021
@Mark-H
Copy link
Collaborator

Mark-H commented Mar 16, 2021

Added the data-nosnippet to the paragraph icons. One thing of note is that it's on a <a> tag, while that google developers link only mentions div, span and section elements, so I'm curious to see if it works.

If it doesn't, I'll have to give it a bit more work to wrap the <a> into a <span>. Lets check in a week or two...

@Mark-H Mark-H reopened this Mar 16, 2021
@ant-tar
Copy link
Author

ant-tar commented Mar 17, 2021

Great, let's wait what will be after reindexing

@ant-tar
Copy link
Author

ant-tar commented Mar 17, 2021

Btw this character can be found via Search as well f.e. https://docs.modx.com/current/en/search?q=login

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

No branches or pull requests

2 participants