Search! Closes #38
Squashed commit of the following: commit edc3e917d710f34c2ac487474db37a8acf2134c9 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 25 19:51:32 2016 +0000 Update changelog commit 78668c68557c4121bf4b8862b76102ac87c81787 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 25 19:50:39 2016 +0000 Add the search feature commit dfe8447dcb236e03a7870f40e53a4276fc06e580 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 25 19:26:23 2016 +0000 Add a search form in the footer commit 626b0124653d9697e1ac6d3424805af41546ba17 Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 25 18:00:38 2016 +0000 Installing/setting up scout commit 52d7d7e7e058247fa73963b4dd45aa8649df4b9f Author: Jonny Barnes <jonny@jonnybarnes.uk> Date: Fri Nov 25 17:50:56 2016 +0000 Add search dependencies
This commit is contained in:
parent
eb51253f33
commit
b53221a94a
15 changed files with 305 additions and 4 deletions
9
resources/assets/sass/layout.scss
vendored
9
resources/assets/sass/layout.scss
vendored
|
@ -46,3 +46,12 @@ body > .h-card {
|
|||
margin-top: 5px;
|
||||
border-top: 1px solid grey;
|
||||
}
|
||||
|
||||
footer button {
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.algolia-image {
|
||||
display: inline;
|
||||
height: 2em;
|
||||
}
|
||||
|
|
|
@ -38,6 +38,10 @@
|
|||
@show
|
||||
|
||||
<footer>
|
||||
<form action="search" method="get">
|
||||
<input type="text" name="terms"><button type="submit">Search</button>
|
||||
</form>
|
||||
<p class="algolia-credit">Search powered by </p><img class="algolia-image" src="/assets/img/algolia.svg">
|
||||
<p>The code for <code>{{ env('APP_LONGURL') }}</code> can be found on <a href="https://github.com/jonnybarnes/jonnybarnes.uk">GitHub</a>.</p>
|
||||
<p>Built with love: <a href="/colophon">Colophon</a></p>
|
||||
</footer>
|
||||
|
|
27
resources/views/search.blade.php
Normal file
27
resources/views/search.blade.php
Normal file
|
@ -0,0 +1,27 @@
|
|||
@extends('master')
|
||||
|
||||
@section('title')
|
||||
Search « Jonny Barnes
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
<h2>Search Results</h2>
|
||||
@foreach($notes as $note)
|
||||
|
||||
<div class="h-entry">
|
||||
@include('templates.note', ['note' => $note])
|
||||
</div>
|
||||
|
||||
@endforeach
|
||||
@stop
|
||||
|
||||
@section('scripts')
|
||||
@include('templates.mapbox-links')
|
||||
|
||||
<script src="/assets/frontend/Autolinker.min.js"></script>
|
||||
<script src="/assets/js/links.js"></script>
|
||||
<script src="/assets/js/maps.js"></script>
|
||||
|
||||
<script src="/assets/prism/prism.js"></script>
|
||||
<link rel="stylesheet" href="/assets/prism/prism.css">
|
||||
@stop
|
Loading…
Add table
Add a link
Reference in a new issue