]> _ Git - cubist_cms-front.git/commitdiff
wip #2965 @0:10
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 28 Aug 2019 17:25:35 +0000 (19:25 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 28 Aug 2019 17:25:35 +0000 (19:25 +0200)
resources/views/head/head.blade.php
resources/views/head/meta.blade.php
resources/views/head/pwa.blade.php [new file with mode: 0644]

index f42b4ed40ab8b08f2bad5f8d40b8d4776c102108..90bca9b550b2ca398fbdac58da01e773bd3a2297 100644 (file)
@@ -3,6 +3,7 @@
 @include('cubist::head.opengraph')
 @include('cubist::head.twittercard')
 @include('cubist::head.link')
+@include('cubist::head.pwa')
 @stack('stylesheets')
 @include('googletagmanager::head')
 @include('gtag::head')
index b9915c2347bca4e6adf3c0174a2b3142edb6912e..fd4a994aa1a3a78afb320e599305de4ea606abf6 100644 (file)
@@ -2,6 +2,8 @@
     $search_enabled=!!config('cubist.internal_search',false);
     $page_short_title=$page->get(['title','name']);
 
+    $global_robots=config('cubist.seo_robots',true);
+
     if($search_enabled){
         $search_breadcrumbs=[];
 
@@ -20,8 +22,6 @@
         $type=mb_strtolower(array_pop($t));
     }
 
-
-
     if(isset($page)){
         $title= $meta_title ?? $page->meta_title ?? $page_short_title.' - '.$global->meta_title;
         $description= $meta_description ?? $page->meta_description ?? $global->meta_description;
@@ -37,7 +37,7 @@
 <meta charset="utf-8">
 <meta name="viewport" content="width=device-width,initial-scale=1.0,shrink-to-fit=no">
 <meta name="description" content="{{ $description }}">
-<meta name="robots" content="{{ $robots?'index,follow':'noindex,nofollow' }}">
+<meta name="robots" content="{{ ($global_robots && $robots)?'index,follow':'noindex,nofollow' }}">
 @if($search_enabled)
     <meta data-search="{{ $search_page }}" data-keywords="{{ $search_keywords }}"
           data-short-title="{{ $search_short_title }}" data-type="{{ $type }}"
diff --git a/resources/views/head/pwa.blade.php b/resources/views/head/pwa.blade.php
new file mode 100644 (file)
index 0000000..f7dbc8f
--- /dev/null
@@ -0,0 +1,5 @@
+
+<link rel="manifest" href="/manifest.webmanifest">
+<meta name="msapplication-TileColor" content="{{ $global->pwa_theme_color }}">
+<meta name="msapplication-TileImage" content="/images/favicon/ms-icon-144x144.png">
+<meta name="theme-color" content="{{ $global->pwa_theme_color }}">