LaravelMetaTags icon indicating copy to clipboard operation
LaravelMetaTags copied to clipboard

Support for property tag

Open adantart opened this issue 2 years ago • 1 comments

Is there any way to include "property" tag, besides or instead of "name"?

For example, many OG meta are documented to be written with property tag: https://ogp.me/#structured

How can I write something like this ?

<meta property="og:title" content="The Rock" />
<meta property="og:type" content="video.movie" />
<meta property="og:url" content="https://www.imdb.com/title/tt0117500/" />
<meta property="og:image" content="https://ia.media-imdb.com/images/rock.jpg" />

Thank you

adantart avatar Jul 01 '22 23:07 adantart

Hi @adantart

You may use OpenGraph package https://github.com/butschster/LaravelMetaTags#opengraphpackage

Or if you need to create your own tags use https://github.com/butschster/LaravelMetaTags#tag

butschster avatar Jul 04 '22 07:07 butschster

Maybe they thought that it uses name="" and not property="" because the readme says so;

// <meta name="og:type" content="website">

It does in fact generate;

<meta property="og:type" content="website">

bbashy avatar Jul 16 '23 10:07 bbashy