lbenicio-minimal-v1 1.5.2 → 1.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9302fa26928372a4303143e21ca1b1981efba82be3461ab5950ce0a66de6291a
4
- data.tar.gz: 615fb983e44e1bbe77fb298576fc05ee0ab25b44bc38d1e41b43e1f173e9e01d
3
+ metadata.gz: 7439cd8aa881ed14eb4c42b12b31ac138ccd672259d4605c5f66398cef0e71b3
4
+ data.tar.gz: daa0f614ba299e8b336669567d2b2128fd0426c79f5f7c9c4008ec4fad3d934a
5
5
  SHA512:
6
- metadata.gz: 47bca337a04747ead3628ee5532d669485a6df12590ed116b83296af6da9b8ffc19c9fa1a91108715bb2354cfe99619a7760dbac0d8ffe8cc409989819622b4c
7
- data.tar.gz: aa2e086e95fe0521bc7431c91dee062629350bbe619d36a02ed674abf64f2d0c38817117870c5a9bfc6c20e7526c9b010d400d11fc8505e675b91083155ac469
6
+ metadata.gz: 4b79bb85480f180aa14ee7df305a4aeb5b3a1286ab4e81b004f8e664dd29e4f1fc0afd8ff763db4cf25f9513e5b3a65436e3c430384e56ce8b04b3957b7a5098
7
+ data.tar.gz: 2afe45a7a53018d14ae6896fa71868ede217a6155067ab1747ac6094406ccb6c7cb1b1fc552914a7c71b285967739a7799fc76e0a690b5ae10fd8523b3c9bc9f
data/_includes/head.html CHANGED
@@ -1,19 +1,26 @@
1
1
  <meta content='{{ site.title }}' property='og:title' />
2
2
  <!-- favicon -->
3
3
  <link href="{{ '/assets/favicon.ico'}}" rel='shortcut icon'>
4
+
4
5
  <!-- CSS -->
5
6
  <link href="{{ '/assets/vendor/bootstrap.min.css'}}" rel="stylesheet"
6
7
  integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
7
- <link rel="stylesheet" href="{{ '/assets/css/style.css'}}">
8
- <link rel="stylesheet" href="{{ '/assets/vendor/all.min.css'}}">
8
+ <link rel="stylesheet" href="{{'/assets/css/style.css'}}">
9
+ <link rel="stylesheet" href="{{'/assets/vendor/all.min.css'}}">
10
+
11
+ {% if page.layout == "feed" %}
12
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/instantsearch.css@7.4.2/themes/reset-min.css">
13
+ <link rel="stylesheet" href="{{'/assets/css/search.css'}}">
14
+ {% endif %}
15
+
9
16
  <!-- Fonts -->
10
17
  <link href="https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap" rel="stylesheet">
11
18
  <!-- Configs -->
12
19
  <meta content='width=device-width, initial-scale=1.0, , maximum-scale=1, minimum-scale=1, user-scalable=no' name='viewport'>
13
20
  <meta content='text/html; charset=utf-8' http-equiv='content-type' />
14
21
  {% if page.date %}
15
- <link rel="stylesheet" href="{{ '/assets/css/post.css'}}">
16
- <link rel="stylesheet" href="{{ '/assets/css/monokai.css'}}">
22
+ <link rel="stylesheet" href="{{'/assets/css/post.css'}}">
23
+ <link rel="stylesheet" href="{{'/assets/css/monokai.css'}}">
17
24
  <meta content='{{ site.default_url }}{{ page.url }}' property='og:url' />
18
25
  <meta content="{{ page.content | strip_html | strip_newlines | truncate: 120 }}" property='og:description' />
19
26
  <meta content="article" property="og:type" />
@@ -1,12 +1,12 @@
1
1
  {% if paginator.total_pages > 1 %}
2
- <ul class="pagination d-flex justify-content-evenly pt-3">
2
+ <ul class="pagination d-flex flex-row justify-content-evenly pt-3">
3
3
  {% if paginator.previous_page %}
4
4
  <li class="ms-3 me-3 me-auto">
5
5
  <a class="pagination-nav text-black" href="{{ paginator.previous_page_path }}">Newer</a>
6
6
  </li>
7
7
  {% endif %}
8
8
  {% if paginator.next_page %}
9
- <li class="ml-auto">
9
+ <li class="ms-3 me-3 ms-auto">
10
10
  <a class="pagination-nav text-black" href="{{ paginator.next_page_path }}">Older</a>
11
11
  </li>
12
12
  {% endif %}
@@ -0,0 +1,45 @@
1
+ <section id="search-box" class="d-flex flex-column justify-content-center offset-xs-1 col-xs-10 offset-sm-3 col-sm-6">
2
+ <header>
3
+ <div id="search-input"></div>
4
+ </header>
5
+ <main>
6
+ <div id="right-column">
7
+ <div id="sort-by-wrapper"><span id="sort-by"></span></div>
8
+ <div id="stats"></div>
9
+ <div id="hits"></div>
10
+ <div id="pagination"></div>
11
+ </div>
12
+ </main>
13
+
14
+ <!-- TEMPLATES -->
15
+ <script type="text/html" id="no-results-template">
16
+ <div id="no-results-message">
17
+ <p>We didn't find any results for the search <em>"{{query}}"</em>.</p>
18
+ <a href="." class='clear-all'>Clear search</a>
19
+ </div>
20
+ </script>
21
+
22
+
23
+ <!-- SCRIPTS -->
24
+ <script src="https://cdn.jsdelivr.net/npm/algoliasearch@4.0.3/dist/algoliasearch-lite.umd.js"></script>
25
+ <script src="https://cdn.jsdelivr.net/npm/instantsearch.js@4.7.0/dist/instantsearch.production.min.js"></script>
26
+ <script src="/assets/vendor/search.js"></script>
27
+ <div id="algolia-props" class="d-none" data-algolia-application-id="{{ site.algolia.application_id }}" data-algolia-api-key={{ site.algolia.api_key }} data-algolia-index-name="{{ site.algolia.index_name }}" data-algolia-hits-per-page="{{ site.algolia.hits_per_page }}"></div>
28
+ <script>
29
+ document.addEventListener("DOMContentLoaded", function (e) {
30
+ try {
31
+ app({
32
+ appId: document.getElementById('algolia-props').dataset.algoliaApplicationId,
33
+ apiKey: document.getElementById('algolia-props').dataset.algoliaApiKey,
34
+ indexName: document.getElementById('algolia-props').dataset.algoliaIndexName,
35
+ searchParameters: {
36
+ hitsPerPage: document.getElementById('algolia-props').dataset.algoliaHitsPerPage,
37
+ },
38
+ });
39
+ } catch (err) {
40
+ document.getElementById('search-box').remove();
41
+ };
42
+ document.getElementById('algolia-props').remove();
43
+ });
44
+ </script>
45
+ </section>
data/_layouts/feed.html CHANGED
@@ -20,6 +20,11 @@
20
20
  </section>
21
21
  </div>
22
22
  </div>
23
+ {% if site.algolia.application_id %}
24
+ <div class="row mt-5">
25
+ {% include search-bar.html %}
26
+ </div>
27
+ {% endif %}
23
28
  </div>
24
29
  {% include footer.html %}
25
30
  {% include analytics.html %}
@@ -0,0 +1,3 @@
1
+ section#search-box a:link,a:visited,a:hover,a:active,a{text-decoration:none!important;color:black!important}section#search-box .clear:after{content:'';display:table;clear:both}section#search-box header{position:relative;height:80px;margin-top:40px}section#search-box header img{position:absolute;top:9px;left:0;float:left;max-width:23%}section#search-box .ais-SearchBox-form{position:relative}section#search-box .ais-SearchBox-input{width:100%;-webkit-appearance:none;appearance:none;border:1px solid #ccc;border-radius:4px;font-size:16px;padding:5px 20px}section#search-box .ais-SearchBox-reset{position:absolute;top:.5em;right:.25em}section#search-box .ais-SearchBox-submit{position:absolute;top:.5em;left:.25em}section#search-box #search-input section#search-box .ais-SearchBox-submit,section#search-box #search-input section#search-box .ais-SearchBox-reset{top:16px}section#search-box .ais-SearchBox-submit svg,section#search-box .ais-SearchBox-reset svg{width:1.25em;height:1.25em;fill:#8e8e8e}section#search-box #search-input input{font-size:28px;padding-left:100px;font-weight:100;padding:10px 10px 5px 35px;border:0;border-bottom:5px solid #eee;appearance:none;-webkit-appearance:none}section#search-box #search-input input,section#search-box #search-input input:focus{transition:border-color .3s ease-in;outline:0}section#search-box #search-input input:focus{border-color:#4550a7}section#search-box #search-input input::-webkit-input-placeholder,section#search-box #search-input input:-moz-placeholder,section#search-box #search-input input:-moz-placeholder,section#search-box #search-input input:-ms-input-placeholder{font-weight:100;color:#999}section#search-box #hits{margin:4px 0;padding:10px 0;border-top:2px solid #eee}section#search-box .hit{font-size:0;padding:15px 0;border-bottom:1px solid #eee}section#search-box .hit-name{margin:0}section#search-box .hit-image{display:inline-block;width:16%;text-align:center}section#search-box .hit-image img{max-width:100%;max-height:180px}section#search-box .hit-content{font-size:13px;font-weight:300;display:inline-block;width:81%;margin-left:3%;vertical-align:top}section#search-box .hit-stars{font-size:17px;margin:4px 0;color:#868686}section#search-box .hit-content section#search-box .hit-price{float:right;margin-left:20px;color:#fff;background:#383838;padding:4px;border-radius:3px}section#search-box .hit-content section#search-box .hit-price,section#search-box .hit-content section#search-box .hit-name{font-weight:normal;margin-top:0}section#search-box .hit-content mark{font-style:normal;color:#4550a7;background-color:transparent;border-bottom:solid 1px rgba(101,91,244,0.5)}section#search-box .hit-content p{font-size:13px}section#search-box .hit-description mark{color:inherit;background-color:inherit}section#search-box .hit-category-breadcrumb{margin:5px 0 2px 0}section#search-box .hit-category-breadcrumb mark{color:inherit}section#search-box .hit-content section#search-box .hit-description{color:#868686;margin:1px 0 10px 0;font-size:14px}section#search-box #pagination{margin-top:60px}section#search-box #pagination ul{font-size:0;list-style-type:none;text-align:center;display:block}section#search-box #pagination li{font-size:14px;display:inline}section#search-box #pagination a,section#search-box #pagination span{padding:8px 12px;text-decoration:none;color:#000;border:1px solid #eee}section#search-box #pagination a:hover,section#search-box #pagination span:hover{background:#f5f5f5}section#search-box #pagination section#search-box .ais-Pagination-item{padding:3px}section#search-box #pagination section#search-box .ais-Pagination-item:first-child{border-top-left-radius:4px;border-bottom-left-radius:4px}section#search-box #pagination section#search-box .ais-Pagination-item:last-child{border-right:1px solid #eee;border-top-right-radius:4px;border-bottom-right-radius:4px}section#search-box #pagination section#search-box .ais-Pagination-item--selected a{color:white;border-color:#4550a7;background:#4550a7}section#search-box #pagination section#search-box .ais-Pagination-item--selected a:hover{cursor:default}section#search-box #pagination section#search-box .ais-Pagination-item--disabled{cursor:not-allowed}section#search-box #pagination section#search-box .ais-Pagination-item--disabled:hover{background:0}section#search-box #sort-by-wrapper{font-weight:300;position:relative;float:right;color:#999}section#search-box #sort-by select{font-size:16px;padding-right:14px;cursor:pointer;border:0;outline:0;background:0;-webkit-appearance:none;-moz-appearance:none}section#search-box #sort-by:after{content:'';display:inline-block;position:absolute;top:8px;right:0;width:0;height:0;margin-left:2px;vertical-align:middle;color:#000;border-top:4px dashed;border-right:4px solid transparent;border-left:4px solid transparent;pointer-events:none}section#search-box .facet{margin-bottom:24px;font-size:14px;color:#000}section#search-box .facet h5{margin:0 0 6px;padding:0 0 6px;text-transform:uppercase;border-bottom:2px solid #eee}
2
+ section#search-box .facet ul{margin:0;padding:0;list-style-type:none}section#search-box .facet li{margin-bottom:3px}section#search-box .facet a:visited,section#search-box .facet a{color:#000;text-decoration:none;cursor:pointer}section#search-box .ais-RefinementList-label,section#search-box .ais-HierarchicalMenu-list section#search-box .facet-item,section#search-box .ais-Menu-link{cursor:pointer;line-height:1.5em}section#search-box .ais-HierarchicalMenu-list section#search-box .ais-HierarchicalMenu-item{margin:3px 0}section#search-box .ais-HierarchicalMenu-link:before{display:inline-block;font:normal normal normal 14px/1 FontAwesome;content:'\f105';padding:0 5px 0 0}section#search-box .sffv_no-results{font-size:13px;line-height:1.2;padding-top:6px}section#search-box .ais-RefinementList section#search-box .ais-SearchBox-submit svg,section#search-box .ais-RefinementList section#search-box .ais-SearchBox-reset svg{width:1em;height:1em;fill:#8e8e8e}section#search-box .ais-RefinementList-label:hover,section#search-box .ais-RefinementList-item--selected section#search-box .ais-RefinementList-label,section#search-box .ais-Menu-link:hover,section#search-box .ais-Menu-item--selected section#search-box .ais-Menu-link[class],section#search-box .ais-HierarchicalMenu-list section#search-box .facet-itemsection#search-box .active:hover,section#search-box .ais-HierarchicalMenu-list section#search-box .facet-itemsection#search-box .active{color:#4550a7}section#search-box .ais-RefinementList-item--selected section#search-box .ais-RefinementList-label:hover,section#search-box .ais-Menu-item--selected section#search-box .ais-Menu-link:hover,section#search-box .ais-HierarchicalMenu-list section#search-box .facet-itemsection#search-box .active:hover{text-decoration:line-through;color:#4550a7}section#search-box .ais-RefinementList-count,section#search-box .ais-HierarchicalMenu-count,section#search-box .ais-Menu-count,section#search-box .ais-RatingMenu-count,section#search-box .ais-ToggleRefinement-count{position:relative;float:right;color:#999}section#search-box .no-results #pagination,section#search-box .no-results #sort-by,section#search-box .no-results #stats,section#search-box .no-results #facets{display:none}section#search-box #no-results-message{text-align:center}section#search-box #no-results-message p{font-size:28px;font-weight:100}section#search-box #no-results-message ul{list-style-type:none}section#search-box #no-results-message li{font-size:12px;position:relative;display:inline-block;margin:4px 2px;padding:4px 28px 4px 8px;color:#999;border:1px solid #ddd;border-radius:12px}section#search-box #no-results-message li spansection#search-box .value{font-weight:bold;color:#000}section#search-box #no-results-message li asection#search-box .remove img{position:absolute;top:3px;right:5px;float:right;width:17px;height:17px;opacity:.5}section#search-box #no-results-message li asection#search-box .remove:hover img{opacity:1}section#search-box a.clear-all{font-size:12px;line-height:1;display:inline-block;margin:10px;padding:8px 12px;text-decoration:none;color:black;border:2px solid #ddd;border-radius:4px}section#search-box a.clear-all:hover{transition:border-color .3s ease-in;border-color:#999}section#search-box .ais-RangeSlider section#search-box .rheostat-progress{background-color:#46aeda}section#search-box .rheostat-handle{border-color:#4550a7}section#search-box .ais-RatingMenu-link{display:flex}section#search-box .ais-RatingMenu-label{flex-grow:1}section#search-box .ais-Menu-item--selected,section#search-box .ais-RefinementList-item--selected,section#search-box .ais-HierarchicalMenu-item--selected,section#search-box .ais-RatingMenu-item--selected{font-weight:bold}section#search-box .ais-RatingMenu-starIcon,section#search-box .ais-RatingMenu-starIcon--emtpy{display:inline-block;width:1em;height:1em}section#search-box .ais-RatingMenu-starIcon,section#search-box .ais-RatingMenu-starIcon--empty{fill:currentColor;color:#fbae00}section#search-box .ais-RatingMenu-item--disabled section#search-box .ais-RatingMenu-starIcon,section#search-box .ais-RatingMenu-item--disabled section#search-box .ais-RatingMenu-starIcon--empty{color:#c9c9c9}section#search-box .ais-ToggleRefinement-label{cursor:pointer}section#search-box .ais-RefinementList-showMore,section#search-box .ais-Menu-showMore{font-weight:bold;opacity:.7;padding-left:4px;position:relative;line-height:25px;font-size:.9em}section#search-box .ais-RefinementList-showMore:hover,section#search-box .ais-RefinementList-showMore:focus,section#search-box .ais-Menu-showMore:hover,section#search-box .ais-Menu-showMore:focus{opacity:1}section#search-box .ais-RefinementList-showMore section#search-box .isShowingMore:before,section#search-box .ais-RefinementList-showMore section#search-box .isShowingLess:before,section#search-box .ais-Menu-showMore section#search-box .isShowingMore:before,section#search-box .ais-Menu-showMore section#search-box .isShowingLess:before{font-family:FontAwesome;font-style:inherit;font-weight:inherit;text-decoration:inherit;display:inline-block;position:relative;content:'';margin:0 5px 0 0}
3
+ section#search-box .ais-RefinementList-showMore section#search-box .isShowingMore:before,section#search-box .ais-Menu-showMore section#search-box .isShowingMore:before{content:'\f0fe'}section#search-box .ais-RefinementList-showMore section#search-box .isShowingLess:before,section#search-box .ais-Menu-showMore section#search-box .isShowingLess:before{content:'\f146'}
@@ -35,7 +35,7 @@ a.nav-blog-links:link,
35
35
  a.nav-blog-links:visited,
