Skip to content

Comments

add data-nosnippet to language switcher dropdown#122

Merged
bezhanSalleh merged 1 commit intobezhanSalleh:mainfrom
AurelDemiri:patch-2
Jun 11, 2025
Merged

add data-nosnippet to language switcher dropdown#122
bezhanSalleh merged 1 commit intobezhanSalleh:mainfrom
AurelDemiri:patch-2

Conversation

@AurelDemiri
Copy link
Contributor

This prevents Google using this language switcher for their snippet.

for example:
CleanShot 2025-05-30 at 01 53 20@2x

@what-the-diff
Copy link

what-the-diff bot commented May 30, 2025

PR Summary

  • Added data-nosnippet attribute to Dropdown Component
    The dropdown menu component in the code file switch.blade.php now includes a data-nosnippet="true" attribute. This improvement helps to avoid content within the dropdown getting included in search engine snippets, leading to more relevant search engine previews.

  • Ensured Proper File Ending with Newline
    A missing newline character at the end of the code file has been rectified. While this might sound minor, ending a file with a newline is a common standard that ensures better compatibility across different tools and platforms.

@bezhanSalleh bezhanSalleh merged commit ffb4405 into bezhanSalleh:main Jun 11, 2025
1 check passed
@bezhanSalleh
Copy link
Owner

Thanks!

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.

2 participants