artesaos / seotools

SEO Tools for Laravel
MIT License
3.11k stars 503 forks source link

A few missing tags #253

Closed StanMenten-bp closed 2 years ago

StanMenten-bp commented 3 years ago

Hi,

I would like to have those default tags:

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="author" content="companyname">
<link rel="icon" type="image/png" sizes="32x32" href="ICON">
<meta name="apple-mobile-web-app-title" content="{{ url()->current() }}">
<meta name="application-name" content="@yield('title', '')">
<meta name="theme-color" content="#ffffff">
<link rel="mask-icon" href="" color="#ffffff">
<meta name="csrf-token" content="{{ csrf_token() }}">

Is there a specific reason why those aren't here (yet)? Because those seem very common at this moment.

peterangelov commented 3 years ago

How does csrf-token relate to the SEO?

StanMenten-bp commented 3 years ago

Sorry my bad, I just thought it would be handy if you can add custom meta or link tags with values. It indeed has nothing to do with SEO.

JenuelDev commented 3 years ago

does meta for image exist?

olrtan commented 3 years ago

Hi,

I would like to have those default tags:

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="author" content="companyname">
<link rel="icon" type="image/png" sizes="32x32" href="ICON">
<meta name="apple-mobile-web-app-title" content="{{ url()->current() }}">
<meta name="application-name" content="@yield('title', '')">
<meta name="theme-color" content="#ffffff">
<link rel="mask-icon" href="" color="#ffffff">
<meta name="csrf-token" content="{{ csrf_token() }}">

Is there a specific reason why those aren't here (yet)? Because those seem very common at this moment.

try this package https://romanzipp.github.io/Laravel-SEO/

rambhosale commented 2 years ago

@StanMenten-bp You can use SEOMeta::addMeta() for adding custom meta tags eg

SEOMeta::addMeta('X-UA-Compatible', 'IE=edge,chrome=1', 'http-equiv');
SEOMeta::addMeta('author', 'companyname');

will generate

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="author" content="companyname">