aboutsummaryrefslogtreecommitdiffstats
path: root/_pages/search.md
diff options
context:
space:
mode:
Diffstat (limited to '_pages/search.md')
-rw-r--r--_pages/search.md48
1 files changed, 48 insertions, 0 deletions
diff --git a/_pages/search.md b/_pages/search.md
new file mode 100644
index 0000000..98628fb
--- /dev/null
+++ b/_pages/search.md
@@ -0,0 +1,48 @@
+---
+layout: page
+title: Search
+---
+
+<style>
+ #search-container {
+ max-width: 100%;
+ }
+
+ input[type=text] {
+ font-size: normal;
+ outline: none;
+ padding: 1rem;
+ background: rgb(236, 237, 238);
+ width: 100%;
+ -webkit-appearance: none;
+ font-family: inherit;
+ font-size: 100%;
+ border: none;
+ }
+ #results-container {
+ margin: .5rem 0;
+ }
+</style>
+
+<!-- Html Elements for Search -->
+<div id="search-container">
+<input type="text" id="search-input" placeholder="Search...">
+<ol id="results-container"></ol>
+</div>
+
+<!-- Script pointing to search-script.js -->
+<script src="/search.js" type="text/javascript"></script>
+
+<!-- Configuration -->
+<script type="text/javascript">
+SimpleJekyllSearch({
+ searchInput: document.getElementById('search-input'),
+ resultsContainer: document.getElementById('results-container'),
+ json: '/search.json',
+ searchResultTemplate: '<li><a href="{url}" title="{desc}">{title}</a></li>',
+ noResultsText: 'No results found',
+ limit: 10,
+ fuzzy: false,
+ exclude: ['Welcome']
+})
+</script> \ No newline at end of file
Un proyecto texto-plano.xyz