LoginSignup
4
2

More than 5 years have passed since last update.

[rails][gretel]パンくずを構造化データにする。と、その注意。

Posted at

gretelでパンくず生成している時、構造化データにする方法。

gretel使っていれば、これだけ!

[before]

== breadcrumbs

[after]

== breadcrumbs semantic: true

注意

gretelのオプションで構造化データすると、
ボキャブラリーにdata-vocabularyが使われる。
問題なくスニペットが適用されるが、現在googleが推奨しているのはschema.org。
data-vocabularyは今後使えなくなるかもしれないので注意:moyai:
ただ、gretelでschema.org使おうとすると一苦労なので、
過去主流だったボキャブラリーをアナウンスなしに対応しなくなるとは思いにくい上に、
構造化データ自体、googleの検索上位になるアルゴリズムには関係ないので、
使えなくなった時に対応でいいと思います:hugging:
ちなみに、web担とかはdata-vocabularyを使っています。

4
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
2