Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preventing unwanted duplicate tags #28

Closed
bellwood opened this issue May 14, 2019 · 1 comment
Closed

Preventing unwanted duplicate tags #28

bellwood opened this issue May 14, 2019 · 1 comment

Comments

@bellwood
Copy link

bellwood commented May 14, 2019

When trying to add twitter cards:

{!! Meta::tag('card') !!}

I am seeing the following rendered:

<meta name="card" content="Summary" />
<meta name="twitter:card" content="Summary" />

...when all I want is:

<meta name="twitter:card" content="Summary" />

I see some granularity was added in 2.0 but I don't see a way to call Meta::tagTwitterCard or similar.

Thank you.

@chuckreynolds
Copy link

chuckreynolds commented Oct 20, 2019

@bellwood just add

  1. Meta::set('twitter:card', 'summary'); to your controller
  2. {!! Meta::tag('twitter:card') !!} to your blade template to display it

edit
OR just add {!! Meta::tag('twitter:card', 'summary') !!} to your main blade to set the default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants