whiteblog-theme 0.0.6 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +0 -13
- data/_includes/footer.html +1 -1
- data/_includes/head.html +3 -2
- data/_includes/header.html +22 -32
- data/_layouts/categories.html +1 -1
- data/_layouts/default.html +1 -1
- data/_layouts/home.html +22 -24
- data/_layouts/post.html +2 -2
- data/_pages/search.md +24 -0
- data/_sass/whiteblog-theme/_layout.scss +38 -14
- data/_sass/whiteblog-theme.scss +1 -2
- data/assets/jekyll-search.min.js +1 -0
- metadata +4 -16
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 641327c765d7035ef9d867b0de8e6522dcfdd5b661cdd60cc4307d9fad89727e
|
|
4
|
+
data.tar.gz: 544502dea8d7fbed758f8d7d28b20a3fd9db1d865cd2c97c2fdd56250fabebc5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0e46c3203a1f98fbc7089575ab8fd673cd3bc624dbe3b33b90e68697dc1a0d8cbf412e4677a7134f425198679c0ea1c92e6bae0f16818533b38a925d57691d9d
|
|
7
|
+
data.tar.gz: 163e9826a69dca3a058d177c3a9a66a4b021cfb905d69414e75ea0975707e37a89e1a5118effff3d5a90c62148d6aaf4ef759b5c8e1e31ab0b5d9d03acd0a601
|
data/README.md
CHANGED
|
@@ -38,19 +38,6 @@ Or install it yourself as:
|
|
|
38
38
|
|
|
39
39
|
$ gem install whiteblog-theme
|
|
40
40
|
|
|
41
|
-
## Usage
|
|
42
|
-
|
|
43
|
-
### Colorful Categories
|
|
44
|
-
|
|
45
|
-
Bring color to your categories editing the following setting inside `_sass\whiteblog-theme\_category_colors.scss`. For example if you add a new category named "Markdown", you need to add the following code with the color selected:
|
|
46
|
-
|
|
47
|
-
`
|
|
48
|
-
a.badge-Markdown {
|
|
49
|
-
color: #fff;
|
|
50
|
-
background-color: #6967CE;
|
|
51
|
-
}
|
|
52
|
-
`
|
|
53
|
-
|
|
54
41
|
|
|
55
42
|
## Contributing
|
|
56
43
|
|
data/_includes/footer.html
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div class="container">
|
|
3
3
|
<div class="row">
|
|
4
4
|
<div class="col-12 col-lg">
|
|
5
|
-
<p class="text-justify">Made with <i class="
|
|
5
|
+
<p class="text-justify">Made with <i class="fa-solid fa-heart"></i> and <i class="fa-solid fa-mug-saucer"></i>. Powered by <a href="https://jekyllrb.com/">Jekyll</a> and <a href="https://github.com/vmsilvamolina/whiteblog-theme">whiteblog-theme</a>.</p>
|
|
6
6
|
</div>
|
|
7
7
|
</div>
|
|
8
8
|
</div>
|
data/_includes/head.html
CHANGED
|
@@ -5,10 +5,11 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
6
6
|
|
|
7
7
|
<!-- Bootstrap CSS -->
|
|
8
|
-
<link
|
|
8
|
+
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
|
|
9
9
|
|
|
10
10
|
<!-- FontAwesome-->
|
|
11
|
-
<
|
|
11
|
+
<script src="https://kit.fontawesome.com/3726080491.js" crossorigin="anonymous"></script>
|
|
12
|
+
|
|
12
13
|
|
|
13
14
|
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
|
|
14
15
|
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | relative_url }}">
|
data/_includes/header.html
CHANGED
|
@@ -1,37 +1,27 @@
|
|
|
1
|
-
<
|
|
2
|
-
<div class="container">
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
<
|
|
7
|
-
</
|
|
8
|
-
<div class="
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
{%
|
|
19
|
-
{%
|
|
20
|
-
{% endif %}
|
|
1
|
+
<nav class="navbar navbar-expand-lg bg-body-tertiary">
|
|
2
|
+
<div class="container-fluid container">
|
|
3
|
+
<a class="navbar-brand" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
|
|
4
|
+
<div class="justify-content-end">
|
|
5
|
+
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
|
6
|
+
<span class="navbar-toggler-icon"></span>
|
|
7
|
+
</button>
|
|
8
|
+
<div class="collapse navbar-collapse justify-content-end" id="navbarNav">
|
|
9
|
+
<ul class="navbar-nav">
|
|
10
|
+
{% assign default_paths = site.pages | map: "path" %}
|
|
11
|
+
{% assign page_paths = site.header_pages | default: default_paths %}
|
|
12
|
+
{% if page_paths %}
|
|
13
|
+
{% for path in page_paths %}
|
|
14
|
+
{% assign my_page = site.pages | where: "path", path | first %}
|
|
15
|
+
{% if my_page.title %}
|
|
16
|
+
<li class="nav-item"><a class="nav-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a></li>
|
|
17
|
+
{% endif %}
|
|
18
|
+
{% endfor %}
|
|
19
|
+
{% endif %}
|
|
21
20
|
</ul>
|
|
22
21
|
</div>
|
|
23
22
|
</div>
|
|
24
23
|
</div>
|
|
25
|
-
</
|
|
26
|
-
<div
|
|
27
|
-
<
|
|
28
|
-
<a class="navbar-brand d-flex align-items-center" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
|
|
29
|
-
<div data-toggle="collapse" data-target="#navbarHeader" class="navbar-toggler-icon" id="nav-icon">
|
|
30
|
-
<span></span>
|
|
31
|
-
<span></span>
|
|
32
|
-
<span></span>
|
|
33
|
-
<span></span>
|
|
34
|
-
</div>
|
|
35
|
-
|
|
36
|
-
</div>
|
|
24
|
+
</nav>
|
|
25
|
+
<div>
|
|
26
|
+
<hr class="divider" aria-hidden="true">
|
|
37
27
|
</div>
|
data/_layouts/categories.html
CHANGED
|
@@ -11,7 +11,7 @@ title: Categories
|
|
|
11
11
|
{% capture category_name %}{{ category | first }}{% endcapture %}
|
|
12
12
|
<div id="#{{ category_name | slugize }}"></div>
|
|
13
13
|
<p></p>
|
|
14
|
-
<
|
|
14
|
+
<h5 style='color:white !important;'><a class="badge badge-{{ category_name }}">{{ category_name }}</a></h5>
|
|
15
15
|
<a name="{{ category_name | slugize }}"></a>
|
|
16
16
|
{% for post in site.categories[category_name] %}
|
|
17
17
|
<article class="archive-item">
|
data/_layouts/default.html
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
<!-- jQuery, Popper.js, Bootstrap JS -->
|
|
21
21
|
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
|
|
22
22
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js" integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut" crossorigin="anonymous"></script>
|
|
23
|
-
<script src="https://
|
|
23
|
+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
|
|
24
24
|
|
|
25
25
|
</body>
|
|
26
26
|
|
data/_layouts/home.html
CHANGED
|
@@ -2,35 +2,33 @@
|
|
|
2
2
|
layout: default
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
<
|
|
6
|
-
|
|
7
|
-
</header>
|
|
5
|
+
<article class="post">
|
|
6
|
+
<div id="content">
|
|
8
7
|
|
|
9
|
-
|
|
8
|
+
{% assign posts = site.posts %}
|
|
10
9
|
|
|
11
|
-
|
|
10
|
+
<ul class="list-unstyled m-0 posts-list">
|
|
11
|
+
{% assign date_format = "%b %-d, %Y" %}
|
|
12
|
+
{% for post in posts %}
|
|
13
|
+
<li class="py-2">
|
|
12
14
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
<li class="py-2">
|
|
15
|
+
<h1 class="mt-1 mb-3 h3 title-post-resume underline">
|
|
16
|
+
<a class="title-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
|
|
17
|
+
</h1>
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
<a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
|
|
20
|
-
</h1>
|
|
19
|
+
<span class="text-secondary">{{ post.date | date: date_format }}</span>
|
|
21
20
|
|
|
22
|
-
|
|
21
|
+
<div class="text-justify">
|
|
22
|
+
{{ post.excerpt }}
|
|
23
|
+
</div>
|
|
24
|
+
</li>
|
|
25
|
+
{% endfor %}
|
|
26
|
+
</ul>
|
|
23
27
|
|
|
24
|
-
<div class="text-justify">
|
|
25
|
-
{{ post.excerpt }}
|
|
26
|
-
</div>
|
|
27
|
-
</li>
|
|
28
|
-
{% endfor %}
|
|
29
|
-
</ul>
|
|
30
28
|
|
|
29
|
+
{% if site.plugins contains "jekyll-feed" %}
|
|
30
|
+
<a href="{{ "/feed.xml" | relative_url }}"><div id="rss-icon" class="mb-2"></div></a>
|
|
31
|
+
{% endif %}
|
|
31
32
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
{% endif %}
|
|
35
|
-
|
|
36
|
-
</div>
|
|
33
|
+
</div>
|
|
34
|
+
</article>
|
data/_layouts/post.html
CHANGED
data/_pages/search.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Search
|
|
3
|
+
author: Victor Silva
|
|
4
|
+
layout: default
|
|
5
|
+
permalink: /search/
|
|
6
|
+
---
|
|
7
|
+
<article class="post">
|
|
8
|
+
<h1 class="underline">Search</h1>
|
|
9
|
+
<div id="search-container">
|
|
10
|
+
<input type="text" id="search-input" placeholder="search...">
|
|
11
|
+
<ul id="results-container"></ul>
|
|
12
|
+
</div>
|
|
13
|
+
</article>
|
|
14
|
+
|
|
15
|
+
<script src="/assets/jekyll-search.min.js" type="text/javascript"></script>
|
|
16
|
+
<script type="text/javascript">
|
|
17
|
+
SimpleJekyllSearch({
|
|
18
|
+
searchInput: document.getElementById('search-input'),
|
|
19
|
+
resultsContainer: document.getElementById('results-container'),
|
|
20
|
+
json: '/search.json',
|
|
21
|
+
searchResultTemplate: '<li><a href="{url}" title="{desc}">{title}</a></li>',
|
|
22
|
+
limit: 50,
|
|
23
|
+
})
|
|
24
|
+
</script>
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
@import url('https://fonts.googleapis.com/css2?family=Nunito&Fira+Sans&family=Montserrat&display=swap');
|
|
2
2
|
|
|
3
3
|
//Color palette variables:
|
|
4
|
-
$
|
|
5
|
-
$
|
|
6
|
-
$
|
|
4
|
+
$firstColor: #F5F5F5;
|
|
5
|
+
$secondColor: #F5F5F5;
|
|
6
|
+
$thirdColor: #3FC1C9;
|
|
7
|
+
$fourthColor: #FC5185;
|
|
7
8
|
|
|
8
9
|
body {
|
|
9
|
-
background-color: $
|
|
10
|
+
background-color: $firstColor;
|
|
10
11
|
font-family: "Montserrat";
|
|
11
12
|
overflow-y: scroll;
|
|
12
13
|
position: relative;
|
|
@@ -18,14 +19,16 @@ main {
|
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
.container {
|
|
21
|
-
padding: 0em;
|
|
22
|
+
padding: 0em;
|
|
23
|
+
max-width: 80% !important;
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
.navbar {
|
|
25
|
-
background-color: $
|
|
26
|
-
padding:
|
|
27
|
+
background-color: $secondColor !important;
|
|
28
|
+
padding: 30px 0px !important;
|
|
27
29
|
a {
|
|
28
30
|
font-weight: 600;
|
|
31
|
+
// color: $firstColor !important;
|
|
29
32
|
}
|
|
30
33
|
}
|
|
31
34
|
|
|
@@ -77,6 +80,18 @@ main {
|
|
|
77
80
|
height: 3.5rem;
|
|
78
81
|
}
|
|
79
82
|
|
|
83
|
+
.divider {
|
|
84
|
+
border-color: $fourthColor;
|
|
85
|
+
margin: 0px;
|
|
86
|
+
max-width: 80%;
|
|
87
|
+
margin: 0 auto;
|
|
88
|
+
opacity: 1;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.title-link {
|
|
92
|
+
text-decoration: none !important;
|
|
93
|
+
}
|
|
94
|
+
|
|
80
95
|
.title-post-resume a {
|
|
81
96
|
color: #2F343D !important;
|
|
82
97
|
}
|
|
@@ -91,10 +106,6 @@ div#content.text-justify {
|
|
|
91
106
|
padding-bottom: 5em;
|
|
92
107
|
}
|
|
93
108
|
|
|
94
|
-
.posts-list {
|
|
95
|
-
padding-top: 1.5rem!important;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
109
|
#content .py-2 {
|
|
99
110
|
padding-top: 1.5rem!important;
|
|
100
111
|
}
|
|
@@ -121,8 +132,17 @@ blockquote {
|
|
|
121
132
|
.underline {
|
|
122
133
|
font-family: "Nunito";
|
|
123
134
|
display: table;
|
|
124
|
-
background: linear-gradient(180deg,rgba(255,255,255,0) 65%, $
|
|
125
|
-
}
|
|
135
|
+
background: linear-gradient(180deg,rgba(255,255,255,0) 65%, $thirdColor 8px);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
#search-input {
|
|
139
|
+
margin: 2em 0em;
|
|
140
|
+
width: 100%;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
input {
|
|
144
|
+
font-family: "Montserrat" !important;
|
|
145
|
+
}
|
|
126
146
|
|
|
127
147
|
.post .text-secondary {
|
|
128
148
|
margin-bottom: 8px !important;
|
|
@@ -136,6 +156,10 @@ blockquote {
|
|
|
136
156
|
}
|
|
137
157
|
}
|
|
138
158
|
|
|
159
|
+
.previous {
|
|
160
|
+
text-align: left !important;
|
|
161
|
+
}
|
|
162
|
+
|
|
139
163
|
#post {
|
|
140
164
|
flex-grow: 1;
|
|
141
165
|
position: relative;
|
|
@@ -156,7 +180,7 @@ blockquote {
|
|
|
156
180
|
|
|
157
181
|
a.badge {
|
|
158
182
|
color: #fff;
|
|
159
|
-
background-color:
|
|
183
|
+
background-color: $fourthColor;
|
|
160
184
|
}
|
|
161
185
|
|
|
162
186
|
/* Categories: Effect */
|
data/_sass/whiteblog-theme.scss
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a="function"==typeof require&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o<r.length;o++)s(r[o]);return s}({1:[function(require,module,exports){"use strict";function load(location,callback){var xhr;xhr=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP"),xhr.open("GET",location,!0),xhr.onreadystatechange=function(){if(4===xhr.readyState&&200===xhr.status)try{callback(null,JSON.parse(xhr.responseText))}catch(err){callback(err,null)}},xhr.send()}module.exports={load:load}},{}],2:[function(require,module,exports){"use strict";module.exports=function OptionsValidator(params){function validateParams(params){return params?void 0!==params.required&¶ms.required instanceof Array:!1}if(!validateParams(params))throw new Error("-- OptionsValidator: required options missing");if(!(this instanceof OptionsValidator))return new OptionsValidator(params);var requiredOptions=params.required;this.getRequiredOptions=function(){return requiredOptions},this.validate=function(parameters){var errors=[];return requiredOptions.forEach(function(requiredOptionName){void 0===parameters[requiredOptionName]&&errors.push(requiredOptionName)}),errors}}},{}],3:[function(require,module,exports){"use strict";function put(data){return isObject(data)?addObject(data):isArray(data)?addArray(data):void 0}function clear(){return data.length=0,data}function get(){return data}function isObject(obj){return!!obj&&"[object Object]"===Object.prototype.toString.call(obj)}function isArray(obj){return!!obj&&"[object Array]"===Object.prototype.toString.call(obj)}function addObject(_data){return data.push(_data),data}function addArray(_data){for(var added=[],i=0;i<_data.length;i++)isObject(_data[i])&&added.push(addObject(_data[i]));return added}function search(crit){return crit?findMatches(data,crit,opt.searchStrategy,opt):[]}function setOptions(_opt){opt=_opt||{},opt.fuzzy=_opt.fuzzy||!1,opt.limit=_opt.limit||10,opt.searchStrategy=_opt.fuzzy?FuzzySearchStrategy:LiteralSearchStrategy}function findMatches(data,crit,strategy,opt){for(var matches=[],i=0;i<data.length&&matches.length<opt.limit;i++){var match=findMatchesInObject(data[i],crit,strategy,opt);match&&matches.push(match)}return matches}function findMatchesInObject(obj,crit,strategy,opt){for(var key in obj)if(!isExcluded(obj[key],opt.exclude)&&strategy.matches(obj[key],crit))return obj}function isExcluded(term,excludedTerms){var excluded=!1;excludedTerms=excludedTerms||[];for(var i=0;i<excludedTerms.length;i++){var excludedTerm=excludedTerms[i];!excluded&&new RegExp(term).test(excludedTerm)&&(excluded=!0)}return excluded}module.exports={put:put,clear:clear,get:get,search:search,setOptions:setOptions};var FuzzySearchStrategy=require("./SearchStrategies/FuzzySearchStrategy"),LiteralSearchStrategy=require("./SearchStrategies/LiteralSearchStrategy"),data=[],opt={};opt.fuzzy=!1,opt.limit=10,opt.searchStrategy=opt.fuzzy?FuzzySearchStrategy:LiteralSearchStrategy},{"./SearchStrategies/FuzzySearchStrategy":4,"./SearchStrategies/LiteralSearchStrategy":5}],4:[function(require,module,exports){"use strict";function FuzzySearchStrategy(){function makeFuzzy(string){return string=string.split("").join(".*?"),string=string.replace("??","?"),new RegExp(string,"gi")}this.matches=function(string,crit){return"string"!=typeof string||"string"!=typeof crit?!1:(string=string.trim(),!!makeFuzzy(crit).test(string))}}module.exports=new FuzzySearchStrategy},{}],5:[function(require,module,exports){"use strict";function LiteralSearchStrategy(){function matchesString(string,crit){return string.toLowerCase().indexOf(crit.toLowerCase())>=0}this.matches=function(string,crit){return"string"!=typeof string?!1:(string=string.trim(),matchesString(string,crit))}}module.exports=new LiteralSearchStrategy},{}],6:[function(require,module,exports){"use strict";function setOptions(_options){options.pattern=_options.pattern||options.pattern,options.template=_options.template||options.template,"function"==typeof _options.middleware&&(options.middleware=_options.middleware)}function compile(data){return options.template.replace(options.pattern,function(match,prop){var value=options.middleware(prop,data[prop],options.template);return void 0!==value?value:data[prop]||match})}module.exports={compile:compile,setOptions:setOptions};var options={};options.pattern=/\{(.*?)\}/g,options.template="",options.middleware=function(){}},{}],7:[function(require,module,exports){!function(window,document,undefined){"use strict";function initWithJSON(json){repository.put(json),registerInput()}function initWithURL(url){jsonLoader.load(url,function(err,json){err&&throwError("failed to get JSON ("+url+")"),initWithJSON(json)})}function emptyResultsContainer(){options.resultsContainer.innerHTML=""}function appendToResultsContainer(text){options.resultsContainer.innerHTML+=text}function registerInput(){options.searchInput.addEventListener("keyup",function(e){var key=e.which,query=e.target.value;isWhitelistedKey(key)&&isValidQuery(query)&&(emptyResultsContainer(),render(repository.search(query)))})}function render(results){if(0===results.length)return appendToResultsContainer(options.noResultsText);for(var i=0;i<results.length;i++)appendToResultsContainer(templater.compile(results[i]))}function isValidQuery(query){return query&&query.length>0}function isWhitelistedKey(key){return-1===[13,16,20,37,38,39,40,91].indexOf(key)}function throwError(message){throw new Error("SimpleJekyllSearch --- "+message)}var options={searchInput:null,resultsContainer:null,json:[],searchResultTemplate:'<li><a href="{url}" title="{desc}">{title}</a></li>',templateMiddleware:function(){},noResultsText:"No results found",limit:10,fuzzy:!1,exclude:[]},requiredOptions=["searchInput","resultsContainer","json"],templater=require("./Templater"),repository=require("./Repository"),jsonLoader=require("./JSONLoader"),optionsValidator=require("./OptionsValidator")({required:requiredOptions}),utils=require("./utils");window.SimpleJekyllSearch=function(_options){var errors=optionsValidator.validate(_options);errors.length>0&&throwError("You must specify the following required options: "+requiredOptions),options=utils.merge(options,_options),templater.setOptions({template:options.searchResultTemplate,middleware:options.templateMiddleware}),repository.setOptions({fuzzy:options.fuzzy,limit:options.limit}),utils.isJSON(options.json)?initWithJSON(options.json):initWithURL(options.json)},window.SimpleJekyllSearch.init=window.SimpleJekyllSearch}(window,document)},{"./JSONLoader":1,"./OptionsValidator":2,"./Repository":3,"./Templater":6,"./utils":8}],8:[function(require,module,exports){"use strict";function merge(defaultParams,mergeParams){var mergedOptions={};for(var option in defaultParams)mergedOptions[option]=defaultParams[option],void 0!==mergeParams[option]&&(mergedOptions[option]=mergeParams[option]);return mergedOptions}function isJSON(json){try{return json instanceof Object&&JSON.parse(JSON.stringify(json))?!0:!1}catch(e){return!1}}module.exports={merge:merge,isJSON:isJSON}},{}]},{},[7]);
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: whiteblog-theme
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Victor Silva
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-
|
|
11
|
+
date: 2024-03-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|
|
@@ -66,20 +66,6 @@ dependencies:
|
|
|
66
66
|
- - "~>"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '0.16'
|
|
69
|
-
- !ruby/object:Gem::Dependency
|
|
70
|
-
name: jekyll-sitemap
|
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
|
72
|
-
requirements:
|
|
73
|
-
- - "~>"
|
|
74
|
-
- !ruby/object:Gem::Version
|
|
75
|
-
version: 1.5.1
|
|
76
|
-
type: :development
|
|
77
|
-
prerelease: false
|
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
-
requirements:
|
|
80
|
-
- - "~>"
|
|
81
|
-
- !ruby/object:Gem::Version
|
|
82
|
-
version: 1.5.1
|
|
83
69
|
description:
|
|
84
70
|
email:
|
|
85
71
|
- vmsilvamolina@gmail.com
|
|
@@ -101,9 +87,11 @@ files:
|
|
|
101
87
|
- _layouts/post.html
|
|
102
88
|
- _pages/categories.md
|
|
103
89
|
- _pages/github.md
|
|
90
|
+
- _pages/search.md
|
|
104
91
|
- _sass/whiteblog-theme.scss
|
|
105
92
|
- _sass/whiteblog-theme/_layout.scss
|
|
106
93
|
- _sass/whiteblog-theme/_syntax-highlighting.scss
|
|
94
|
+
- assets/jekyll-search.min.js
|
|
107
95
|
- assets/main.scss
|
|
108
96
|
homepage: https://github.com/vmsilvamolina/whiteblog-theme
|
|
109
97
|
licenses:
|