Layout 2 has now 2 different search routes, the default search route is now /main for a better thumbnail view and index search is only working on the /index site itself may contain minor other css improvements/fixes

This commit is contained in:
noxy
2019-10-19 09:28:17 +00:00
parent 33373992ef
commit 62a9926ff1
3 changed files with 14 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 MiB

After

Width:  |  Height:  |  Size: 172 KiB

View File

@@ -1094,4 +1094,9 @@ ul.pagination {
img.comment_emoji { img.comment_emoji {
max-width: 4rem; max-width: 4rem;
}
div#list {
padding: 0;
padding-bottom: 2em;
} }

View File

@@ -55,11 +55,19 @@
@else @else
@endif @endif
@if (\Request::is('index'))
<div class="search-index hidden-xs d-none d-md-block"> <div class="search-index hidden-xs d-none d-md-block">
<form method="get" action="/index" class="form-inline my-2 my-lg-0"> <form method="get" action="/index" class="form-inline my-2 my-lg-0">
{!! Form::text('q', isset($q) ? $q : null, ['class' => 'form-control mr-sm-2 search-input text-light', 'placeholder' => 'Search w0bm.com']) !!} {!! Form::text('q', isset($q) ? $q : null, ['class' => 'form-control mr-sm-2 search-input text-light', 'placeholder' => 'Search w0bm.com']) !!}
<button class="btn btn-dark" type="submit">Search</button> <button class="btn btn-dark" type="submit">Search</button>
</form> </form>
</div> </div>
@else
<div class="search-index hidden-xs d-none d-md-block">
<form method="get" action="/main" class="form-inline my-2 my-lg-0">
{!! Form::text('q', isset($q) ? $q : null, ['class' => 'form-control mr-sm-2 search-input text-light', 'placeholder' => 'Search w0bm.com']) !!}
<button class="btn btn-dark" type="submit">Search</button>
</form>
</div>
@endif
</nav> </nav>