data-nosnippet hides text from the snippet, not from the index

google was building the snippet for my homepage out of the worst possible fragment — the dates and job titles from the experience cards, stitched into "2024 - present software engineer | fulltime ...".

data-nosnippet on the wrapping element fixes it:

<section data-nosnippet>
  ...experience cards...
</section>

what it does not do, which is the part i was afraid of:

  • it does not deindex the section
  • it does not remove it from ranking signals
  • it does not hide it from other crawlers

it only tells google "you may not quote this in a snippet". the text is still crawled and still counts. so it is safe on anything that reads badly out of context, which on a portfolio is most of the tabular stuff.