creek-jekyll-theme 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +81 -0
- data/_config.yml +306 -0
- data/_data/README.md +3 -0
- data/_data/navigation/docs.yml +56 -0
- data/_data/navigation/main.yml +12 -0
- data/_data/navigation.yml +68 -0
- data/_data/ui-text.yml +2024 -0
- data/_includes/analytics-providers/custom.html +3 -0
- data/_includes/analytics-providers/google-gtag.html +9 -0
- data/_includes/analytics-providers/google-universal.html +7 -0
- data/_includes/analytics-providers/google.html +14 -0
- data/_includes/analytics.html +14 -0
- data/_includes/archive-single.html +30 -0
- data/_includes/author-profile-custom-links.html +7 -0
- data/_includes/author-profile.html +246 -0
- data/_includes/breadcrumbs.html +40 -0
- data/_includes/browser-upgrade.html +2 -0
- data/_includes/category-list.html +19 -0
- data/_includes/comment.html +22 -0
- data/_includes/comments-providers/custom.html +3 -0
- data/_includes/comments-providers/custom_scripts.html +3 -0
- data/_includes/comments-providers/discourse.html +13 -0
- data/_includes/comments-providers/disqus.html +15 -0
- data/_includes/comments-providers/facebook.html +8 -0
- data/_includes/comments-providers/giscus.html +24 -0
- data/_includes/comments-providers/scripts.html +20 -0
- data/_includes/comments-providers/staticman.html +40 -0
- data/_includes/comments-providers/staticman_v2.html +40 -0
- data/_includes/comments-providers/utterances.html +21 -0
- data/_includes/comments.html +180 -0
- data/_includes/documents-collection.html +15 -0
- data/_includes/feature_row +41 -0
- data/_includes/figure +9 -0
- data/_includes/footer/custom.html +3 -0
- data/_includes/footer.html +21 -0
- data/_includes/gallery +35 -0
- data/_includes/group-by-array +47 -0
- data/_includes/head/custom.html +15 -0
- data/_includes/head.html +25 -0
- data/_includes/masthead.html +35 -0
- data/_includes/nav_list +26 -0
- data/_includes/page__date.html +6 -0
- data/_includes/page__hero.html +55 -0
- data/_includes/page__hero_video.html +2 -0
- data/_includes/page__meta.html +31 -0
- data/_includes/page__taxonomy.html +7 -0
- data/_includes/paginator.html +69 -0
- data/_includes/post_pagination.html +14 -0
- data/_includes/posts-category.html +5 -0
- data/_includes/posts-tag.html +5 -0
- data/_includes/scripts.html +28 -0
- data/_includes/search/algolia-search-scripts.html +62 -0
- data/_includes/search/google-search-scripts.html +30 -0
- data/_includes/search/lunr-search-scripts.html +10 -0
- data/_includes/search/search_form.html +26 -0
- data/_includes/seo.html +158 -0
- data/_includes/sidebar.html +19 -0
- data/_includes/skip-links.html +7 -0
- data/_includes/social-share.html +11 -0
- data/_includes/tag-list.html +19 -0
- data/_includes/toc +7 -0
- data/_includes/toc.html +182 -0
- data/_includes/video +24 -0
- data/_layouts/archive-taxonomy.html +29 -0
- data/_layouts/archive.html +26 -0
- data/_layouts/categories.html +43 -0
- data/_layouts/category.html +10 -0
- data/_layouts/collection.html +10 -0
- data/_layouts/compress.html +10 -0
- data/_layouts/default.html +41 -0
- data/_layouts/home.html +22 -0
- data/_layouts/posts.html +30 -0
- data/_layouts/search.html +42 -0
- data/_layouts/single.html +95 -0
- data/_layouts/splash.html +22 -0
- data/_layouts/tag.html +10 -0
- data/_layouts/tags.html +43 -0
- data/_pages/404.html +26 -0
- data/_sass/minimal-mistakes/_animations.scss +21 -0
- data/_sass/minimal-mistakes/_archive.scss +463 -0
- data/_sass/minimal-mistakes/_base.scss +339 -0
- data/_sass/minimal-mistakes/_buttons.scss +97 -0
- data/_sass/minimal-mistakes/_footer.scss +85 -0
- data/_sass/minimal-mistakes/_forms.scss +359 -0
- data/_sass/minimal-mistakes/_masthead.scss +93 -0
- data/_sass/minimal-mistakes/_mixins.scss +92 -0
- data/_sass/minimal-mistakes/_navigation.scss +573 -0
- data/_sass/minimal-mistakes/_notices.scss +109 -0
- data/_sass/minimal-mistakes/_page.scss +578 -0
- data/_sass/minimal-mistakes/_print.scss +252 -0
- data/_sass/minimal-mistakes/_reset.scss +187 -0
- data/_sass/minimal-mistakes/_search.scss +132 -0
- data/_sass/minimal-mistakes/_sidebar.scss +353 -0
- data/_sass/minimal-mistakes/_syntax.scss +324 -0
- data/_sass/minimal-mistakes/_tables.scss +39 -0
- data/_sass/minimal-mistakes/_utilities.scss +593 -0
- data/_sass/minimal-mistakes/_variables.scss +173 -0
- data/_sass/minimal-mistakes/skins/_air.scss +23 -0
- data/_sass/minimal-mistakes/skins/_aqua.scss +34 -0
- data/_sass/minimal-mistakes/skins/_contrast.scss +52 -0
- data/_sass/minimal-mistakes/skins/_dark.scss +30 -0
- data/_sass/minimal-mistakes/skins/_default.scss +5 -0
- data/_sass/minimal-mistakes/skins/_dirt.scss +33 -0
- data/_sass/minimal-mistakes/skins/_mint.scss +24 -0
- data/_sass/minimal-mistakes/skins/_neon.scss +63 -0
- data/_sass/minimal-mistakes/skins/_plum.scss +70 -0
- data/_sass/minimal-mistakes/skins/_sunrise.scss +49 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/_breakpoint.scss +114 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/_context.scss +95 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/_helpers.scss +151 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/_legacy-settings.scss +50 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/_no-query.scss +15 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/_parsers.scss +215 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/_respond-to.scss +82 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/_settings.scss +71 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_double.scss +33 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_query.scss +82 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_resolution.scss +31 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_single.scss +26 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/_triple.scss +36 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/double/_default-pair.scss +21 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/double/_default.scss +22 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/double/_double-string.scss +22 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/resolution/_resolution.scss +60 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/single/_default.scss +13 -0
- data/_sass/minimal-mistakes/vendor/breakpoint/parsers/triple/_default.scss +18 -0
- data/_sass/minimal-mistakes/vendor/magnific-popup/_magnific-popup.scss +649 -0
- data/_sass/minimal-mistakes/vendor/magnific-popup/_settings.scss +46 -0
- data/_sass/minimal-mistakes/vendor/susy/_su.scss +4 -0
- data/_sass/minimal-mistakes/vendor/susy/_susy-prefix.scss +13 -0
- data/_sass/minimal-mistakes/vendor/susy/_susy.scss +5 -0
- data/_sass/minimal-mistakes/vendor/susy/plugins/_svg-grid.scss +5 -0
- data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_prefix.scss +7 -0
- data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-api.scss +114 -0
- data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-grid-math.scss +67 -0
- data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-settings.scss +14 -0
- data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-unprefix.scss +18 -0
- data/_sass/minimal-mistakes/vendor/susy/plugins/svg-grid/_svg-utilities.scss +133 -0
- data/_sass/minimal-mistakes/vendor/susy/susy/_api.scss +318 -0
- data/_sass/minimal-mistakes/vendor/susy/susy/_normalize.scss +261 -0
- data/_sass/minimal-mistakes/vendor/susy/susy/_parse.scss +163 -0
- data/_sass/minimal-mistakes/vendor/susy/susy/_settings.scss +329 -0
- data/_sass/minimal-mistakes/vendor/susy/susy/_su-math.scss +441 -0
- data/_sass/minimal-mistakes/vendor/susy/susy/_su-validate.scss +213 -0
- data/_sass/minimal-mistakes/vendor/susy/susy/_syntax-helpers.scss +191 -0
- data/_sass/minimal-mistakes/vendor/susy/susy/_unprefix.scss +56 -0
- data/_sass/minimal-mistakes/vendor/susy/susy/_utilities.scss +167 -0
- data/_sass/minimal-mistakes.scss +40 -0
- data/assets/css/main.scss +9 -0
- data/assets/images/android-chrome-192x192.png +0 -0
- data/assets/images/android-chrome-512x512.png +0 -0
- data/assets/images/apple-touch-icon.png +0 -0
- data/assets/images/browserconfig.xml +9 -0
- data/assets/images/creek-logo.png +0 -0
- data/assets/images/favicon-16x16.png +0 -0
- data/assets/images/favicon-32x32.png +0 -0
- data/assets/images/favicon.ico +0 -0
- data/assets/images/mstile-150x150.png +0 -0
- data/assets/images/safari-pinned-tab.svg +48 -0
- data/assets/images/site-under-construction.png +0 -0
- data/assets/images/site.webmanifest +19 -0
- data/assets/js/_main.js +136 -0
- data/assets/js/lunr/lunr-en.js +73 -0
- data/assets/js/lunr/lunr-gr.js +526 -0
- data/assets/js/lunr/lunr-store.js +84 -0
- data/assets/js/lunr/lunr.js +3475 -0
- data/assets/js/lunr/lunr.min.js +6 -0
- data/assets/js/main.min.js +6 -0
- data/assets/js/plugins/gumshoe.js +484 -0
- data/assets/js/plugins/jquery.ba-throttle-debounce.js +252 -0
- data/assets/js/plugins/jquery.fitvids.js +82 -0
- data/assets/js/plugins/jquery.greedy-navigation.js +127 -0
- data/assets/js/plugins/jquery.magnific-popup.js +1860 -0
- data/assets/js/plugins/smooth-scroll.js +650 -0
- data/assets/js/vendor/jquery/jquery-3.6.0.js +10881 -0
- metadata +233 -0
data/assets/js/_main.js
ADDED
@@ -0,0 +1,136 @@
|
|
1
|
+
/* ==========================================================================
|
2
|
+
jQuery plugin settings and other scripts
|
3
|
+
========================================================================== */
|
4
|
+
|
5
|
+
$(function() {
|
6
|
+
// FitVids init
|
7
|
+
$("#main").fitVids();
|
8
|
+
|
9
|
+
// Sticky sidebar
|
10
|
+
var stickySideBar = function() {
|
11
|
+
var show =
|
12
|
+
$(".author__urls-wrapper").find("button").length === 0
|
13
|
+
? $(window).width() > 1024 // width should match $large Sass variable
|
14
|
+
: !$(".author__urls-wrapper").find("button").is(":visible");
|
15
|
+
if (show) {
|
16
|
+
// fix
|
17
|
+
$(".sidebar").addClass("sticky");
|
18
|
+
} else {
|
19
|
+
// unfix
|
20
|
+
$(".sidebar").removeClass("sticky");
|
21
|
+
}
|
22
|
+
};
|
23
|
+
|
24
|
+
stickySideBar();
|
25
|
+
|
26
|
+
$(window).resize(function() {
|
27
|
+
stickySideBar();
|
28
|
+
});
|
29
|
+
|
30
|
+
// Follow menu drop down
|
31
|
+
$(".author__urls-wrapper").find("button").on("click", function() {
|
32
|
+
$(".author__urls").toggleClass("is--visible");
|
33
|
+
$(".author__urls-wrapper").find("button").toggleClass("open");
|
34
|
+
});
|
35
|
+
|
36
|
+
// Close search screen with Esc key
|
37
|
+
$(document).keyup(function(e) {
|
38
|
+
if (e.keyCode === 27) {
|
39
|
+
if ($(".initial-content").hasClass("is--hidden")) {
|
40
|
+
$(".search-content").toggleClass("is--visible");
|
41
|
+
$(".initial-content").toggleClass("is--hidden");
|
42
|
+
}
|
43
|
+
}
|
44
|
+
});
|
45
|
+
|
46
|
+
// Search toggle
|
47
|
+
$(".search__toggle").on("click", function() {
|
48
|
+
$(".search-content").toggleClass("is--visible");
|
49
|
+
$(".initial-content").toggleClass("is--hidden");
|
50
|
+
// set focus on input
|
51
|
+
setTimeout(function() {
|
52
|
+
$(".search-content").find("input").focus();
|
53
|
+
}, 400);
|
54
|
+
});
|
55
|
+
|
56
|
+
// Smooth scrolling
|
57
|
+
var scroll = new SmoothScroll('a[href*="#"]', {
|
58
|
+
offset: 20,
|
59
|
+
speed: 400,
|
60
|
+
speedAsDuration: true,
|
61
|
+
durationMax: 500
|
62
|
+
});
|
63
|
+
|
64
|
+
// Gumshoe scroll spy init
|
65
|
+
if($("nav.toc").length > 0) {
|
66
|
+
var spy = new Gumshoe("nav.toc a", {
|
67
|
+
// Active classes
|
68
|
+
navClass: "active", // applied to the nav list item
|
69
|
+
contentClass: "active", // applied to the content
|
70
|
+
|
71
|
+
// Nested navigation
|
72
|
+
nested: false, // if true, add classes to parents of active link
|
73
|
+
nestedClass: "active", // applied to the parent items
|
74
|
+
|
75
|
+
// Offset & reflow
|
76
|
+
offset: 20, // how far from the top of the page to activate a content area
|
77
|
+
reflow: true, // if true, listen for reflows
|
78
|
+
|
79
|
+
// Event support
|
80
|
+
events: true // if true, emit custom events
|
81
|
+
});
|
82
|
+
}
|
83
|
+
|
84
|
+
// add lightbox class to all image links
|
85
|
+
$(
|
86
|
+
"a[href$='.jpg'],a[href$='.jpeg'],a[href$='.JPG'],a[href$='.png'],a[href$='.gif'],a[href$='.webp']"
|
87
|
+
).has("> img").addClass("image-popup");
|
88
|
+
|
89
|
+
// Magnific-Popup options
|
90
|
+
$(".image-popup").magnificPopup({
|
91
|
+
// disableOn: function() {
|
92
|
+
// if( $(window).width() < 500 ) {
|
93
|
+
// return false;
|
94
|
+
// }
|
95
|
+
// return true;
|
96
|
+
// },
|
97
|
+
type: "image",
|
98
|
+
tLoading: "Loading image #%curr%...",
|
99
|
+
gallery: {
|
100
|
+
enabled: true,
|
101
|
+
navigateByImgClick: true,
|
102
|
+
preload: [0, 1] // Will preload 0 - before current, and 1 after the current image
|
103
|
+
},
|
104
|
+
image: {
|
105
|
+
tError: '<a href="%url%">Image #%curr%</a> could not be loaded.'
|
106
|
+
},
|
107
|
+
removalDelay: 500, // Delay in milliseconds before popup is removed
|
108
|
+
// Class that is added to body when popup is open.
|
109
|
+
// make it unique to apply your CSS animations just to this exact popup
|
110
|
+
mainClass: "mfp-zoom-in",
|
111
|
+
callbacks: {
|
112
|
+
beforeOpen: function() {
|
113
|
+
// just a hack that adds mfp-anim class to markup
|
114
|
+
this.st.image.markup = this.st.image.markup.replace(
|
115
|
+
"mfp-figure",
|
116
|
+
"mfp-figure mfp-with-anim"
|
117
|
+
);
|
118
|
+
}
|
119
|
+
},
|
120
|
+
closeOnContentClick: true,
|
121
|
+
midClick: true // allow opening popup on middle mouse click. Always set it to true if you don't provide alternative source.
|
122
|
+
});
|
123
|
+
|
124
|
+
// Add anchors for headings
|
125
|
+
$('.page__content').find('h1, h2, h3, h4, h5, h6').each(function() {
|
126
|
+
var id = $(this).attr('id');
|
127
|
+
if (id) {
|
128
|
+
var anchor = document.createElement("a");
|
129
|
+
anchor.className = 'header-link';
|
130
|
+
anchor.href = '#' + id;
|
131
|
+
anchor.innerHTML = '<span class=\"sr-only\">Permalink</span><i class=\"fas fa-link\"></i>';
|
132
|
+
anchor.title = "Permalink";
|
133
|
+
$(this).append(anchor);
|
134
|
+
}
|
135
|
+
});
|
136
|
+
});
|
@@ -0,0 +1,73 @@
|
|
1
|
+
---
|
2
|
+
layout: none
|
3
|
+
---
|
4
|
+
|
5
|
+
var idx = lunr(function () {
|
6
|
+
this.field('title')
|
7
|
+
this.field('excerpt')
|
8
|
+
this.field('categories')
|
9
|
+
this.field('tags')
|
10
|
+
this.ref('id')
|
11
|
+
|
12
|
+
this.pipeline.remove(lunr.trimmer)
|
13
|
+
|
14
|
+
for (var item in store) {
|
15
|
+
this.add({
|
16
|
+
title: store[item].title,
|
17
|
+
excerpt: store[item].excerpt,
|
18
|
+
categories: store[item].categories,
|
19
|
+
tags: store[item].tags,
|
20
|
+
id: item
|
21
|
+
})
|
22
|
+
}
|
23
|
+
});
|
24
|
+
|
25
|
+
$(document).ready(function() {
|
26
|
+
$('input#search').on('keyup', function () {
|
27
|
+
var resultdiv = $('#results');
|
28
|
+
var query = $(this).val().toLowerCase();
|
29
|
+
var result =
|
30
|
+
idx.query(function (q) {
|
31
|
+
query.split(lunr.tokenizer.separator).forEach(function (term) {
|
32
|
+
q.term(term, { boost: 100 })
|
33
|
+
if(query.lastIndexOf(" ") != query.length-1){
|
34
|
+
q.term(term, { usePipeline: false, wildcard: lunr.Query.wildcard.TRAILING, boost: 10 })
|
35
|
+
}
|
36
|
+
if (term != ""){
|
37
|
+
q.term(term, { usePipeline: false, editDistance: 1, boost: 1 })
|
38
|
+
}
|
39
|
+
})
|
40
|
+
});
|
41
|
+
resultdiv.empty();
|
42
|
+
resultdiv.prepend('<p class="results__found">'+result.length+' {{ site.data.ui-text[site.locale].results_found | default: "Result(s) found" }}</p>');
|
43
|
+
for (var item in result) {
|
44
|
+
var ref = result[item].ref;
|
45
|
+
if(store[ref].teaser){
|
46
|
+
var searchitem =
|
47
|
+
'<div class="list__item">'+
|
48
|
+
'<article class="archive__item" itemscope itemtype="https://schema.org/CreativeWork">'+
|
49
|
+
'<h2 class="archive__item-title" itemprop="headline">'+
|
50
|
+
'<a href="'+store[ref].url+'" rel="permalink">'+store[ref].title+'</a>'+
|
51
|
+
'</h2>'+
|
52
|
+
'<div class="archive__item-teaser">'+
|
53
|
+
'<img src="'+store[ref].teaser+'" alt="">'+
|
54
|
+
'</div>'+
|
55
|
+
'<p class="archive__item-excerpt" itemprop="description">'+store[ref].excerpt.split(" ").splice(0,20).join(" ")+'...</p>'+
|
56
|
+
'</article>'+
|
57
|
+
'</div>';
|
58
|
+
}
|
59
|
+
else{
|
60
|
+
var searchitem =
|
61
|
+
'<div class="list__item">'+
|
62
|
+
'<article class="archive__item" itemscope itemtype="https://schema.org/CreativeWork">'+
|
63
|
+
'<h2 class="archive__item-title" itemprop="headline">'+
|
64
|
+
'<a href="'+store[ref].url+'" rel="permalink">'+store[ref].title+'</a>'+
|
65
|
+
'</h2>'+
|
66
|
+
'<p class="archive__item-excerpt" itemprop="description">'+store[ref].excerpt.split(" ").splice(0,20).join(" ")+'...</p>'+
|
67
|
+
'</article>'+
|
68
|
+
'</div>';
|
69
|
+
}
|
70
|
+
resultdiv.append(searchitem);
|
71
|
+
}
|
72
|
+
});
|
73
|
+
});
|