butschster / LaravelMetaTags

The most powerful and extendable tools for managing SEO Meta Tags in your Laravel project
MIT License
547 stars 51 forks source link

Support for property tag #48

Closed adantart closed 1 year ago

adantart commented 2 years ago

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

butschster commented 2 years ago

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

bbashy commented 1 year ago

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">