-
Notifications
You must be signed in to change notification settings - Fork 3
/
search.html
37 lines (34 loc) · 1.25 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
---
layout: page
title: Archivi - Cerca nel sito
description: Archivi, tag e storia del blog di Alto Comando Flotta Stellare
last_modified_at: 2021-05-05
---
<!-- HTML elements for search -->
<input type="text" id="search-input" placeholder="Cerca nel blog...">
<div class="search-results" style="display:block;">
<ul id="results" class="search-results-ul"></ul>
</div>
<!-- Script pointing to search-script.js -->
<script src="/assets/js/search-script.js" type="text/javascript"></script>
<!-- Configuration -->
<script>
SimpleJekyllSearch({
searchInput: document.getElementById('search-input'),
resultsContainer: document.getElementById('results'),
searchResultTemplate: '<li><a href="{url}" tabindex="1"><p>{title}</p><span>{url}</span></a></li>',
noResultsText: '<i class="fa fa-spinner fa-pulse fa-fw" aria-hidden="true"></i> Nessun Risultato...',
json: '/search.json'
})
</script>
<!-- Tag Cloud -->
<h2>Tag Cloud</h2>
{% assign tags = site.tags | sort %}
{% for tag in tags %}
<span class="site-tag">
<a href="/search/tag/{{ tag | first | slugify }}/"
style="font-size: {{ tag | last | size | times: 4 | plus: 80 }}%">
{{ tag[0] | replace:'-', ' ' }} ({{ tag | last | size }})
</a>
</span>
{% endfor %}