-
Notifications
You must be signed in to change notification settings - Fork 4
/
search.html
46 lines (42 loc) · 2.05 KB
/
search.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
layout: search
permalink: /search.html
---
<div class="bg-grayBgSciam p-10">
<div class="mx-auto px-4 sm:px-6 lg:px-8">
<div class="bg-gradient-to-r from-navysciamdark via-navysciam to-navysciamlight py-14 md:py-14 px-8 md:px-8 text-left mb-10 rounded-lg">
<h1 class="text-white text-4xl font-sans font-bold">Résultats de la recherche pour : <span id="search-term-display" class="text-4xl text-lightbluesciam font-sans font-extrabold ml-2"></span></h1>
</div>
<div class="flex flex-row flex-wrap">
<div id="search-results" class="grid grid-cols-1 md:grid-cols-3 gap-4 w-full">
</div>
</div>
<button id="scrollToTopButton" class="hidden fixed bottom-5 right-5 z-50 bg-yellowsciam hover:bg-yellow-300 text-navysciam text-lg px-4 py-2 rounded-lg cursor-pointer"
title="Back to Top">
↑ Top
</button>
</div>
</div>
<script>
<!--
window.store = {
{% for post in site.posts %}
"{{ post.url | slugify}}": {
"id": "{{ post.url | absolute_url | xml_escape }}",
"url": "{{ post.url | relative_url }}",
"title": "{{ post.title | xml_escape }}",
"image": "{{ '/images/vignettes/' | append: post.vignette | relative_url }}",
"author": "{{ site.data.authors[post.author].name | xml_escape }}",
"authorImage": "{{ '/images/authors/' | append: site.data.authors[post.author].picture | relative_url }}",
"date": "{{ post.date | date: "%d/%m/%Y" }}",
"readingTime": {{ post.content | reading_time | xml_escape}},
"excerpt": "{{ post.excerpt | strip_html | normalize_whitespace | escape_once | replace: "\n", "" | xml_escape }}",
"content": {{ post.content | strip_html | strip_newlines | jsonify }},
}
{% unless forloop.last %},{% endunless %}
{% endfor %}
};
-->
</script>
<script src="/js/lunr.js"></script>
<script src="/js/search.js"></script>