hydn 0.0.0
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 +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +208 -0
- data/_config.yml +87 -0
- data/_includes/aboutme.html +27 -0
- data/_includes/comment.html +19 -0
- data/_includes/editior.html +35 -0
- data/_includes/footer.html +12 -0
- data/_includes/header.html +15 -0
- data/_includes/navigation.html +14 -0
- data/_includes/post-author-list.html +13 -0
- data/_includes/postlist-item.html +17 -0
- data/_includes/profile.html +0 -0
- data/_includes/search.html +16 -0
- data/_layouts/all-categories.html +25 -0
- data/_layouts/all-posts.html +38 -0
- data/_layouts/all-series.html +27 -0
- data/_layouts/all-tags.html +22 -0
- data/_layouts/author-page.html +55 -0
- data/_layouts/category-page.html +19 -0
- data/_layouts/default.html +45 -0
- data/_layouts/home.html +34 -0
- data/_layouts/page.html +5 -0
- data/_layouts/post.html +60 -0
- data/_layouts/search.html +37 -0
- data/_layouts/series-page.html +25 -0
- data/_sass/hydn/about_layout.scss +66 -0
- data/_sass/hydn/code.scss +194 -0
- data/_sass/hydn/footer.scss +33 -0
- data/_sass/hydn/header.scss +104 -0
- data/_sass/hydn/layout.scss +29 -0
- data/_sass/hydn/main.scss +48 -0
- data/_sass/hydn/nav.scss +0 -0
- data/_sass/hydn/postlist-item.scss +9 -0
- data/_sass/hydn/tagpost.scss +7 -0
- data/_sass/hydn/typo.scss +209 -0
- data/_sass/hydn/variables.scss +89 -0
- data/assets/css/style.scss +4 -0
- data/assets/img/hydn/about.webp +0 -0
- data/assets/img/hydn/about_aboutme.png +0 -0
- data/assets/img/hydn/about_all.png +0 -0
- data/assets/img/hydn/about_category.png +0 -0
- data/assets/img/hydn/about_disqus.jpg +0 -0
- data/assets/img/hydn/about_disqus_screen.jpg +0 -0
- data/assets/img/hydn/about_editior.png +0 -0
- data/assets/img/hydn/about_editior_2.png +0 -0
- data/assets/img/hydn/about_help.png +0 -0
- data/assets/img/hydn/about_help_icon.png +0 -0
- data/assets/img/hydn/about_home.png +0 -0
- data/assets/img/hydn/about_hydn_logo.png +0 -0
- data/assets/img/hydn/about_menu.png +0 -0
- data/assets/img/hydn/about_readme.png +0 -0
- data/assets/img/hydn/about_search.png +0 -0
- data/assets/img/hydn/about_search_console.png +0 -0
- data/assets/img/hydn/about_search_console.screen_01.png +0 -0
- data/assets/img/hydn/about_search_console.screen_02.png +0 -0
- data/assets/img/hydn/about_search_screen.png +0 -0
- data/assets/img/hydn/about_series.png +0 -0
- data/assets/img/hydn/about_series_screen.png +0 -0
- data/assets/img/hydn/about_tag.png +0 -0
- data/assets/img/hydn/about_top_image.png +0 -0
- data/assets/img/hydn/about_whoami.jpg +0 -0
- data/assets/img/hydn/author_text.png +0 -0
- data/assets/img/hydn/default-profile.png +0 -0
- data/assets/img/hydn/forest.jpg +0 -0
- data/assets/img/hydn/lake.jpg +0 -0
- data/assets/img/hydn/menu_white_24dp.svg +1 -0
- data/assets/img/hydn/scarlet.jpg +0 -0
- data/assets/img/hydn/search.png +0 -0
- data/assets/img/hydn/snow.jpg +0 -0
- data/assets/img/hydn/title.webp +0 -0
- data/assets/img/hydn/work.jpg +0 -0
- data/assets/tipuesearch/css/normalize.css +461 -0
- data/assets/tipuesearch/css/tipuesearch.css +251 -0
- data/assets/tipuesearch/search.png +0 -0
- data/assets/tipuesearch/tipuesearch.min.js +178 -0
- data/assets/tipuesearch/tipuesearch_content.js +83 -0
- data/assets/tipuesearch/tipuesearch_set.js +80 -0
- metadata +192 -0
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
(function($){$.fn.tipuesearch=function(options){var set=$.extend({'contentLocation':'tipuesearch/tipuesearch_content.json','contextBuffer':60,'contextLength':60,'contextStart':90,'debug':false,'descriptiveWords':25,'highlightTerms':true,'liveContent':'*','liveDescription':'*','minimumLength':3,'mode':'static','newWindow':false,'show':9,'showContext':true,'showRelated':true,'showTime':true,'showTitleCount':true,'showURL':true,'wholeWords':true},options);return this.each(function(){var tipuesearch_in={pages:[]};$.ajaxSetup({async:false});var tipuesearch_t_c=0;$('#tipue_search_content').hide().html('<div class="tipue_search_spinner"><div class="tipue_search_rect1"></div><div class="tipue_search_rect2"></div><div class="rect3"></div></div>').show();if(set.mode=='live')
|
|
2
|
+
{for(var i=0;i<tipuesearch_pages.length;i++)
|
|
3
|
+
{$.get(tipuesearch_pages[i]).done(function(html)
|
|
4
|
+
{var cont=$(set.liveContent,html).text();cont=cont.replace(/\s+/g,' ');var desc=$(set.liveDescription,html).text();desc=desc.replace(/\s+/g,' ');var t_1=html.toLowerCase().indexOf('<title>');var t_2=html.toLowerCase().indexOf('</title>',t_1+7);if(t_1!=-1&&t_2!=-1)
|
|
5
|
+
{var tit=html.slice(t_1+7,t_2);}
|
|
6
|
+
else
|
|
7
|
+
{var tit=tipuesearch_string_1;}
|
|
8
|
+
tipuesearch_in.pages.push({"title":tit,"text":desc,"tags":cont,"url":tipuesearch_pages[i]});});}}
|
|
9
|
+
if(set.mode=='json')
|
|
10
|
+
{$.getJSON(set.contentLocation).done(function(json)
|
|
11
|
+
{tipuesearch_in=$.extend({},json);});}
|
|
12
|
+
if(set.mode=='static')
|
|
13
|
+
{tipuesearch_in=$.extend({},tipuesearch);}
|
|
14
|
+
var tipue_search_w='';if(set.newWindow)
|
|
15
|
+
{tipue_search_w=' target="_blank"';}
|
|
16
|
+
function getURLP(name)
|
|
17
|
+
{var _locSearch=location.search;var _splitted=(new RegExp('[?|&]'+name+'='+'([^&;]+?)(&|#|;|$)').exec(_locSearch)||[,""]);var searchString=_splitted[1].replace(/\+/g,'%20');try
|
|
18
|
+
{searchString=decodeURIComponent(searchString);}
|
|
19
|
+
catch(e)
|
|
20
|
+
{searchString=unescape(searchString);}
|
|
21
|
+
return searchString||null;}
|
|
22
|
+
if(getURLP('q'))
|
|
23
|
+
{$('#tipue_search_input').val(getURLP('q'));getTipueSearch(0,true);}
|
|
24
|
+
$(this).keyup(function(event)
|
|
25
|
+
{if(event.keyCode=='13')
|
|
26
|
+
{getTipueSearch(0,true);}});function getTipueSearch(start,replace)
|
|
27
|
+
{var out='';var show_replace=false;var show_stop=false;var standard=true;var c=0;found=[];var d_o=$('#tipue_search_input').val();var d=d_o.toLowerCase();d=$.trim(d);if((d.match("^\"")&&d.match("\"$"))||(d.match("^'")&&d.match("'$")))
|
|
28
|
+
{standard=false;}
|
|
29
|
+
var d_w=d.split(' ');if(standard)
|
|
30
|
+
{d='';for(var i=0;i<d_w.length;i++)
|
|
31
|
+
{var a_w=true;for(var f=0;f<tipuesearch_stop_words.length;f++)
|
|
32
|
+
{if(d_w[i]==tipuesearch_stop_words[f])
|
|
33
|
+
{a_w=false;show_stop=true;}}
|
|
34
|
+
if(a_w)
|
|
35
|
+
{d=d+' '+d_w[i];}}
|
|
36
|
+
d=$.trim(d);d_w=d.split(' ');}
|
|
37
|
+
else
|
|
38
|
+
{d=d.substring(1,d.length-1);}
|
|
39
|
+
if(d.length>=set.minimumLength)
|
|
40
|
+
{if(standard)
|
|
41
|
+
{if(replace)
|
|
42
|
+
{var d_r=d;for(var i=0;i<d_w.length;i++)
|
|
43
|
+
{for(var f=0;f<tipuesearch_replace.words.length;f++)
|
|
44
|
+
{if(d_w[i]==tipuesearch_replace.words[f].word)
|
|
45
|
+
{d=d.replace(d_w[i],tipuesearch_replace.words[f].replace_with);show_replace=true;}}}
|
|
46
|
+
d_w=d.split(' ');}
|
|
47
|
+
var d_t=d;for(var i=0;i<d_w.length;i++)
|
|
48
|
+
{for(var f=0;f<tipuesearch_stem.words.length;f++)
|
|
49
|
+
{if(d_w[i]==tipuesearch_stem.words[f].word)
|
|
50
|
+
{d_t=d_t+' '+tipuesearch_stem.words[f].stem;}}}
|
|
51
|
+
d_w=d_t.split(' ');for(var i=0;i<tipuesearch_in.pages.length;i++)
|
|
52
|
+
{var score=0;var s_t=tipuesearch_in.pages[i].text;for(var f=0;f<d_w.length;f++)
|
|
53
|
+
{if(set.wholeWords)
|
|
54
|
+
{var pat=new RegExp('\\b'+d_w[f]+'\\b','gi');}
|
|
55
|
+
else
|
|
56
|
+
{var pat=new RegExp(d_w[f],'gi');}
|
|
57
|
+
if(tipuesearch_in.pages[i].title.search(pat)!=-1)
|
|
58
|
+
{var m_c=tipuesearch_in.pages[i].title.match(pat).length;score+=(20*m_c);}
|
|
59
|
+
if(tipuesearch_in.pages[i].text.search(pat)!=-1)
|
|
60
|
+
{var m_c=tipuesearch_in.pages[i].text.match(pat).length;score+=(20*m_c);}
|
|
61
|
+
if(tipuesearch_in.pages[i].tags.search(pat)!=-1)
|
|
62
|
+
{var m_c=tipuesearch_in.pages[i].tags.match(pat).length;score+=(10*m_c);}
|
|
63
|
+
if(tipuesearch_in.pages[i].url.search(pat)!=-1)
|
|
64
|
+
{score+=20;}
|
|
65
|
+
if(score!=0)
|
|
66
|
+
{for(var e=0;e<tipuesearch_weight.weight.length;e++)
|
|
67
|
+
{if(tipuesearch_in.pages[i].url==tipuesearch_weight.weight[e].url)
|
|
68
|
+
{score+=tipuesearch_weight.weight[e].score;}}}
|
|
69
|
+
if(d_w[f].match('^-'))
|
|
70
|
+
{pat=new RegExp(d_w[f].substring(1),'i');if(tipuesearch_in.pages[i].title.search(pat)!=-1||tipuesearch_in.pages[i].text.search(pat)!=-1||tipuesearch_in.pages[i].tags.search(pat)!=-1)
|
|
71
|
+
{score=0;}}}
|
|
72
|
+
if(score!=0)
|
|
73
|
+
{found.push({"score":score,"title":tipuesearch_in.pages[i].title,"desc":s_t,"url":tipuesearch_in.pages[i].url});c++;}}}
|
|
74
|
+
else
|
|
75
|
+
{for(var i=0;i<tipuesearch_in.pages.length;i++)
|
|
76
|
+
{var score=0;var s_t=tipuesearch_in.pages[i].text;var pat=new RegExp(d,'gi');if(tipuesearch_in.pages[i].title.search(pat)!=-1)
|
|
77
|
+
{var m_c=tipuesearch_in.pages[i].title.match(pat).length;score+=(20*m_c);}
|
|
78
|
+
if(tipuesearch_in.pages[i].text.search(pat)!=-1)
|
|
79
|
+
{var m_c=tipuesearch_in.pages[i].text.match(pat).length;score+=(20*m_c);}
|
|
80
|
+
if(tipuesearch_in.pages[i].tags.search(pat)!=-1)
|
|
81
|
+
{var m_c=tipuesearch_in.pages[i].tags.match(pat).length;score+=(10*m_c);}
|
|
82
|
+
if(tipuesearch_in.pages[i].url.search(pat)!=-1)
|
|
83
|
+
{score+=20;}
|
|
84
|
+
if(score!=0)
|
|
85
|
+
{for(var e=0;e<tipuesearch_weight.weight.length;e++)
|
|
86
|
+
{if(tipuesearch_in.pages[i].url==tipuesearch_weight.weight[e].url)
|
|
87
|
+
{score+=tipuesearch_weight.weight[e].score;}}}
|
|
88
|
+
if(score!=0)
|
|
89
|
+
{found.push({"score":score,"title":tipuesearch_in.pages[i].title,"desc":s_t,"url":tipuesearch_in.pages[i].url});c++;}}}
|
|
90
|
+
if(c!=0)
|
|
91
|
+
{if(set.showTitleCount&&tipuesearch_t_c==0)
|
|
92
|
+
{var title=document.title;document.title='('+c+') '+title;tipuesearch_t_c++;}
|
|
93
|
+
if(show_replace)
|
|
94
|
+
{out+='<div id="tipue_search_warning">'+tipuesearch_string_2+' '+d+'. '+tipuesearch_string_3+' <a id="tipue_search_replaced">'+d_r+'</a></div>';}
|
|
95
|
+
if(c==1)
|
|
96
|
+
{out+='<div id="tipue_search_results_count">'+tipuesearch_string_4;}
|
|
97
|
+
else
|
|
98
|
+
{c_c=c.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");out+='<div id="tipue_search_results_count">'+c_c+' '+tipuesearch_string_5;}
|
|
99
|
+
if(set.showTime)
|
|
100
|
+
{var endTimer=new Date().getTime();var time=(endTimer-startTimer)/ 1000;out+=' ('+time.toFixed(2)+' '+tipuesearch_string_14+')';set.showTime=false;}
|
|
101
|
+
out+='</div>';found.sort(function(a,b){return b.score-a.score});var l_o=0;for(var i=0;i<found.length;i++)
|
|
102
|
+
{if(l_o>=start&&l_o<set.show+start)
|
|
103
|
+
{out+='<div class="tipue_search_content_title"><a href="'+found[i].url+'"'+tipue_search_w+'>'+found[i].title+'</a></div>';if(set.debug)
|
|
104
|
+
{out+='<div class="tipue_search_content_debug">Score: '+found[i].score+'</div>';}
|
|
105
|
+
if(set.showURL)
|
|
106
|
+
{var s_u=found[i].url.toLowerCase();if(s_u.indexOf('http://')==0)
|
|
107
|
+
{s_u=s_u.slice(7);}
|
|
108
|
+
out+='<div class="tipue_search_content_url"><a href="'+found[i].url+'"'+tipue_search_w+'>'+s_u+'</a></div>';}
|
|
109
|
+
if(found[i].desc)
|
|
110
|
+
{var t=found[i].desc;if(set.showContext)
|
|
111
|
+
{d_w=d.split(' ');var s_1=found[i].desc.toLowerCase().indexOf(d_w[0]);if(s_1>set.contextStart)
|
|
112
|
+
{var t_1=t.substr(s_1-set.contextBuffer);var s_2=t_1.indexOf(' ');t_1=t.substr(s_1-set.contextBuffer+s_2);t_1=$.trim(t_1);if(t_1.length>set.contextLength)
|
|
113
|
+
{t='... '+t_1;}}}
|
|
114
|
+
if(standard)
|
|
115
|
+
{d_w=d.split(' ');for(var f=0;f<d_w.length;f++)
|
|
116
|
+
{if(set.highlightTerms)
|
|
117
|
+
{var patr=new RegExp('('+d_w[f]+')','gi');t=t.replace(patr,"<h0011>$1<h0012>");}}}
|
|
118
|
+
else if(set.highlightTerms)
|
|
119
|
+
{var patr=new RegExp('('+d+')','gi');t=t.replace(patr,"<span class=\"tipue_search_content_bold\">$1</span>");}
|
|
120
|
+
var t_d='';var t_w=t.split(' ');if(t_w.length<set.descriptiveWords)
|
|
121
|
+
{t_d=t;}
|
|
122
|
+
else
|
|
123
|
+
{for(var f=0;f<set.descriptiveWords;f++)
|
|
124
|
+
{t_d+=t_w[f]+' ';}}
|
|
125
|
+
t_d=$.trim(t_d);if(t_d.charAt(t_d.length-1)!='.')
|
|
126
|
+
{t_d+=' ...';}
|
|
127
|
+
t_d=t_d.replace(/h0011/g,'span class=\"tipue_search_content_bold\"');t_d=t_d.replace(/h0012/g,'/span');out+='<div class="tipue_search_content_text">'+t_d+'</div>';}}
|
|
128
|
+
l_o++;}
|
|
129
|
+
if(set.showRelated&&standard)
|
|
130
|
+
{f=0;for(var i=0;i<tipuesearch_related.searches.length;i++)
|
|
131
|
+
{if(d==tipuesearch_related.searches[i].search)
|
|
132
|
+
{if(show_replace)
|
|
133
|
+
{d_o=d;}
|
|
134
|
+
if(!f)
|
|
135
|
+
{out+='<div class="tipue_search_related_title">'+tipuesearch_string_15+' <span class="tipue_search_related_bold">'+d_o+'</span></div><div class="tipue_search_related_cols">';}
|
|
136
|
+
out+='<div class="tipue_search_related_text"><a class="tipue_search_related" id="'+tipuesearch_related.searches[i].related+'">';if(tipuesearch_related.searches[i].before)
|
|
137
|
+
{out+='<span class="tipue_search_related_before">'+tipuesearch_related.searches[i].before+'</span> ';}
|
|
138
|
+
out+=tipuesearch_related.searches[i].related;if(tipuesearch_related.searches[i].after)
|
|
139
|
+
{out+=' <span class="tipue_search_related_after">'+tipuesearch_related.searches[i].after+'</span>';}
|
|
140
|
+
out+='</a></div>';f++;}}
|
|
141
|
+
if(f)
|
|
142
|
+
{out+='</div>';}}
|
|
143
|
+
if(c>set.show)
|
|
144
|
+
{var pages=Math.ceil(c / set.show);var page=(start / set.show);out+='<nav><div id="tipue_search_foot"><ul id="tipue_search_foot_boxes">';if(start>0)
|
|
145
|
+
{out+='<li role="navigation"><a class="tipue_search_foot_box" accesskey="b" id="'+(start-set.show)+'_'+replace+'">'+tipuesearch_string_6+'</a></li>';}
|
|
146
|
+
if(page<=2)
|
|
147
|
+
{var p_b=pages;if(pages>3)
|
|
148
|
+
{p_b=3;}
|
|
149
|
+
for(var f=0;f<p_b;f++)
|
|
150
|
+
{if(f==page)
|
|
151
|
+
{out+='<li class="current" role="navigation">'+(f+1)+'</li>';}
|
|
152
|
+
else
|
|
153
|
+
{out+='<li role="navigation"><a class="tipue_search_foot_box" id="'+(f*set.show)+'_'+replace+'">'+(f+1)+'</a></li>';}}}
|
|
154
|
+
else
|
|
155
|
+
{var p_b=page+2;if(p_b>pages)
|
|
156
|
+
{p_b=pages;}
|
|
157
|
+
for(var f=page-1;f<p_b;f++)
|
|
158
|
+
{if(f==page)
|
|
159
|
+
{out+='<li class="current" role="navigation">'+(f+1)+'</li>';}
|
|
160
|
+
else
|
|
161
|
+
{out+='<li role="navigation"><a class="tipue_search_foot_box" id="'+(f*set.show)+'_'+replace+'">'+(f+1)+'</a></li>';}}}
|
|
162
|
+
if(page+1!=pages)
|
|
163
|
+
{out+='<li role="navigation"><a class="tipue_search_foot_box" accesskey="m" id="'+(start+set.show)+'_'+replace+'">'+tipuesearch_string_7+'</a></li>';}
|
|
164
|
+
out+='</ul></div></nav>';}}
|
|
165
|
+
else
|
|
166
|
+
{out+='<div id="tipue_search_warning">'+tipuesearch_string_8+'</div>';}}
|
|
167
|
+
else
|
|
168
|
+
{if(show_stop)
|
|
169
|
+
{out+='<div id="tipue_search_warning">'+tipuesearch_string_8+'. '+tipuesearch_string_9+'</div>';}
|
|
170
|
+
else
|
|
171
|
+
{out+='<div id="tipue_search_warning">'+tipuesearch_string_10+'</div>';if(set.minimumLength==1)
|
|
172
|
+
{out+='<div id="tipue_search_warning">'+tipuesearch_string_11+'</div>';}
|
|
173
|
+
else
|
|
174
|
+
{out+='<div id="tipue_search_warning">'+tipuesearch_string_12+' '+set.minimumLength+' '+tipuesearch_string_13+'</div>';}}}
|
|
175
|
+
$('#tipue_search_content').hide().html(out).slideDown(200);$('#tipue_search_replaced').click(function()
|
|
176
|
+
{getTipueSearch(0,false);});$('.tipue_search_related').click(function()
|
|
177
|
+
{$('#tipue_search_input').val($(this).attr('id'));getTipueSearch(0,true);});$('.tipue_search_foot_box').click(function()
|
|
178
|
+
{var id_v=$(this).attr('id');var id_a=id_v.split('_');getTipueSearch(parseInt(id_a[0]),id_a[1]);});}});};})(jQuery);
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
---
|
|
2
|
+
# Content index for Tipue Search
|
|
3
|
+
# https://github.com/jekylltools/jekyll-tipue-search
|
|
4
|
+
# v1.4
|
|
5
|
+
layout: null
|
|
6
|
+
---
|
|
7
|
+
{%- assign index = "" | split: "" -%}
|
|
8
|
+
{%- assign excluded_files = site.tipue_search.exclude.files -%}
|
|
9
|
+
{%- assign excluded_tags = site.tipue_search.exclude.tags | uniq -%}
|
|
10
|
+
{%- assign excluded_categories = site.tipue_search.exclude.categories | uniq -%}
|
|
11
|
+
{%- assign excluded_taxonomies = excluded_tags | concat: excluded_categories | uniq -%}
|
|
12
|
+
{%- for post in site.posts -%}
|
|
13
|
+
{%- unless post.exclude_from_search == true or excluded_files contains post.path -%}
|
|
14
|
+
{%- assign has_excluded_taxonomy = false -%}
|
|
15
|
+
{%- for tag in post.tags -%}
|
|
16
|
+
{%- if excluded_taxonomies contains tag -%}
|
|
17
|
+
{%- assign has_excluded_taxonomy = true -%}
|
|
18
|
+
{%- endif -%}
|
|
19
|
+
{%- endfor -%}
|
|
20
|
+
{%- for category in post.categories -%}
|
|
21
|
+
{%- if excluded_taxonomies contains category -%}
|
|
22
|
+
{%- assign has_excluded_taxonomy = true -%}
|
|
23
|
+
{%- endif -%}
|
|
24
|
+
{%- endfor -%}
|
|
25
|
+
{%- unless has_excluded_taxonomy == true -%}
|
|
26
|
+
{%- assign index = index | push: post | uniq -%}
|
|
27
|
+
{%- endunless -%}
|
|
28
|
+
{%- endunless -%}
|
|
29
|
+
{%- endfor -%}
|
|
30
|
+
{%- if site.tipue_search.include.pages == true -%}
|
|
31
|
+
{%- for page in site.html_pages -%}
|
|
32
|
+
{%- unless page.exclude_from_search == true or excluded_files contains page.path -%}
|
|
33
|
+
{%- assign has_excluded_taxonomy = false -%}
|
|
34
|
+
{%- for tag in page.tags -%}
|
|
35
|
+
{%- if excluded_taxonomies contains tag -%}
|
|
36
|
+
{%- assign has_excluded_taxonomy = true -%}
|
|
37
|
+
{%- endif -%}
|
|
38
|
+
{%- endfor -%}
|
|
39
|
+
{%- for category in page.categories -%}
|
|
40
|
+
{%- if excluded_taxonomies contains category -%}
|
|
41
|
+
{%- assign has_excluded_taxonomy = true -%}
|
|
42
|
+
{%- endif -%}
|
|
43
|
+
{%- endfor -%}
|
|
44
|
+
{%- unless has_excluded_taxonomy == true -%}
|
|
45
|
+
{%- assign index = index | push: page | uniq -%}
|
|
46
|
+
{%- endunless -%}
|
|
47
|
+
{%- endunless -%}
|
|
48
|
+
{%- endfor -%}
|
|
49
|
+
{%- endif -%}
|
|
50
|
+
{%- for collection in site.tipue_search.include.collections -%}
|
|
51
|
+
{%- assign documents = site.documents | where:"collection",collection -%}
|
|
52
|
+
{%- for document in documents -%}
|
|
53
|
+
{%- unless document.exclude_from_search == true or excluded_files contains document.path -%}
|
|
54
|
+
{%- assign has_excluded_taxonomy = false -%}
|
|
55
|
+
{%- for tag in document.tags -%}
|
|
56
|
+
{%- if excluded_taxonomies contains tag -%}
|
|
57
|
+
{%- assign has_excluded_taxonomy = true -%}
|
|
58
|
+
{%- endif -%}
|
|
59
|
+
{%- endfor -%}
|
|
60
|
+
{%- for category in document.categories -%}
|
|
61
|
+
{%- if excluded_taxonomies contains category -%}
|
|
62
|
+
{%- assign has_excluded_taxonomy = true -%}
|
|
63
|
+
{%- endif -%}
|
|
64
|
+
{%- endfor -%}
|
|
65
|
+
{%- unless has_excluded_taxonomy == true -%}
|
|
66
|
+
{%- assign index = index | push: document | uniq -%}
|
|
67
|
+
{%- endunless -%}
|
|
68
|
+
{%- endunless -%}
|
|
69
|
+
{%- endfor -%}
|
|
70
|
+
{%- endfor -%}
|
|
71
|
+
var tipuesearch = {"pages": [
|
|
72
|
+
{%- for document in index -%}
|
|
73
|
+
{%- assign tags = document.tags | uniq -%}
|
|
74
|
+
{%- assign categories = document.categories | uniq -%}
|
|
75
|
+
{%- assign taxonomies = tags | concat: categories | uniq -%}
|
|
76
|
+
{
|
|
77
|
+
"title": {{ document.title | smartify | strip_html | normalize_whitespace | jsonify }},
|
|
78
|
+
"text": {{ document.content | strip_html | normalize_whitespace | jsonify }},
|
|
79
|
+
"tags": {{ taxonomies | join: " " | normalize_whitespace | jsonify }},
|
|
80
|
+
"url": {{ document.url | relative_url | jsonify }}
|
|
81
|
+
}{%- unless forloop.last -%},{%- endunless -%}
|
|
82
|
+
{%- endfor -%}
|
|
83
|
+
]};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
|
|
2
|
+
/*
|
|
3
|
+
Tipue Search 6.1
|
|
4
|
+
Copyright (c) 2017 Tipue
|
|
5
|
+
Tipue Search is released under the MIT License
|
|
6
|
+
http://www.tipue.com/search
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
/*
|
|
11
|
+
Stop words
|
|
12
|
+
Stop words list from http://www.ranks.nl/stopwords
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
var tipuesearch_stop_words = ["a", "about", "above", "after", "again", "against", "all", "am", "an", "and", "any", "are", "aren't", "as", "at", "be", "because", "been", "before", "being", "below", "between", "both", "but", "by", "can't", "cannot", "could", "couldn't", "did", "didn't", "do", "does", "doesn't", "doing", "don't", "down", "during", "each", "few", "for", "from", "further", "had", "hadn't", "has", "hasn't", "have", "haven't", "having", "he", "he'd", "he'll", "he's", "her", "here", "here's", "hers", "herself", "him", "himself", "his", "how", "how's", "i", "i'd", "i'll", "i'm", "i've", "if", "in", "into", "is", "isn't", "it", "it's", "its", "itself", "let's", "me", "more", "most", "mustn't", "my", "myself", "no", "nor", "not", "of", "off", "on", "once", "only", "or", "other", "ought", "our", "ours", "ourselves", "out", "over", "own", "same", "shan't", "she", "she'd", "she'll", "she's", "should", "shouldn't", "so", "some", "such", "than", "that", "that's", "the", "their", "theirs", "them", "themselves", "then", "there", "there's", "these", "they", "they'd", "they'll", "they're", "they've", "this", "those", "through", "to", "too", "under", "until", "up", "very", "was", "wasn't", "we", "we'd", "we'll", "we're", "we've", "were", "weren't", "what", "what's", "when", "when's", "where", "where's", "which", "while", "who", "who's", "whom", "why", "why's", "with", "won't", "would", "wouldn't", "you", "you'd", "you'll", "you're", "you've", "your", "yours", "yourself", "yourselves"];
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
// Word replace
|
|
19
|
+
|
|
20
|
+
var tipuesearch_replace = {'words': [
|
|
21
|
+
{'word': 'tip', 'replace_with': 'tipue'},
|
|
22
|
+
{'word': 'javscript', 'replace_with': 'javascript'},
|
|
23
|
+
{'word': 'jqeury', 'replace_with': 'jquery'}
|
|
24
|
+
]};
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
// Weighting
|
|
28
|
+
|
|
29
|
+
var tipuesearch_weight = {'weight': [
|
|
30
|
+
{'url': 'http://www.tipue.com', 'score': 20},
|
|
31
|
+
{'url': 'http://www.tipue.com/search', 'score': 30},
|
|
32
|
+
{'url': 'http://www.tipue.com/is', 'score': 10}
|
|
33
|
+
]};
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
// Illogical stemming
|
|
37
|
+
|
|
38
|
+
var tipuesearch_stem = {'words': [
|
|
39
|
+
{'word': 'e-mail', 'stem': 'email'},
|
|
40
|
+
{'word': 'javascript', 'stem': 'jquery'},
|
|
41
|
+
{'word': 'javascript', 'stem': 'js'}
|
|
42
|
+
]};
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
// Related searches
|
|
46
|
+
|
|
47
|
+
var tipuesearch_related = {'searches': [
|
|
48
|
+
{'search': 'tipue', 'related': 'Tipue Search'},
|
|
49
|
+
{'search': 'tipue', 'before': 'Tipue Search', 'related': 'Getting Started'},
|
|
50
|
+
{'search': 'tipue', 'before': 'Tipue', 'related': 'jQuery'},
|
|
51
|
+
{'search': 'tipue', 'before': 'Tipue', 'related': 'Blog'}
|
|
52
|
+
]};
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
// Internal strings
|
|
56
|
+
|
|
57
|
+
var tipuesearch_string_1 = 'No title';
|
|
58
|
+
var tipuesearch_string_2 = 'Showing results for';
|
|
59
|
+
var tipuesearch_string_3 = 'Search instead for';
|
|
60
|
+
var tipuesearch_string_4 = '1 result';
|
|
61
|
+
var tipuesearch_string_5 = 'results';
|
|
62
|
+
var tipuesearch_string_6 = 'Back';
|
|
63
|
+
var tipuesearch_string_7 = 'More';
|
|
64
|
+
var tipuesearch_string_8 = 'Nothing found.';
|
|
65
|
+
var tipuesearch_string_9 = 'Common words are largely ignored.';
|
|
66
|
+
var tipuesearch_string_10 = 'Search too short';
|
|
67
|
+
var tipuesearch_string_11 = 'Should be one character or more.';
|
|
68
|
+
var tipuesearch_string_12 = 'Should be';
|
|
69
|
+
var tipuesearch_string_13 = 'characters or more.';
|
|
70
|
+
var tipuesearch_string_14 = 'seconds';
|
|
71
|
+
var tipuesearch_string_15 = 'Searches related to';
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
// Internals
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
// Timer for showTime
|
|
78
|
+
|
|
79
|
+
var startTimer = new Date().getTime();
|
|
80
|
+
|
metadata
ADDED
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: hydn
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- CYAN4S
|
|
8
|
+
- LeeSangBeom
|
|
9
|
+
- Choi youngmin
|
|
10
|
+
autorequire:
|
|
11
|
+
bindir: bin
|
|
12
|
+
cert_chain: []
|
|
13
|
+
date: 2021-12-19 00:00:00.000000000 Z
|
|
14
|
+
dependencies:
|
|
15
|
+
- !ruby/object:Gem::Dependency
|
|
16
|
+
name: jekyll
|
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
|
18
|
+
requirements:
|
|
19
|
+
- - ">="
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: '3.8'
|
|
22
|
+
type: :runtime
|
|
23
|
+
prerelease: false
|
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
+
requirements:
|
|
26
|
+
- - ">="
|
|
27
|
+
- !ruby/object:Gem::Version
|
|
28
|
+
version: '3.8'
|
|
29
|
+
- !ruby/object:Gem::Dependency
|
|
30
|
+
name: jekyll-seo-tag
|
|
31
|
+
requirement: !ruby/object:Gem::Requirement
|
|
32
|
+
requirements:
|
|
33
|
+
- - ">="
|
|
34
|
+
- !ruby/object:Gem::Version
|
|
35
|
+
version: '2.7'
|
|
36
|
+
type: :runtime
|
|
37
|
+
prerelease: false
|
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
39
|
+
requirements:
|
|
40
|
+
- - ">="
|
|
41
|
+
- !ruby/object:Gem::Version
|
|
42
|
+
version: '2.7'
|
|
43
|
+
- !ruby/object:Gem::Dependency
|
|
44
|
+
name: jekyll-sitemap
|
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
|
46
|
+
requirements:
|
|
47
|
+
- - ">="
|
|
48
|
+
- !ruby/object:Gem::Version
|
|
49
|
+
version: '1.4'
|
|
50
|
+
type: :runtime
|
|
51
|
+
prerelease: false
|
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
53
|
+
requirements:
|
|
54
|
+
- - ">="
|
|
55
|
+
- !ruby/object:Gem::Version
|
|
56
|
+
version: '1.4'
|
|
57
|
+
- !ruby/object:Gem::Dependency
|
|
58
|
+
name: jekyll-gist
|
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
|
60
|
+
requirements:
|
|
61
|
+
- - ">="
|
|
62
|
+
- !ruby/object:Gem::Version
|
|
63
|
+
version: '1.5'
|
|
64
|
+
type: :runtime
|
|
65
|
+
prerelease: false
|
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
67
|
+
requirements:
|
|
68
|
+
- - ">="
|
|
69
|
+
- !ruby/object:Gem::Version
|
|
70
|
+
version: '1.5'
|
|
71
|
+
- !ruby/object:Gem::Dependency
|
|
72
|
+
name: jekyll-paginate
|
|
73
|
+
requirement: !ruby/object:Gem::Requirement
|
|
74
|
+
requirements:
|
|
75
|
+
- - ">="
|
|
76
|
+
- !ruby/object:Gem::Version
|
|
77
|
+
version: '1.1'
|
|
78
|
+
type: :runtime
|
|
79
|
+
prerelease: false
|
|
80
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
81
|
+
requirements:
|
|
82
|
+
- - ">="
|
|
83
|
+
- !ruby/object:Gem::Version
|
|
84
|
+
version: '1.1'
|
|
85
|
+
description:
|
|
86
|
+
email:
|
|
87
|
+
- me@cyan4s.com
|
|
88
|
+
executables: []
|
|
89
|
+
extensions: []
|
|
90
|
+
extra_rdoc_files: []
|
|
91
|
+
files:
|
|
92
|
+
- LICENSE.txt
|
|
93
|
+
- README.md
|
|
94
|
+
- _config.yml
|
|
95
|
+
- _includes/aboutme.html
|
|
96
|
+
- _includes/comment.html
|
|
97
|
+
- _includes/editior.html
|
|
98
|
+
- _includes/footer.html
|
|
99
|
+
- _includes/header.html
|
|
100
|
+
- _includes/navigation.html
|
|
101
|
+
- _includes/post-author-list.html
|
|
102
|
+
- _includes/postlist-item.html
|
|
103
|
+
- _includes/profile.html
|
|
104
|
+
- _includes/search.html
|
|
105
|
+
- _layouts/all-categories.html
|
|
106
|
+
- _layouts/all-posts.html
|
|
107
|
+
- _layouts/all-series.html
|
|
108
|
+
- _layouts/all-tags.html
|
|
109
|
+
- _layouts/author-page.html
|
|
110
|
+
- _layouts/category-page.html
|
|
111
|
+
- _layouts/default.html
|
|
112
|
+
- _layouts/home.html
|
|
113
|
+
- _layouts/page.html
|
|
114
|
+
- _layouts/post.html
|
|
115
|
+
- _layouts/search.html
|
|
116
|
+
- _layouts/series-page.html
|
|
117
|
+
- _sass/hydn/about_layout.scss
|
|
118
|
+
- _sass/hydn/code.scss
|
|
119
|
+
- _sass/hydn/footer.scss
|
|
120
|
+
- _sass/hydn/header.scss
|
|
121
|
+
- _sass/hydn/layout.scss
|
|
122
|
+
- _sass/hydn/main.scss
|
|
123
|
+
- _sass/hydn/nav.scss
|
|
124
|
+
- _sass/hydn/postlist-item.scss
|
|
125
|
+
- _sass/hydn/tagpost.scss
|
|
126
|
+
- _sass/hydn/typo.scss
|
|
127
|
+
- _sass/hydn/variables.scss
|
|
128
|
+
- assets/css/style.scss
|
|
129
|
+
- assets/img/hydn/about.webp
|
|
130
|
+
- assets/img/hydn/about_aboutme.png
|
|
131
|
+
- assets/img/hydn/about_all.png
|
|
132
|
+
- assets/img/hydn/about_category.png
|
|
133
|
+
- assets/img/hydn/about_disqus.jpg
|
|
134
|
+
- assets/img/hydn/about_disqus_screen.jpg
|
|
135
|
+
- assets/img/hydn/about_editior.png
|
|
136
|
+
- assets/img/hydn/about_editior_2.png
|
|
137
|
+
- assets/img/hydn/about_help.png
|
|
138
|
+
- assets/img/hydn/about_help_icon.png
|
|
139
|
+
- assets/img/hydn/about_home.png
|
|
140
|
+
- assets/img/hydn/about_hydn_logo.png
|
|
141
|
+
- assets/img/hydn/about_menu.png
|
|
142
|
+
- assets/img/hydn/about_readme.png
|
|
143
|
+
- assets/img/hydn/about_search.png
|
|
144
|
+
- assets/img/hydn/about_search_console.png
|
|
145
|
+
- assets/img/hydn/about_search_console.screen_01.png
|
|
146
|
+
- assets/img/hydn/about_search_console.screen_02.png
|
|
147
|
+
- assets/img/hydn/about_search_screen.png
|
|
148
|
+
- assets/img/hydn/about_series.png
|
|
149
|
+
- assets/img/hydn/about_series_screen.png
|
|
150
|
+
- assets/img/hydn/about_tag.png
|
|
151
|
+
- assets/img/hydn/about_top_image.png
|
|
152
|
+
- assets/img/hydn/about_whoami.jpg
|
|
153
|
+
- assets/img/hydn/author_text.png
|
|
154
|
+
- assets/img/hydn/default-profile.png
|
|
155
|
+
- assets/img/hydn/forest.jpg
|
|
156
|
+
- assets/img/hydn/lake.jpg
|
|
157
|
+
- assets/img/hydn/menu_white_24dp.svg
|
|
158
|
+
- assets/img/hydn/scarlet.jpg
|
|
159
|
+
- assets/img/hydn/search.png
|
|
160
|
+
- assets/img/hydn/snow.jpg
|
|
161
|
+
- assets/img/hydn/title.webp
|
|
162
|
+
- assets/img/hydn/work.jpg
|
|
163
|
+
- assets/tipuesearch/css/normalize.css
|
|
164
|
+
- assets/tipuesearch/css/tipuesearch.css
|
|
165
|
+
- assets/tipuesearch/search.png
|
|
166
|
+
- assets/tipuesearch/tipuesearch.min.js
|
|
167
|
+
- assets/tipuesearch/tipuesearch_content.js
|
|
168
|
+
- assets/tipuesearch/tipuesearch_set.js
|
|
169
|
+
homepage: https://github.com/CYAN4S/hydn
|
|
170
|
+
licenses:
|
|
171
|
+
- MIT
|
|
172
|
+
metadata: {}
|
|
173
|
+
post_install_message:
|
|
174
|
+
rdoc_options: []
|
|
175
|
+
require_paths:
|
|
176
|
+
- lib
|
|
177
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
178
|
+
requirements:
|
|
179
|
+
- - ">="
|
|
180
|
+
- !ruby/object:Gem::Version
|
|
181
|
+
version: '0'
|
|
182
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
183
|
+
requirements:
|
|
184
|
+
- - ">="
|
|
185
|
+
- !ruby/object:Gem::Version
|
|
186
|
+
version: '0'
|
|
187
|
+
requirements: []
|
|
188
|
+
rubygems_version: 3.0.3.1
|
|
189
|
+
signing_key:
|
|
190
|
+
specification_version: 4
|
|
191
|
+
summary: Ultimate Jekyll Theme for Blogging.
|
|
192
|
+
test_files: []
|