mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2024-12-11 17:59:48 +01:00
ca86582157
Added support for custom meta tags via a new config file. Custom meta tags will only be active if "CUSTOM_META_TAGS" is set to "true" in the config. Replaced "<html lang="en">" with "@include('layouts.lang')" meaning HTML lang can be changed in the new config, defaults to en if not active or not defined.
16 lines
1.0 KiB
PHP
16 lines
1.0 KiB
PHP
@if(Config::get('meta.description') != '')<meta name="description" content="{{ Config::get('meta.description') }}">
|
|
@elseif(Route::currentRouteName() != 'home')<meta name="description" content="{{ $userinfo->littlelink_description }}">
|
|
@else<meta name="description" content="{{ $cleaner_input }}">@endif
|
|
|
|
@if(Config::get('meta.author') != '')<meta name="author" content="{{ Config::get('meta.author') }}">
|
|
@elseif(Route::currentRouteName() != 'home')<meta name="author" content="{{ $userinfo->name }}">@endif
|
|
|
|
@if(Config::get('meta.viewport') != '')<meta name="viewport" content="{{ Config::get('meta.viewport') }}"/>
|
|
@else<meta name="viewport" content="width=device-width, initial-scale=1">@endif
|
|
|
|
@if(Config::get('meta.robots') != '')<meta name="robots" content="{{ Config::get('meta.robots') }}">@endif
|
|
|
|
@if(Config::get('meta.canonical_url') != '')<link rel="canonical" href="{{ Config::get('meta.canonical_url') }}">@endif
|
|
|
|
@if(Config::get('meta.twitter_creator') != '')<meta name="twitter:creator" content="{{ Config::get('meta.twitter_creator') }}">@endif
|