]> _ Git - pmi.git/commitdiff
Update .env files to specify CUBIST_INTERNAL_SEARCH_INDEX + tweak search results...
authorStephen Cameron <stephen@cubedesigners.com>
Thu, 29 Aug 2019 15:00:36 +0000 (17:00 +0200)
committerStephen Cameron <stephen@cubedesigners.com>
Thu, 29 Aug 2019 15:00:36 +0000 (17:00 +0200)
.env.production
.env.staging
resources/views/pages/search.blade.php

index 757fe478d71647682d403810208b871729c8c409..6a5840ca133eeab7ddd2a0b9073d7809f00c37df 100644 (file)
@@ -46,6 +46,7 @@ GOOGLE_ANALYTICS_ID=UA-4339912-10
 BACKPACK_LICENSE=YwdOWjeEczPAwy06GzkBJggW
 
 CUBIST_INTERNAL_SEARCH=true
+CUBIST_INTERNAL_SEARCH_INDEX=pmi
 
 ELASTICSEARCH_HOST=127.0.0.1
 ELASTICSEARCH_PORT=9200
index 2733fa3833786c420da132d7cdf04babb55aa0d2..652438ab8022ae1ef3d6ed9831b70458aa649952 100644 (file)
@@ -45,6 +45,7 @@ GOOGLE_ANALYTICS_ID=UA-4339912-10
 BACKPACK_LICENSE=YwdOWjeEczPAwy06GzkBJggW
 
 CUBIST_INTERNAL_SEARCH=true
+CUBIST_INTERNAL_SEARCH_INDEX=pmi_staging
 
 ELASTICSEARCH_HOST=127.0.0.1
 ELASTICSEARCH_PORT=9200
index 644fc6b325a3bdd8d795706e002c65a6ac598030..8ab38440ef7e8600e32535d154a43c75a55f6b14 100644 (file)
 
                         <search-field placeholder="{{ __('Saisissez votre recherche') }}"></search-field>
 
-{{--                        <input class="pl-2 -ml-2 py-2 font-display text-2xl flex-grow appearance-none sm:w-full xs:text-base"--}}
-{{--                               type="text"--}}
-{{--                               name="q"--}}
-{{--                               autocomplete="off"--}}
-{{--                               placeholder="{{ __('Saisissez votre recherche') }}">--}}
-
                         <button class="btn flex items-center py-3 px-8 font-display text-lg rounded ml-4 sm:mt-4 sm:mx-auto">
                             @svg('search', 'fill-current mr-2')
                             {{ __('Rechercher') }}
@@ -39,7 +33,7 @@
                     @foreach ($results as $result)
                         <div class="search-result py-5 @if(!$loop->last) border-b-2 border-grey-100 @endif">
 
-                            <div class="breadcrumbs">
+                            <div class="breadcrumbs sm:text-sm">
                                 @foreach ($result['breadcrumbs'] as $breadcrumb)
                                     <div @if(!$loop->last) class="breadcrumbs-item" @endif>
                                         <a class="breadcrumbs-link" @if ($breadcrumb->url)href="{{ $breadcrumb->url }}" @endif>
@@ -49,7 +43,7 @@
                                 @endforeach
                             </div>
 
-                            <a class="text-2xl font-display mt-1 inline-block animated-underline" href="{{ $result['url'] }}">{{ $result['title'] }}</a>
+                            <a class="text-2xl sm:text-xl xs:text-lg font-display mt-1 inline-block animated-underline" href="{{ $result['url'] }}">{{ $result['title'] }}</a>
                         </div>
                     @endforeach
                 </div>