TwicPics / components

A Web component library that brings the power of TwicPics to your favorite web framework.
MIT License
54 stars 2 forks source link

Variants for search engine bots #22

Closed Strift closed 2 years ago

Strift commented 2 years ago

Type: Feature request

Context

Using the TwicPics script, it is possible to use the data-twic-bot attribute to apply transformations that are applied when Google and Bing crawling bots visit the site.

See feature documentation: https://www.twicpics.com/docs/script/attributes#data-twic-bot

Objective

Implement the same feature for TwicPics components

mbgspcii commented 2 years ago

Hi @Strift.

Version 0.9.0 has just been released.

It allows to specify SEO-friendly TwicPics API transformations for search engine bots through the bot attribute.

Transformations can be chained by entering a slash-separated list of TwicPics API transformations.

An empty string (i.e bot="") is also a possible value. In this case, there is no transformation applied to the media when search bots are visiting: it is the original media that is then referenced.

Yours.