36
36
  a.nav-blog-links:hover,
37
37
  a.nav-blog-links:active {
38
- text-decoration: none;
38
+ text-decoration: none !important;
39
39
  }
40
40
 
41
41
  nav>ul,
@@ -0,0 +1 @@
1
+ function app(e){var t=instantsearch({searchClient:algoliasearch(e.appId,e.apiKey),indexName:e.indexName,routing:!0,searchFunction:e.searchFunction});t.addWidgets([instantsearch.widgets.searchBox({container:"#search-input",placeholder:"Search for ..."}),instantsearch.widgets.hits({container:"#hits",templates:{item:function(e){var t=""!==document.querySelector("input.ais-SearchBox-input").value,n=document.querySelector("section#search-box div#pagination"),a=document.querySelector("section#search-box div#stats"),s=document.querySelector("section#search-box div#sort-by-wrapper"),i=document.querySelector("section#search-box div#right-column");return t?(n.classList.remove("d-none"),a.classList.remove("d-none"),s.classList.remove("d-none"),i.classList.remove("d-none")):(n.classList.add("d-none"),a.classList.add("d-none"),s.classList.add("d-none"),i.classList.add("d-none")),t&&e.image,""},empty:getTemplate("no-results")}}),instantsearch.widgets.stats({container:"#stats"}),instantsearch.widgets.sortBy({container:"#sort-by",items:[{value:e.indexName,label:"Most relevant"}]}),instantsearch.widgets.pagination({container:"#pagination",scrollTo:"#search-input"})]),t.start()}function getTemplate(e){return document.querySelector("#"+e+"-template").innerHTML}function getHeader(e){return"<h5>"+e+"</h5>"}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lbenicio-minimal-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leonardo Benicio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-28 00:00:00.000000000 Z
11
+ date: 2023-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll-seo-tag
@@ -175,6 +175,7 @@ files:
175
175
  - _includes/pagination.html
176
176
  - _includes/post-list.html
177
177
  - _includes/post-navigation.html
178
+ - _includes/search-bar.html
178
179
  - _layouts/autopage_category.html
179
180
  - _layouts/autopage_collection.html
180
181
  - _layouts/autopage_tags.html
@@ -184,6 +185,7 @@ files:
184
185
  - _layouts/posts.html
185
186
  - assets/css/monokai.scss
186
187
  - assets/css/post.scss
188
+ - assets/css/search.css
187
189
  - assets/css/style.scss
188
190
  - assets/favicon.ico
189
191
  - assets/favicon.png
@@ -193,6 +195,7 @@ files:
193
195
  - assets/vendor/bootstrap.min.css.map
194
196
  - assets/vendor/bootstrap.min.js
195
197
  - assets/vendor/bootstrap.min.js.map
198
+ - assets/vendor/search.js
196
199
  - assets/webfonts/fa-brands-400.eot
197
200
  - assets/webfonts/fa-brands-400.svg
198
201
  - assets/webfonts/fa-brands-400.ttf