redeyed-jekyll-theme 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +21 -21
- data/README.md +54 -52
- data/_config.yml +25 -18
- data/_data/assets/cross-origin.yml +1 -7
- data/_data/assets/self-host.yml +0 -6
- data/_data/locale/en.yml +63 -58
- data/_data/locale/es-ES.yml +79 -0
- data/_data/locale/fr-FR.yml +79 -0
- data/_data/locale/id-ID.yml +79 -0
- data/_data/locale/ko-KR.yml +79 -0
- data/_data/locale/my-MM.yml +79 -0
- data/_data/locale/pt-BR.yml +79 -0
- data/_data/locale/ru-RU.yml +79 -0
- data/_data/locale/uk-UA.yml +79 -0
- data/_data/locale/vi-VN.yml +77 -0
- data/_data/locale/zh-CN.yml +78 -0
- data/_includes/{breadcrumbs.html → elements/breadcrumbs.html} +0 -0
- data/_includes/{datetime.html → elements/datetime.html} +0 -0
- data/_includes/{favicons.html → elements/favicons.html} +14 -14
- data/_includes/{javascript.html → elements/javascript.html} +2 -2
- data/_includes/{jsdelivr-combine.html → elements/jsdelivr-combine.html} +18 -18
- data/_includes/elements/lang.html +11 -0
- data/_includes/{navbar.html → elements/navbar.html} +5 -5
- data/_includes/{no-linenos.html → elements/no-linenos.html} +0 -0
- data/_includes/{options.html → elements/options.html} +13 -13
- data/_includes/{pagination.html → elements/pagination.html} +0 -0
- data/_includes/{readtime.html → elements/readtime.html} +0 -0
- data/_includes/{related-posts.html → elements/related-posts.html} +0 -0
- data/_includes/{search-loader.html → elements/search-loader.html} +46 -46
- data/_includes/{search-results.html → elements/search-results.html} +0 -0
- data/_includes/{toc.html → elements/toc.html} +0 -0
- data/_includes/{back-to-top.html → extensions/back-to-top.html} +2 -2
- data/_includes/extensions/code-highlight.html +89 -0
- data/_includes/extensions/comments/disqus.html +17 -0
- data/_includes/extensions/comments/giscus.html +56 -0
- data/_includes/extensions/comments/gitment.html +15 -0
- data/_includes/extensions/comments/utterances.html +46 -0
- data/_includes/extensions/geopattern.html +19 -0
- data/_includes/extensions/google-analytics.html +7 -0
- data/_includes/{google-tags-body.html → extensions/google-tags-body.html} +3 -3
- data/_includes/{google-tags-head.html → extensions/google-tags-head.html} +5 -5
- data/_includes/extensions/google-translate.html +108 -0
- data/_includes/extensions/hashlocate.html +44 -0
- data/_includes/extensions/mathjax.html +9 -0
- data/_includes/{mode-toggle.html → extensions/theme-mode.html} +0 -10
- data/_includes/extensions/theme-toggle.html +108 -0
- data/_includes/extensions/trianglify.html +26 -0
- data/_includes/functions/get-article-excerpt.html +33 -0
- data/_includes/functions/get-article-words.html +18 -0
- data/_includes/functions/get-banner.html +67 -0
- data/_includes/functions/get-categories.html +9 -0
- data/_includes/functions/get-datetimes.html +13 -0
- data/_includes/functions/get-reading-time.html +39 -0
- data/_includes/functions/get-tags.html +9 -0
- data/_includes/functions/get-value.html +41 -0
- data/_includes/functions/log.html +17 -0
- data/_includes/head.html +4 -4
- data/_includes/{copyright.html → views/copyright.html} +0 -0
- data/_includes/{footer.html → views/footer.html} +0 -0
- data/_includes/{header-banner.html → views/header-banner.html} +0 -0
- data/_includes/{header-wide.html → views/header-wide.html} +0 -0
- data/_includes/{header.html → views/header.html} +0 -0
- data/_includes/{panel-bottom.html → views/panel-bottom.html} +0 -0
- data/_includes/{panel-foot-2.html → views/panel-foot-2.html} +0 -0
- data/_includes/{panel-foot-3.html → views/panel-foot-3.html} +0 -0
- data/_includes/{panel-foot-4.html → views/panel-foot-4.html} +0 -0
- data/_includes/{panel-foot-full.html → views/panel-foot-full.html} +0 -0
- data/_includes/{panel-top-2.html → views/panel-top-2.html} +0 -0
- data/_includes/{panel-top-3.html → views/panel-top-3.html} +0 -0
- data/_includes/{panel-top-4.html → views/panel-top-4.html} +0 -0
- data/_includes/{panel-top-full.html → views/panel-top-full.html} +0 -0
- data/_includes/{post-nav.html → views/post-nav.html} +0 -0
- data/_includes/{post-share.html → views/post-share.html} +0 -0
- data/_includes/{sidebar.html → views/sidebar.html} +0 -0
- data/_javascript/common/back-to-top.js +20 -20
- data/_javascript/common/mode-toggle.js +13 -13
- data/_javascript/common/scroll-helper.js +36 -36
- data/_javascript/common/search-display.js +129 -129
- data/_javascript/common/sidebar.js +30 -30
- data/_javascript/common/tooltip-loader.js +6 -6
- data/_javascript/common/topbar-switcher.js +90 -90
- data/_javascript/common/topbar-title.js +67 -67
- data/_javascript/utils/category-collapse.js +30 -30
- data/_javascript/utils/checkbox.js +12 -12
- data/_javascript/utils/clipboard.js +133 -133
- data/_javascript/utils/img-extra.js +47 -47
- data/_javascript/utils/locale-datetime.js +45 -45
- data/_javascript/utils/pageviews.js +250 -250
- data/_javascript/utils/smooth-scroll.js +96 -96
- data/_layouts/archive.html +5 -0
- data/_layouts/categories.html +5 -0
- data/_layouts/category.html +5 -0
- data/_layouts/compress.html +10 -10
- data/_layouts/error.html +44 -0
- data/_layouts/errors/404.html +9 -0
- data/_layouts/home.html +5 -0
- data/_layouts/page.html +5 -5
- data/_layouts/panel-both.html +13 -13
- data/_layouts/panel-left.html +13 -13
- data/_layouts/panel-none.html +24 -26
- data/_layouts/panel-right.html +13 -13
- data/_layouts/post.html +5 -5
- data/_layouts/tag.html +5 -0
- data/_layouts/tags.html +5 -0
- data/{_includes/comments.html → _sass/addon/alerts.scss} +0 -0
- data/_sass/addon/common.scss +56 -1494
- data/_sass/addon/mixins.scss +31 -38
- data/_sass/addon/syntax.scss +246 -0
- data/_sass/{layout/page.scss → addon/typography.scss} +0 -0
- data/_sass/layout/_base.scss +16 -0
- data/_sass/redeyed-jekyll-theme.scss +30 -15
- data/_sass/{layout/panel-both.scss → theme/scheme-brew.scss} +0 -0
- data/_sass/theme/scheme-dark.scss +220 -0
- data/_sass/theme/scheme-light.scss +220 -0
- data/_sass/theme/syntax-dark.scss +150 -0
- data/_sass/{colors/light-syntax.scss → theme/syntax-light.scss} +4 -4
- data/_sass/theme/variables.scss +60 -0
- metadata +147 -105
- data/_includes/ga-site-tag.html +0 -8
- data/_includes/lang.html +0 -6
- data/_includes/mermaid.html +0 -1
- data/_sass/addon/variables.scss +0 -31
- data/_sass/colors/brew-scheme.scss +0 -7
- data/_sass/colors/dark-scheme.scss +0 -21
- data/_sass/colors/dark-syntax.scss +0 -88
- data/_sass/colors/light-scheme.scss +0 -7
- data/_sass/layout/panel-left.scss +0 -0
- data/_sass/layout/panel-none.scss +0 -146
- data/_sass/layout/panel-right.scss +0 -0
- data/_sass/layout/post.scss +0 -0
@@ -1,96 +1,96 @@
|
|
1
|
-
/*
|
2
|
-
Safari doesn't support CSS `scroll-behavior: smooth`,
|
3
|
-
so here is a compatible solution for all browser to smooth scrolling
|
4
|
-
|
5
|
-
See: <https://css-tricks.com/snippets/jquery/smooth-scrolling/>
|
6
|
-
|
7
|
-
Warning: It must be called after all `<a>` tags (e.g., the dynamic TOC) are ready.
|
8
|
-
*/
|
9
|
-
|
10
|
-
$(function() {
|
11
|
-
const $topbarTitle = $("#topbar-title");
|
12
|
-
const REM = 16; // in pixels
|
13
|
-
const ATTR_SCROLL_FOCUS = "scroll-focus";
|
14
|
-
|
15
|
-
$("a[href*='#']")
|
16
|
-
.not("[href='#']")
|
17
|
-
.not("[href='#0']")
|
18
|
-
.click(function(event) {
|
19
|
-
if (this.pathname.replace(/^\//, "") !==
|
20
|
-
location.pathname.replace(/^\//, "")) {
|
21
|
-
return;
|
22
|
-
}
|
23
|
-
|
24
|
-
if (location.hostname !== this.hostname) {
|
25
|
-
return;
|
26
|
-
}
|
27
|
-
|
28
|
-
const hash = decodeURI(this.hash);
|
29
|
-
let toFootnoteRef = RegExp(/^#fnref:/).test(hash);
|
30
|
-
let toFootnote = toFootnoteRef ? false : RegExp(/^#fn:/).test(hash);
|
31
|
-
let selector = hash.includes(":") ? hash.replace(/\:/g, "\\:") : hash;
|
32
|
-
let $target = $(selector);
|
33
|
-
|
34
|
-
let isMobileViews = $topbarTitle.is(":visible");
|
35
|
-
let isPortrait = $(window).width() < $(window).height();
|
36
|
-
|
37
|
-
if (typeof $target === "undefined") {
|
38
|
-
return;
|
39
|
-
}
|
40
|
-
|
41
|
-
event.preventDefault();
|
42
|
-
|
43
|
-
if (history.pushState) { /* add hash to URL */
|
44
|
-
history.pushState(null, null, hash);
|
45
|
-
}
|
46
|
-
|
47
|
-
let curOffset = $(window).scrollTop();
|
48
|
-
let destOffset = $target.offset().top -= REM / 2;
|
49
|
-
|
50
|
-
if (destOffset < curOffset) { // scroll up
|
51
|
-
ScrollHelper.hideTopbar();
|
52
|
-
ScrollHelper.addScrollUpTask();
|
53
|
-
|
54
|
-
if (isMobileViews && isPortrait) {
|
55
|
-
destOffset -= ScrollHelper.getTopbarHeight();
|
56
|
-
}
|
57
|
-
|
58
|
-
} else { // scroll down
|
59
|
-
if (isMobileViews && isPortrait) {
|
60
|
-
destOffset -= ScrollHelper.getTopbarHeight();
|
61
|
-
}
|
62
|
-
}
|
63
|
-
|
64
|
-
$("html").animate({
|
65
|
-
scrollTop: destOffset
|
66
|
-
}, 500, () => {
|
67
|
-
$target.focus();
|
68
|
-
|
69
|
-
/* clean up old scroll mark */
|
70
|
-
if ($(`[${ATTR_SCROLL_FOCUS}=true]`).length) {
|
71
|
-
$(`[${ATTR_SCROLL_FOCUS}=true]`).attr(ATTR_SCROLL_FOCUS, false);
|
72
|
-
}
|
73
|
-
|
74
|
-
/* Clean :target links */
|
75
|
-
if ($(":target").length) { /* element that visited by the URL with hash */
|
76
|
-
$(":target").attr(ATTR_SCROLL_FOCUS, false);
|
77
|
-
}
|
78
|
-
|
79
|
-
/* set scroll mark to footnotes */
|
80
|
-
if (toFootnote || toFootnoteRef) {
|
81
|
-
$target.attr(ATTR_SCROLL_FOCUS, true);
|
82
|
-
}
|
83
|
-
|
84
|
-
if ($target.is(":focus")) { /* Checking if the target was focused */
|
85
|
-
return false;
|
86
|
-
} else {
|
87
|
-
$target.attr("tabindex", "-1"); /* Adding tabindex for elements not focusable */
|
88
|
-
$target.focus(); /* Set focus again */
|
89
|
-
}
|
90
|
-
|
91
|
-
if (ScrollHelper.hasScrollUpTask()) {
|
92
|
-
ScrollHelper.popScrollUpTask();
|
93
|
-
}
|
94
|
-
});
|
95
|
-
}); /* click() */
|
96
|
-
});
|
1
|
+
/*
|
2
|
+
Safari doesn't support CSS `scroll-behavior: smooth`,
|
3
|
+
so here is a compatible solution for all browser to smooth scrolling
|
4
|
+
|
5
|
+
See: <https://css-tricks.com/snippets/jquery/smooth-scrolling/>
|
6
|
+
|
7
|
+
Warning: It must be called after all `<a>` tags (e.g., the dynamic TOC) are ready.
|
8
|
+
*/
|
9
|
+
|
10
|
+
$(function() {
|
11
|
+
const $topbarTitle = $("#topbar-title");
|
12
|
+
const REM = 16; // in pixels
|
13
|
+
const ATTR_SCROLL_FOCUS = "scroll-focus";
|
14
|
+
|
15
|
+
$("a[href*='#']")
|
16
|
+
.not("[href='#']")
|
17
|
+
.not("[href='#0']")
|
18
|
+
.click(function(event) {
|
19
|
+
if (this.pathname.replace(/^\//, "") !==
|
20
|
+
location.pathname.replace(/^\//, "")) {
|
21
|
+
return;
|
22
|
+
}
|
23
|
+
|
24
|
+
if (location.hostname !== this.hostname) {
|
25
|
+
return;
|
26
|
+
}
|
27
|
+
|
28
|
+
const hash = decodeURI(this.hash);
|
29
|
+
let toFootnoteRef = RegExp(/^#fnref:/).test(hash);
|
30
|
+
let toFootnote = toFootnoteRef ? false : RegExp(/^#fn:/).test(hash);
|
31
|
+
let selector = hash.includes(":") ? hash.replace(/\:/g, "\\:") : hash;
|
32
|
+
let $target = $(selector);
|
33
|
+
|
34
|
+
let isMobileViews = $topbarTitle.is(":visible");
|
35
|
+
let isPortrait = $(window).width() < $(window).height();
|
36
|
+
|
37
|
+
if (typeof $target === "undefined") {
|
38
|
+
return;
|
39
|
+
}
|
40
|
+
|
41
|
+
event.preventDefault();
|
42
|
+
|
43
|
+
if (history.pushState) { /* add hash to URL */
|
44
|
+
history.pushState(null, null, hash);
|
45
|
+
}
|
46
|
+
|
47
|
+
let curOffset = $(window).scrollTop();
|
48
|
+
let destOffset = $target.offset().top -= REM / 2;
|
49
|
+
|
50
|
+
if (destOffset < curOffset) { // scroll up
|
51
|
+
ScrollHelper.hideTopbar();
|
52
|
+
ScrollHelper.addScrollUpTask();
|
53
|
+
|
54
|
+
if (isMobileViews && isPortrait) {
|
55
|
+
destOffset -= ScrollHelper.getTopbarHeight();
|
56
|
+
}
|
57
|
+
|
58
|
+
} else { // scroll down
|
59
|
+
if (isMobileViews && isPortrait) {
|
60
|
+
destOffset -= ScrollHelper.getTopbarHeight();
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
$("html").animate({
|
65
|
+
scrollTop: destOffset
|
66
|
+
}, 500, () => {
|
67
|
+
$target.focus();
|
68
|
+
|
69
|
+
/* clean up old scroll mark */
|
70
|
+
if ($(`[${ATTR_SCROLL_FOCUS}=true]`).length) {
|
71
|
+
$(`[${ATTR_SCROLL_FOCUS}=true]`).attr(ATTR_SCROLL_FOCUS, false);
|
72
|
+
}
|
73
|
+
|
74
|
+
/* Clean :target links */
|
75
|
+
if ($(":target").length) { /* element that visited by the URL with hash */
|
76
|
+
$(":target").attr(ATTR_SCROLL_FOCUS, false);
|
77
|
+
}
|
78
|
+
|
79
|
+
/* set scroll mark to footnotes */
|
80
|
+
if (toFootnote || toFootnoteRef) {
|
81
|
+
$target.attr(ATTR_SCROLL_FOCUS, true);
|
82
|
+
}
|
83
|
+
|
84
|
+
if ($target.is(":focus")) { /* Checking if the target was focused */
|
85
|
+
return false;
|
86
|
+
} else {
|
87
|
+
$target.attr("tabindex", "-1"); /* Adding tabindex for elements not focusable */
|
88
|
+
$target.focus(); /* Set focus again */
|
89
|
+
}
|
90
|
+
|
91
|
+
if (ScrollHelper.hasScrollUpTask()) {
|
92
|
+
ScrollHelper.popScrollUpTask();
|
93
|
+
}
|
94
|
+
});
|
95
|
+
}); /* click() */
|
96
|
+
});
|
data/_layouts/archive.html
CHANGED
data/_layouts/categories.html
CHANGED
data/_layouts/category.html
CHANGED
data/_layouts/compress.html
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
---
|
2
|
-
# Jekyll layout that compresses HTML
|
3
|
-
# v3.1.0
|
4
|
-
# http://jch.penibelst.de/
|
5
|
-
# © 2014–2015 Anatol Broder
|
6
|
-
# MIT License
|
7
|
-
---
|
8
|
-
|
9
|
-
{% capture _LINE_FEED %}
|
10
|
-
{% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment or site.compress_html.ignore.envs == "all" %}{{ content }}{% else %}{% capture _content %}{{ content }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _end %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _end %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ content | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_startings %} <tr> <td>startings <td>{{ _profile_startings }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}
|
1
|
+
---
|
2
|
+
# Jekyll layout that compresses HTML
|
3
|
+
# v3.1.0
|
4
|
+
# http://jch.penibelst.de/
|
5
|
+
# © 2014–2015 Anatol Broder
|
6
|
+
# MIT License
|
7
|
+
---
|
8
|
+
|
9
|
+
{% capture _LINE_FEED %}
|
10
|
+
{% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment or site.compress_html.ignore.envs == "all" %}{{ content }}{% else %}{% capture _content %}{{ content }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _end %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _end %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ content | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_startings %} <tr> <td>startings <td>{{ _profile_startings }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}
|
data/_layouts/error.html
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
---
|
2
|
+
layout: compress
|
3
|
+
---
|
4
|
+
<!DOCTYPE html>
|
5
|
+
{% include elements/lang.html %}
|
6
|
+
{% include elements/options.html %}
|
7
|
+
{% capture prefer_mode %}
|
8
|
+
{% if site.theme_mode %}
|
9
|
+
data-mode="{{ site.theme_mode }}"
|
10
|
+
{% endif %}
|
11
|
+
{% endcapture %}
|
12
|
+
<html lang="{{ page.lang | default: site.lang | default: "en" }}"{{ prefer_mode }}>
|
13
|
+
{% include head.html %}
|
14
|
+
<body data-spy="scroll" data-target="#toc" data-navbar-visible="true">
|
15
|
+
{% include elements/navbar.html %}
|
16
|
+
<div id="main-wrapper" class="d-flex justify-content-center">
|
17
|
+
<div id="main" class="container-fluid">
|
18
|
+
{{ content }}
|
19
|
+
</div>
|
20
|
+
</div>
|
21
|
+
{% include views/footer.html %}
|
22
|
+
{% include views/copyright.html %}
|
23
|
+
<div id="mask"></div>
|
24
|
+
{% include elements/search-results.html %}
|
25
|
+
{% if site.pwa.enabled %}
|
26
|
+
<div id="notification" class="toast" role="alert" aria-live="assertive" aria-atomic="true"
|
27
|
+
data-animation="true" data-autohide="false">
|
28
|
+
<div class="toast-header">
|
29
|
+
<button type="button" class="ml-2 ml-auto close" data-dismiss="toast" aria-label="Close">
|
30
|
+
<span aria-hidden="true">×</span>
|
31
|
+
</button>
|
32
|
+
</div>
|
33
|
+
<div class="toast-body text-center pt-0">
|
34
|
+
<p class="pl-2 pr-2 mb-3">{{ site.data.locales[lang].notification.update_found }}</p>
|
35
|
+
<button type="button" class="btn btn-primary" aria-label="Update">
|
36
|
+
{{ site.data.locales[lang].notification.update }}
|
37
|
+
</button>
|
38
|
+
</div>
|
39
|
+
</div>
|
40
|
+
{% endif %}
|
41
|
+
{% include elements/search-loader.html %}
|
42
|
+
{% include elements/javascript.html %}
|
43
|
+
</body>
|
44
|
+
</html>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
---
|
2
|
+
layout: error
|
3
|
+
---
|
4
|
+
|
5
|
+
<div style="text-align: center;">
|
6
|
+
<h2 style="text-align: center;">ERROR: NOT FOUND [404]</h2>
|
7
|
+
<strong>{{ site.data.locale[lang].not_found.statment
|
8
|
+
| default: "Oops! We've either misplaced that URL or it's pointing to something that doesn't exist." }}</strong>
|
9
|
+
</div>
|
data/_layouts/home.html
ADDED
data/_layouts/page.html
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
---
|
2
|
-
layout: default
|
3
|
-
---
|
4
|
-
|
5
|
-
{{ content }}
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
{{ content }}
|
data/_layouts/panel-both.html
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
---
|
2
|
-
layout: compress
|
3
|
-
---
|
4
|
-
<!DOCTYPE html>
|
5
|
-
<html>
|
6
|
-
<head>
|
7
|
-
<meta charset="utf-8">
|
8
|
-
<title>{{ page.title }}</title>
|
9
|
-
</head>
|
10
|
-
<body>
|
11
|
-
{% include navigation.html %}
|
12
|
-
{{ content }}
|
13
|
-
</body>
|
1
|
+
---
|
2
|
+
layout: compress
|
3
|
+
---
|
4
|
+
<!DOCTYPE html>
|
5
|
+
<html>
|
6
|
+
<head>
|
7
|
+
<meta charset="utf-8">
|
8
|
+
<title>{{ page.title }}</title>
|
9
|
+
</head>
|
10
|
+
<body>
|
11
|
+
{% include navigation.html %}
|
12
|
+
{{ content }}
|
13
|
+
</body>
|
14
14
|
</html>
|
data/_layouts/panel-left.html
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
---
|
2
|
-
layout: compress
|
3
|
-
---
|
4
|
-
<!DOCTYPE html>
|
5
|
-
<html>
|
6
|
-
<head>
|
7
|
-
<meta charset="utf-8">
|
8
|
-
<title>{{ page.title }}</title>
|
9
|
-
</head>
|
10
|
-
<body>
|
11
|
-
{% include navigation.html %}
|
12
|
-
{{ content }}
|
13
|
-
</body>
|
1
|
+
---
|
2
|
+
layout: compress
|
3
|
+
---
|
4
|
+
<!DOCTYPE html>
|
5
|
+
<html>
|
6
|
+
<head>
|
7
|
+
<meta charset="utf-8">
|
8
|
+
<title>{{ page.title }}</title>
|
9
|
+
</head>
|
10
|
+
<body>
|
11
|
+
{% include navigation.html %}
|
12
|
+
{{ content }}
|
13
|
+
</body>
|
14
14
|
</html>
|
data/_layouts/panel-none.html
CHANGED
@@ -2,36 +2,36 @@
|
|
2
2
|
layout: compress
|
3
3
|
---
|
4
4
|
<!DOCTYPE html>
|
5
|
-
{% include lang.html %}
|
6
|
-
{% include options.html %}
|
5
|
+
{% include elements/lang.html %}
|
6
|
+
{% include elements/options.html %}
|
7
7
|
{% capture prefer_mode %}
|
8
8
|
{% if site.theme_mode %}
|
9
9
|
data-mode="{{ site.theme_mode }}"
|
10
10
|
{% endif %}
|
11
11
|
{% endcapture %}
|
12
|
-
<html lang="{{
|
12
|
+
<html lang="{{ lang }}"{{ prefer_mode }}>
|
13
13
|
{% include head.html %}
|
14
14
|
<body data-spy="scroll" data-target="#toc" data-navbar-visible="true">
|
15
15
|
{% if page.header %}
|
16
16
|
{% if page.header == "wide" %}
|
17
|
-
{% include header-wide.html %}
|
17
|
+
{% include views/header-wide.html %}
|
18
18
|
{% elsif page.header == "regular" %}
|
19
|
-
{% include header.html %}
|
19
|
+
{% include views/header.html %}
|
20
20
|
{% elsif page.header == "banner" %}
|
21
|
-
{% include header-banner.html %}
|
21
|
+
{% include views/header-banner.html %}
|
22
22
|
{% endif %}
|
23
23
|
{% endif %}
|
24
|
-
{% include navbar.html %}
|
25
|
-
{% include breadcrumbs.html %}
|
24
|
+
{% include elements/navbar.html %}
|
25
|
+
{% include elements/breadcrumbs.html %}
|
26
26
|
{% if page.top-panel %}
|
27
27
|
{% if page.top-panel == "full" %}
|
28
|
-
{% include panel-top-full.html %}
|
28
|
+
{% include views/panel-top-full.html %}
|
29
29
|
{% elsif page.top-panel == "2-cols" %}
|
30
|
-
{% include panel-top-2.html %}
|
30
|
+
{% include views/panel-top-2.html %}
|
31
31
|
{% elsif page.top-panel == "3-cols" %}
|
32
|
-
{% include panel-top-3.html %}
|
32
|
+
{% include views/panel-top-3.html %}
|
33
33
|
{% elsif page.top-panel == "4-cols" %}
|
34
|
-
{% include panel-top-4.html %}
|
34
|
+
{% include views/panel-top-4.html %}
|
35
35
|
{% endif %}
|
36
36
|
{% endif %}
|
37
37
|
<div id="main-wrapper" class="d-flex justify-content-center">
|
@@ -40,28 +40,26 @@ layout: compress
|
|
40
40
|
</div>
|
41
41
|
</div>
|
42
42
|
{% if page.bottom-panel %}
|
43
|
-
{% include panel-bottom.html %}
|
43
|
+
{% include views/panel-bottom.html %}
|
44
44
|
{% endif %}
|
45
45
|
{% if page.foot-panel %}
|
46
46
|
{% if page.foot-panel == "full" %}
|
47
|
-
{% include panel-foot-full.html %}
|
47
|
+
{% include views/panel-foot-full.html %}
|
48
48
|
{% elsif page.foot-panel == "2-cols" %}
|
49
|
-
{% include panel-foot-2.html %}
|
49
|
+
{% include views/panel-foot-2.html %}
|
50
50
|
{% elsif page.foot-panel == "3-cols" %}
|
51
|
-
{% include panel-foot-3.html %}
|
51
|
+
{% include views/panel-foot-3.html %}
|
52
52
|
{% elsif page.foot-panel == "4-cols" %}
|
53
|
-
{% include panel-foot-4.html %}
|
53
|
+
{% include views/panel-foot-4.html %}
|
54
54
|
{% endif %}
|
55
55
|
{% endif %}
|
56
|
-
{% include footer.html %}
|
57
|
-
{% include copyright.html %}
|
56
|
+
{% include views/footer.html %}
|
57
|
+
{% include views/copyright.html %}
|
58
58
|
<div id="mask"></div>
|
59
|
-
{% if page.to-top %}{% include back-to-top.html %}{% endif %}
|
60
|
-
{% include search-results.html %}
|
61
|
-
{% if page.mermaid %}{% include mermaid.html %}{% endif %}
|
59
|
+
{% if page.to-top %}{% include elements/back-to-top.html %}{% endif %}
|
60
|
+
{% include elements/search-results.html %}
|
62
61
|
{% if site.pwa.enabled %}
|
63
|
-
<div id="notification" class="toast" role="alert" aria-live="assertive" aria-atomic="true"
|
64
|
-
data-animation="true" data-autohide="false">
|
62
|
+
<div id="notification" class="toast" role="alert" aria-live="assertive" aria-atomic="true" data-animation="true" data-autohide="false">
|
65
63
|
<div class="toast-header">
|
66
64
|
<button type="button" class="ml-2 ml-auto close" data-dismiss="toast" aria-label="Close">
|
67
65
|
<span aria-hidden="true">×</span>
|
@@ -75,7 +73,7 @@ layout: compress
|
|
75
73
|
</div>
|
76
74
|
</div>
|
77
75
|
{% endif %}
|
78
|
-
{% include search-loader.html %}
|
79
|
-
{% include javascript.html %}
|
76
|
+
{% include elements/search-loader.html %}
|
77
|
+
{% include elements/javascript.html %}
|
80
78
|
</body>
|
81
79
|
</html>
|
data/_layouts/panel-right.html
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
---
|
2
|
-
layout: compress
|
3
|
-
---
|
4
|
-
<!DOCTYPE html>
|
5
|
-
<html>
|
6
|
-
<head>
|
7
|
-
<meta charset="utf-8">
|
8
|
-
<title>{{ page.title }}</title>
|
9
|
-
</head>
|
10
|
-
<body>
|
11
|
-
{% include navigation.html %}
|
12
|
-
{{ content }}
|
13
|
-
</body>
|
1
|
+
---
|
2
|
+
layout: compress
|
3
|
+
---
|
4
|
+
<!DOCTYPE html>
|
5
|
+
<html>
|
6
|
+
<head>
|
7
|
+
<meta charset="utf-8">
|
8
|
+
<title>{{ page.title }}</title>
|
9
|
+
</head>
|
10
|
+
<body>
|
11
|
+
{% include navigation.html %}
|
12
|
+
{{ content }}
|
13
|
+
</body>
|
14
14
|
</html>
|
data/_layouts/post.html
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
---
|
2
|
-
layout: default
|
3
|
-
---
|
4
|
-
|
5
|
-
{{ content }}
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
{{ content }}
|
data/_layouts/tag.html
CHANGED
data/_layouts/tags.html
CHANGED
File without changes
|