mirror of
https://github.com/flarum/framework.git
synced 2025-02-18 08:52:46 +08:00
Merge pull request #1135 from sijad/add-noindex-header
Prevent crawlers to index nojs pages
This commit is contained in:
commit
e7bec9fe29
|
@ -6,6 +6,9 @@
|
||||||
<meta name="description" content="{{ $description }}">
|
<meta name="description" content="{{ $description }}">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1">
|
||||||
<meta name="theme-color" content="{{ array_get($forum, 'attributes.themePrimaryColor') }}">
|
<meta name="theme-color" content="{{ array_get($forum, 'attributes.themePrimaryColor') }}">
|
||||||
|
@if (! $allowJs)
|
||||||
|
<meta name="robots" content="noindex" />
|
||||||
|
@endif
|
||||||
|
|
||||||
@foreach ($cssUrls as $url)
|
@foreach ($cssUrls as $url)
|
||||||
<link rel="stylesheet" href="{{ $url }}">
|
<link rel="stylesheet" href="{{ $url }}">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user