jekyll-theme-anatole 0.1.2
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 +19 -0
- data/README.md +57 -0
- data/_config.yml +104 -0
- data/_includes/footer.html +4 -0
- data/_includes/head.html +12 -0
- data/_includes/navbar.html +21 -0
- data/_includes/sidebar.html +23 -0
- data/_includes/taxonomy/categories.html +5 -0
- data/_includes/taxonomy/tags.html +5 -0
- data/_layouts/categories.html +38 -0
- data/_layouts/category.html +24 -0
- data/_layouts/default.html +16 -0
- data/_layouts/list.html +24 -0
- data/_layouts/page.html +28 -0
- data/_layouts/post.html +5 -0
- data/_layouts/tag.html +24 -0
- data/_layouts/tags.html +38 -0
- data/_sass/_style.scss +973 -0
- data/assets/css/main.scss +4 -0
- data/assets/images/profile_picture.svg +16 -0
- data/assets/js/anatole-header.js +72 -0
- data/assets/js/jquery-appear.js +127 -0
- data/assets/js/jquery-migrate.js +882 -0
- data/assets/js/jquery.js +10840 -0
- data/assets/js/medium-zoom.js +566 -0
- metadata +84 -0
@@ -0,0 +1,16 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
3
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="273.67" height="287.351" viewBox="0, 0, 273.67, 287.351">
|
4
|
+
<g id="Layer_1">
|
5
|
+
<path d="M131.634,287.351 C101.478,287.351 72.649,286.164 67.173,285.922 C66.345,285.883 65.774,285.765 65.251,285.539 C62.517,284.445 -1.155,258.281 0.016,218 C1.032,184.008 19.72,115.586 50.368,111.469 C51.587,111.289 52.79,111.226 53.978,111.226 C66.11,111.226 77.298,119.047 82.899,123.703 C83.415,124.133 84.056,124.359 84.712,124.359 C85.11,124.359 85.501,124.281 85.876,124.117 C88.079,123.117 90.97,121.976 94.704,120.789 C95.579,120.508 96.267,119.828 96.54,118.945 C96.813,118.07 96.657,117.109 96.11,116.383 C86.634,103.836 81.438,88.289 81.438,72.617 C81.438,32.578 114.009,-0 154.056,-0 C182.438,-0 208.368,16.828 220.11,42.867 C220.501,43.711 221.274,44.328 222.196,44.492 C228.509,45.633 237.149,46.953 248.001,46.953 C252.845,46.953 267.61,46.953 272.337,56.367 C275.032,61.711 273.61,68.57 268.337,75.664 C263.47,82.289 253.532,90.476 248.04,94.773 C246.97,95.617 246.649,97.094 247.259,98.304 C254.946,113.383 253.384,117.094 252.712,118.672 C249.72,125.508 233.618,131.586 209.649,134.875 C208.532,135.031 207.61,135.836 207.306,136.914 C207.009,138 207.368,139.164 208.235,139.875 C209.157,140.625 210.071,141.461 210.97,142.344 C213.923,145.265 217.024,147.695 220.032,150.054 C232.485,159.851 246.478,170.883 251.86,210.969 C259.04,264.797 235.407,278.992 194.915,284.461 C180.603,286.383 159.313,287.351 131.634,287.351" fill="#B79267" id="path833"/>
|
6
|
+
<path d="M51.071,116.57 C67.165,114.414 83.493,131.226 83.493,131.226 C83.493,131.226 89.899,126.554 108.587,122.453 C95.056,110.133 86.595,92.351 86.595,72.617 C86.595,35.351 116.79,5.179 154.056,5.179 C191.321,5.179 221.524,35.351 221.524,72.617 C221.524,95.383 210.228,115.492 192.985,127.719 C187.61,136.25 198.978,137.734 207.321,146 C222.056,160.617 240.298,163.515 246.735,211.648 C253.149,259.687 234.743,273.883 194.235,279.367 C153.743,284.773 67.165,280.758 67.165,280.758 C67.165,280.758 4.087,255.336 5.173,218.156 C6.282,181.015 26.126,119.929 51.071,116.57" fill="#FFDA1A" id="path835"/>
|
7
|
+
<path d="M158.837,79.429 C158.837,79.429 183.587,45.547 195.978,45.547 C208.368,45.547 223.157,52.109 248.001,52.109 C272.806,52.109 270.837,63.648 264.173,72.617 C257.532,81.648 239.509,94.765 239.509,94.765 C239.509,94.765 249.603,112.758 248.001,116.57 C244.415,124.758 203.571,131.836 197.884,130.765 C185.97,128.594 160.915,117.664 154.056,103.492 C147.181,89.281 158.837,79.429 158.837,79.429" fill="#E6762B" id="path837"/>
|
8
|
+
<path d="M120.813,53.195 C120.813,64.07 129.618,72.875 140.478,72.875 C151.321,72.875 160.134,64.07 160.134,53.195 C160.134,42.351 151.321,33.578 140.478,33.578 C129.618,33.578 120.813,42.351 120.813,53.195" fill="#FFFFFE" id="path839"/>
|
9
|
+
<path d="M127.79,55.211 C127.79,63.758 134.72,70.734 143.274,70.734 C151.821,70.734 158.743,63.758 158.743,55.211 C158.743,46.679 151.821,39.742 143.274,39.742 C134.72,39.742 127.79,46.679 127.79,55.211" fill="#3D1212" id="path841"/>
|
10
|
+
<path d="M175.063,88.211 C175.063,88.211 207.259,93.742 216.556,88.211 C225.837,82.742 249.884,67.414 257.532,65.773 C265.173,64.133 268.665,66.461 265.493,70.734 C262.298,74.961 244.954,93.101 239.509,94.765 C239.509,94.765 247.962,111.242 248.001,113.898 C248.001,116.57 235.056,116.211 220.876,113.898 C200.173,110.531 175.063,88.211 175.063,88.211" fill="#DE4B2A" id="path843"/>
|
11
|
+
<path d="M91.423,258.758 C119.431,258.758 147.728,243.851 155.087,211.234 C162.571,178.054 137.126,158.758 136.032,157.953 L132.142,163.179 L134.079,160.617 C134.079,160.617 155.22,180.883 148.704,209.773 C140.767,244.945 105.212,257.031 75.806,250.492 C48.001,244.297 17.728,209.508 17.728,209.508 C18.774,211.164 43.923,250.133 74.392,256.875 C79.915,258.101 85.657,258.758 91.423,258.758" fill="#F3B229" id="path845"/>
|
12
|
+
<path d="M77.993,232.187 C89.478,232.187 98.767,227.742 98.938,227.679 L96.056,221.75 C95.087,222.25 72.282,233.07 56.696,216.984 C40.649,200.414 28.142,172.289 28.142,172.289 C28.142,182.187 34.485,203.492 51.985,221.539 C59.985,229.797 69.587,232.187 77.993,232.187" fill="#F3B229" id="path847"/>
|
13
|
+
<path d="M94.157,196.953 C96.228,196.953 97.532,196.883 97.751,196.851 L97.243,190.336 C97.048,190.336 77.149,191.719 66.618,182.422 C52.563,169.929 54.47,170.929 43.024,154.117 C43.313,155.054 49.985,176.429 62.282,187.328 C72.017,195.914 87.259,196.953 94.157,196.953" fill="#F3B229" id="path849"/>
|
14
|
+
<path d="M83.493,132.226 C83.493,132.226 65.821,118.172 56.087,117.461 C46.149,116.765 36.423,122.164 44.524,133.586 C50.407,141.898 53.806,144.672 53.806,144.672 C53.806,144.672 71.345,137.469 83.493,132.226" fill="#F3B229" id="path851"/>
|
15
|
+
</g>
|
16
|
+
</svg>
|
@@ -0,0 +1,72 @@
|
|
1
|
+
// initialize default value
|
2
|
+
function getTheme() {
|
3
|
+
return localStorage.getItem("theme") ? localStorage.getItem("theme") : null;
|
4
|
+
}
|
5
|
+
|
6
|
+
function setTheme(style) {
|
7
|
+
document.documentElement.setAttribute("data-theme", style);
|
8
|
+
localStorage.setItem("theme", style);
|
9
|
+
}
|
10
|
+
|
11
|
+
function init() {
|
12
|
+
// initialize default value
|
13
|
+
var theme = getTheme();
|
14
|
+
|
15
|
+
// check if a prefered color theme is set for users that have never been to our site
|
16
|
+
const userPrefersDark =
|
17
|
+
window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches;
|
18
|
+
if (theme === null) {
|
19
|
+
if (userPrefersDark) {
|
20
|
+
setTheme("dark");
|
21
|
+
} else if (!document.documentElement.getAttribute("data-theme")) {
|
22
|
+
setTheme("light");
|
23
|
+
} else {
|
24
|
+
setTheme(document.documentElement.getAttribute("data-theme"));
|
25
|
+
}
|
26
|
+
} else {
|
27
|
+
// load a stored theme
|
28
|
+
if (theme == "light") {
|
29
|
+
document.documentElement.setAttribute("data-theme", "light");
|
30
|
+
} else {
|
31
|
+
document.documentElement.setAttribute("data-theme", "dark");
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
// switch themes
|
37
|
+
function switchTheme(e) {
|
38
|
+
var theme = getTheme();
|
39
|
+
if (theme == "light") {
|
40
|
+
setTheme("dark");
|
41
|
+
} else {
|
42
|
+
setTheme("light");
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
document.addEventListener(
|
47
|
+
"DOMContentLoaded",
|
48
|
+
function () {
|
49
|
+
var themeSwitcher = document.querySelector(".theme-switch");
|
50
|
+
themeSwitcher.addEventListener("click", switchTheme, false);
|
51
|
+
},
|
52
|
+
false
|
53
|
+
);
|
54
|
+
|
55
|
+
document.addEventListener("DOMContentLoaded", function () {
|
56
|
+
// Get all "navbar-burger" elements
|
57
|
+
var $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll(".navbar-burger"), 0);
|
58
|
+
// Check if there are any navbar burgers
|
59
|
+
if ($navbarBurgers.length > 0) {
|
60
|
+
// Add a click event on each of them
|
61
|
+
$navbarBurgers.forEach(function ($el) {
|
62
|
+
$el.addEventListener("click", function () {
|
63
|
+
var target = $el.dataset.target;
|
64
|
+
var $target = document.getElementById(target);
|
65
|
+
$el.classList.toggle("is-active");
|
66
|
+
$target.classList.toggle("is-active");
|
67
|
+
});
|
68
|
+
});
|
69
|
+
}
|
70
|
+
});
|
71
|
+
|
72
|
+
init();
|
@@ -0,0 +1,127 @@
|
|
1
|
+
/*
|
2
|
+
* jQuery appear plugin
|
3
|
+
*
|
4
|
+
* Copyright (c) 2012 Andrey Sidorov
|
5
|
+
* licensed under MIT license.
|
6
|
+
*
|
7
|
+
* https://github.com/morr/jquery.appear/
|
8
|
+
*
|
9
|
+
* Version: 0.4
|
10
|
+
*/
|
11
|
+
(function ($) {
|
12
|
+
var selectors = [];
|
13
|
+
|
14
|
+
var check_binded = false;
|
15
|
+
var check_lock = false;
|
16
|
+
var defaults = {
|
17
|
+
interval: 250,
|
18
|
+
force_process: false,
|
19
|
+
};
|
20
|
+
var $window = $(window);
|
21
|
+
|
22
|
+
var $prior_appeared = [];
|
23
|
+
|
24
|
+
function appeared(selector) {
|
25
|
+
return $(selector).filter(function () {
|
26
|
+
return $(this).is(":appeared");
|
27
|
+
});
|
28
|
+
}
|
29
|
+
|
30
|
+
function process() {
|
31
|
+
check_lock = false;
|
32
|
+
for (var index = 0, selectorsLength = selectors.length; index < selectorsLength; index++) {
|
33
|
+
var $appeared = appeared(selectors[index]);
|
34
|
+
|
35
|
+
$appeared.trigger("appear", [$appeared]);
|
36
|
+
|
37
|
+
if ($prior_appeared[index]) {
|
38
|
+
var $disappeared = $prior_appeared[index].not($appeared);
|
39
|
+
$disappeared.trigger("disappear", [$disappeared]);
|
40
|
+
}
|
41
|
+
$prior_appeared[index] = $appeared;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
function add_selector(selector) {
|
46
|
+
selectors.push(selector);
|
47
|
+
$prior_appeared.push();
|
48
|
+
}
|
49
|
+
|
50
|
+
// ":appeared" custom filter
|
51
|
+
$.expr.pseudos.appeared = $.expr.createPseudo(function (arg) {
|
52
|
+
return function (element) {
|
53
|
+
var $element = $(element);
|
54
|
+
if (!$element.is(":visible")) {
|
55
|
+
return false;
|
56
|
+
}
|
57
|
+
|
58
|
+
var window_left = $window.scrollLeft();
|
59
|
+
var window_top = $window.scrollTop();
|
60
|
+
var offset = $element.offset();
|
61
|
+
var left = offset.left;
|
62
|
+
var top = offset.top;
|
63
|
+
|
64
|
+
if (
|
65
|
+
top + $element.height() >= window_top &&
|
66
|
+
top - ($element.data("appear-top-offset") || 0) <= window_top + $window.height() &&
|
67
|
+
left + $element.width() >= window_left &&
|
68
|
+
left - ($element.data("appear-left-offset") || 0) <= window_left + $window.width()
|
69
|
+
) {
|
70
|
+
return true;
|
71
|
+
} else {
|
72
|
+
return false;
|
73
|
+
}
|
74
|
+
};
|
75
|
+
});
|
76
|
+
|
77
|
+
$.fn.extend({
|
78
|
+
// watching for element's appearance in browser viewport
|
79
|
+
appear: function (selector, options) {
|
80
|
+
$.appear(this, options);
|
81
|
+
return this;
|
82
|
+
},
|
83
|
+
});
|
84
|
+
|
85
|
+
$.extend({
|
86
|
+
appear: function (selector, options) {
|
87
|
+
var opts = $.extend({}, defaults, options || {});
|
88
|
+
|
89
|
+
if (!check_binded) {
|
90
|
+
var on_check = function () {
|
91
|
+
if (check_lock) {
|
92
|
+
return;
|
93
|
+
}
|
94
|
+
check_lock = true;
|
95
|
+
|
96
|
+
setTimeout(process, opts.interval);
|
97
|
+
};
|
98
|
+
|
99
|
+
$(window).scroll(on_check).resize(on_check);
|
100
|
+
check_binded = true;
|
101
|
+
}
|
102
|
+
|
103
|
+
if (opts.force_process) {
|
104
|
+
setTimeout(process, opts.interval);
|
105
|
+
}
|
106
|
+
|
107
|
+
add_selector(selector);
|
108
|
+
},
|
109
|
+
// force elements's appearance check
|
110
|
+
force_appear: function () {
|
111
|
+
if (check_binded) {
|
112
|
+
process();
|
113
|
+
return true;
|
114
|
+
}
|
115
|
+
return false;
|
116
|
+
},
|
117
|
+
});
|
118
|
+
})(
|
119
|
+
(function () {
|
120
|
+
if (typeof module !== "undefined") {
|
121
|
+
// Node
|
122
|
+
return require("jquery");
|
123
|
+
} else {
|
124
|
+
return jQuery;
|
125
|
+
}
|
126
|
+
})()
|
127
|
+
);
|