jekyll-bonsai 0.0.3
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 +674 -0
- data/README.md +11 -0
- data/_config.yml +155 -0
- data/_entries/digital-garden.bonsai.md +36 -0
- data/_entries/digital-garden.field-logs.md +10 -0
- data/_entries/digital-garden.fork.md +10 -0
- data/_entries/digital-garden.md +17 -0
- data/_entries/digital-garden.path.md +11 -0
- data/_entries/digital-garden.plants.md +12 -0
- data/_entries/digital-garden.pollinate.md +10 -0
- data/_entries/digital-garden.steps.md +10 -0
- data/_entries/digital-garden.stream.md +12 -0
- data/_entries/digital-garden.sweep.md +12 -0
- data/_entries/digital-garden.weather.md +12 -0
- data/_entries/features.md +10 -0
- data/_entries/features.notes.hover-preview.md +10 -0
- data/_entries/features.notes.md +12 -0
- data/_entries/features.notes.note-body.md +12 -0
- data/_entries/features.notes.note-body.share.md +10 -0
- data/_entries/features.notes.note-body.sidenotes.md +52 -0
- data/_entries/features.notes.note-foot.links.md +10 -0
- data/_entries/features.notes.note-foot.md +11 -0
- data/_entries/features.notes.note-foot.posts.md +10 -0
- data/_entries/features.notes.note-foot.webmentions.md +10 -0
- data/_entries/features.notes.note-head.md +10 -0
- data/_entries/features.pages.field-blogs.md +10 -0
- data/_entries/features.pages.md +12 -0
- data/_entries/features.pages.recent.md +10 -0
- data/_entries/features.pages.status-tags.md +10 -0
- data/_entries/features.site-nav.graph.links.md +10 -0
- data/_entries/features.site-nav.graph.links.namespacing.md +14 -0
- data/_entries/features.site-nav.graph.links.wikilinks.md +25 -0
- data/_entries/features.site-nav.graph.md +12 -0
- data/_entries/features.site-nav.graph.nodes.current-note.md +10 -0
- data/_entries/features.site-nav.graph.nodes.md +12 -0
- data/_entries/features.site-nav.graph.nodes.mia.missing-note.md +20 -0
- data/_entries/features.site-nav.graph.nodes.visited-status.md +10 -0
- data/_entries/features.site-nav.graph.toggle-graph.md +13 -0
- data/_entries/features.site-nav.graph.type.md +16 -0
- data/_entries/features.site-nav.graph.type.net-web.md +10 -0
- data/_entries/features.site-nav.graph.type.tree.md +12 -0
- data/_entries/features.site-nav.md +10 -0
- data/_entries/features.site-nav.visited.md +14 -0
- data/_entries/features.tags.md +13 -0
- data/_entries/features.themes.dark.md +12 -0
- data/_entries/features.themes.light.md +10 -0
- data/_entries/features.themes.md +12 -0
- data/_entries/features.visited.delete-data.md +10 -0
- data/_entries/features.visited.md +12 -0
- data/_entries/features.visitor-preferences.md +27 -0
- data/_entries/feedback.md +10 -0
- data/_entries/people.creator.md +12 -0
- data/_entries/people.md +13 -0
- data/_entries/people.visitors.md +12 -0
- data/_entries/plugins.jekyll-wikilinks.md +10 -0
- data/_entries/plugins.md +10 -0
- data/_entries/root.md +26 -0
- data/_includes/anchor-headings.html +152 -0
- data/_includes/connect.html +44 -0
- data/_includes/entry-attrs.html +27 -0
- data/_includes/head.html +23 -0
- data/_includes/hover-preview.html +84 -0
- data/_includes/img/bullet-ancestor.svg +5 -0
- data/_includes/img/bullet-net-web.svg +9 -0
- data/_includes/img/bullet-tree.svg +9 -0
- data/_includes/metrics.html +10 -0
- data/_includes/share.html +45 -0
- data/_includes/site-nav.html +48 -0
- data/_includes/styles.scss.liquid +3 -0
- data/_layouts/default.html +39 -0
- data/_layouts/entry.html +124 -0
- data/_layouts/post.html +29 -0
- data/_layouts/state.html +59 -0
- data/_layouts/table-wrappers.html +7 -0
- data/_layouts/vendor/compress.html +10 -0
- data/_pages/about.md +7 -0
- data/_pages/posts.html +19 -0
- data/_pages/recent.html +48 -0
- data/_plugins/doc_filters.rb +44 -0
- data/_plugins/prep_entry.rb +43 -0
- data/_plugins/sidenote.rb +123 -0
- data/_plugins/tags.rb +52 -0
- data/_sass/base/_layout.scss +54 -0
- data/_sass/base/_main.scss +203 -0
- data/_sass/base/_typography.scss +75 -0
- data/_sass/base/base.scss +3 -0
- data/_sass/color/dark.scss +58 -0
- data/_sass/color/light.scss +58 -0
- data/_sass/includes/_btn.scss +106 -0
- data/_sass/includes/_graph.scss +69 -0
- data/_sass/includes/_nav.scss +89 -0
- data/_sass/includes/_site_nav.scss +221 -0
- data/_sass/includes/_tooltip.scss +29 -0
- data/_sass/includes/includes.scss +9 -0
- data/_sass/markdown/_code.scss +340 -0
- data/_sass/markdown/_content.scss +400 -0
- data/_sass/markdown/_tables.scss +60 -0
- data/_sass/markdown/markdown.scss +7 -0
- data/_sass/modules.scss +14 -0
- data/_sass/pages/_index.scss +72 -0
- data/_sass/pages/_posts.scss +17 -0
- data/_sass/pages/_recent.scss +26 -0
- data/_sass/pages/_state.scss +72 -0
- data/_sass/pages/pages.scss +4 -0
- data/_sass/support/_functions.scss +9 -0
- data/_sass/support/_variables.scss +179 -0
- data/_sass/support/mixins/_buttons.scss +27 -0
- data/_sass/support/mixins/_layout.scss +56 -0
- data/_sass/support/mixins/_typography.scss +84 -0
- data/_sass/support/mixins/mixins.scss +3 -0
- data/_sass/support/support.scss +3 -0
- data/_sass/vendor/normalize.scss/README.md +7 -0
- data/_sass/vendor/normalize.scss/normalize.scss +349 -0
- data/_states/bamboo.md +8 -0
- data/_states/berry.md +8 -0
- data/_states/bloom.md +8 -0
- data/_states/bud.md +6 -0
- data/_states/fruit.md +8 -0
- data/_states/melon.md +8 -0
- data/_states/pot-bamboo.md +8 -0
- data/_states/seed.md +8 -0
- data/_states/sprout.md +8 -0
- data/_states/tags.md +8 -0
- data/_states/tea.md +8 -0
- data/assets/css/styles-dark.scss +3 -0
- data/assets/css/styles-light.scss +3 -0
- data/assets/css/styles.scss +8 -0
- data/assets/font/Cutive_Mono/CutiveMono-Regular.ttf +0 -0
- data/assets/font/Cutive_Mono/OFL.txt +93 -0
- data/assets/font/Old_Standard_TT/OFL.txt +93 -0
- data/assets/font/Old_Standard_TT/OldStandardTT-Bold.ttf +0 -0
- data/assets/font/Old_Standard_TT/OldStandardTT-Italic.ttf +0 -0
- data/assets/font/Old_Standard_TT/OldStandardTT-Regular.ttf +0 -0
- data/assets/font/exo2/Exo2-Italic-VariableFont_wght.ttf +0 -0
- data/assets/font/exo2/Exo2-VariableFont_wght.ttf +0 -0
- data/assets/font/exo2/OFL.txt +93 -0
- data/assets/font/exo2/README.txt +81 -0
- data/assets/font/exo2/static/Exo2-Black.ttf +0 -0
- data/assets/font/exo2/static/Exo2-BlackItalic.ttf +0 -0
- data/assets/font/exo2/static/Exo2-Bold.ttf +0 -0
- data/assets/font/exo2/static/Exo2-BoldItalic.ttf +0 -0
- data/assets/font/exo2/static/Exo2-ExtraBold.ttf +0 -0
- data/assets/font/exo2/static/Exo2-ExtraBoldItalic.ttf +0 -0
- data/assets/font/exo2/static/Exo2-ExtraLight.ttf +0 -0
- data/assets/font/exo2/static/Exo2-ExtraLightItalic.ttf +0 -0
- data/assets/font/exo2/static/Exo2-Italic.ttf +0 -0
- data/assets/font/exo2/static/Exo2-Light.ttf +0 -0
- data/assets/font/exo2/static/Exo2-LightItalic.ttf +0 -0
- data/assets/font/exo2/static/Exo2-Medium.ttf +0 -0
- data/assets/font/exo2/static/Exo2-MediumItalic.ttf +0 -0
- data/assets/font/exo2/static/Exo2-Regular.ttf +0 -0
- data/assets/font/exo2/static/Exo2-SemiBold.ttf +0 -0
- data/assets/font/exo2/static/Exo2-SemiBoldItalic.ttf +0 -0
- data/assets/font/exo2/static/Exo2-Thin.ttf +0 -0
- data/assets/font/exo2/static/Exo2-ThinItalic.ttf +0 -0
- data/assets/img/bonsai-dark.png +0 -0
- data/assets/img/bonsai-dark.svg +106 -0
- data/assets/img/bonsai-light.png +0 -0
- data/assets/img/bonsai-light.svg +81 -0
- data/assets/img/favicon-dark.png +0 -0
- data/assets/img/favicon-light.png +0 -0
- data/assets/img/nav-base-dark.svg +1 -0
- data/assets/img/nav-base-light.svg +1 -0
- data/assets/img/nav-bonsai-dark.svg +1 -0
- data/assets/img/nav-bonsai-light.svg +1 -0
- data/assets/img/nav-dot-dark.svg +1 -0
- data/assets/img/nav-dot-light.svg +1 -0
- data/assets/img/nav-wiki-links-dark.svg +1 -0
- data/assets/img/nav-wiki-links-light.svg +1 -0
- data/assets/js/entry.js +102 -0
- data/assets/js/graph.js +552 -0
- data/assets/js/scripts.js +80 -0
- data/assets/js/site-nav.js +132 -0
- data/assets/js/theme-colors.js +71 -0
- data/index.html +82 -0
- metadata +360 -0
@@ -0,0 +1,80 @@
|
|
1
|
+
---
|
2
|
+
---
|
3
|
+
import GraphNav from './graph.js';
|
4
|
+
import ThemeColors from './theme-colors.js';
|
5
|
+
import Entry from './entry.js';
|
6
|
+
import SiteNav from './site-nav.js';
|
7
|
+
|
8
|
+
//
|
9
|
+
// go
|
10
|
+
//
|
11
|
+
// from: https://stackoverflow.com/questions/9899372/pure-javascript-equivalent-of-jquerys-ready-how-to-call-a-function-when-t
|
12
|
+
(() => {
|
13
|
+
// your page initialization code here
|
14
|
+
// the DOM will be available here
|
15
|
+
initListeners();
|
16
|
+
new ThemeColors();
|
17
|
+
new SiteNav();
|
18
|
+
new GraphNav();
|
19
|
+
if (document.getElementById('entry')) {
|
20
|
+
new Entry();
|
21
|
+
}
|
22
|
+
})();
|
23
|
+
|
24
|
+
//
|
25
|
+
// init
|
26
|
+
//
|
27
|
+
function initListeners () {
|
28
|
+
// open external links in new window; wiki-links in current window.
|
29
|
+
document.querySelectorAll("a:not(.wiki-link):not(.wiki-link-embed-link):not(.sem-tag):not(.stat-tag):not(.anchor-heading):not(.footnote):not(.reversefootnote)").forEach(setupLinkOpen);
|
30
|
+
// init hover-preview.html listeners.
|
31
|
+
document.querySelectorAll('{{ include.wrapperQuerySelector }} a:not(.wiki-link-embed-link):not(.stat-tag):not(.anchor-heading)').forEach(setupListeners);
|
32
|
+
|
33
|
+
document.getElementById('stat-tags-btn')
|
34
|
+
.addEventListener('click', function(event) {
|
35
|
+
goTo('{{ site.baseurl }}/stat/tags');
|
36
|
+
}, false);
|
37
|
+
document.getElementById('posts-btn')
|
38
|
+
.addEventListener('click', function(event) {
|
39
|
+
goTo('{{ site.baseurl }}/posts');
|
40
|
+
}, false);
|
41
|
+
document.getElementById('recent-btn')
|
42
|
+
.addEventListener('click', function(event) {
|
43
|
+
goTo('{{ site.baseurl }}/recent');
|
44
|
+
}, false);
|
45
|
+
document.getElementById('home-btn')
|
46
|
+
.addEventListener('click', function(event) {
|
47
|
+
goTo('{{ site.baseurl }}/');
|
48
|
+
}, false);
|
49
|
+
|
50
|
+
document.getElementById('wiki-link-nav-checkbox')
|
51
|
+
.addEventListener('click', function(event) {
|
52
|
+
expandGraphNav();
|
53
|
+
document.getElementById('svg-graph').dispatchEvent(new Event('draw')); // tell graph to redraw itself
|
54
|
+
}, false);
|
55
|
+
}
|
56
|
+
|
57
|
+
//
|
58
|
+
// helpers
|
59
|
+
//
|
60
|
+
function goTo (location) {
|
61
|
+
window.location.href = location;
|
62
|
+
}
|
63
|
+
|
64
|
+
function setupLinkOpen (link) {
|
65
|
+
link.setAttribute("target", "_blank");
|
66
|
+
link.setAttribute("rel", "noopener"); // for security: https://css-tricks.com/use-target_blank/#correct-html
|
67
|
+
}
|
68
|
+
|
69
|
+
function expandGraphNav() {
|
70
|
+
var siteNav = document.getElementById('site-nav');
|
71
|
+
var wikiBonsai = document.getElementById('nav-bonsai');
|
72
|
+
|
73
|
+
if (document.getElementById('wiki-link-nav-checkbox').checked) {
|
74
|
+
siteNav.classList.add('nav-open');
|
75
|
+
wikiBonsai.hidden = false;
|
76
|
+
} else {
|
77
|
+
siteNav.classList.remove('nav-open');
|
78
|
+
wikiBonsai.hidden = true;
|
79
|
+
}
|
80
|
+
}
|
@@ -0,0 +1,132 @@
|
|
1
|
+
---
|
2
|
+
---
|
3
|
+
|
4
|
+
export default class SiteNav {
|
5
|
+
|
6
|
+
constructor() {
|
7
|
+
// this.navType set in initNavType();
|
8
|
+
// this.visited set in initVisited();
|
9
|
+
this.visitedNav = document.getElementById('visited-nav');
|
10
|
+
this.navTypeCheckBox = document.getElementById('nav-type-checkbox');
|
11
|
+
this.navTypeEmojiSpan = document.getElementById('nav-type-emoji-span');
|
12
|
+
this.deleteVisitedBtn = document.getElementById('delete-btn');
|
13
|
+
this.init();
|
14
|
+
}
|
15
|
+
|
16
|
+
init() {
|
17
|
+
this.initNavType();
|
18
|
+
this.initVisited();
|
19
|
+
this.bindEvents();
|
20
|
+
this.addVisited();
|
21
|
+
}
|
22
|
+
|
23
|
+
bindEvents() {
|
24
|
+
this.navTypeCheckBox.addEventListener('click', () => {
|
25
|
+
this.updateNavType();
|
26
|
+
});
|
27
|
+
this.deleteVisitedBtn.addEventListener('click', () => {
|
28
|
+
this.deleteVisitedHistory();
|
29
|
+
});
|
30
|
+
}
|
31
|
+
|
32
|
+
initNavType() {
|
33
|
+
this.navType = localStorage.getItem('nav-type');
|
34
|
+
if (this.navType !== "graph" && this.navType !== "tabs") {
|
35
|
+
this.navType = '{{ site.nav_type }}';
|
36
|
+
}
|
37
|
+
this.navTypeCheckBox.checked = (this.navType === "graph");
|
38
|
+
this.updateNavType();
|
39
|
+
}
|
40
|
+
|
41
|
+
initVisited() {
|
42
|
+
this.visited = JSON.parse(localStorage.getItem('visited'));
|
43
|
+
if (!this.visited) this.visited = [];
|
44
|
+
}
|
45
|
+
|
46
|
+
updateNavType() {
|
47
|
+
if (this.navTypeCheckBox.checked) {
|
48
|
+
this.navTypeEmojiSpan.innerText = "🥾";
|
49
|
+
this.navType = "graph";
|
50
|
+
this.visitedNav.classList.remove("show");
|
51
|
+
this.visitedNav.classList.add("hide");
|
52
|
+
document.getElementById("svg-graph").classList.remove("hide");
|
53
|
+
} else {
|
54
|
+
this.navTypeEmojiSpan.innerText = "🪴";
|
55
|
+
this.navType = "tabs";
|
56
|
+
document.getElementById("svg-graph").classList.add("hide");
|
57
|
+
this.visitedNav.classList.remove("hide");
|
58
|
+
this.visitedNav.classList.add("show");
|
59
|
+
}
|
60
|
+
localStorage.setItem('nav-type', this.navType);
|
61
|
+
}
|
62
|
+
|
63
|
+
//
|
64
|
+
// visited
|
65
|
+
//
|
66
|
+
|
67
|
+
addVisited() {
|
68
|
+
if (this.visited) {
|
69
|
+
// remove duplicates to current (since json and !SortedSet)
|
70
|
+
// step backward so splicing doesn't change indeces as tabs are removed
|
71
|
+
for (var i = this.visited.length - 1; i > -1; i--) {
|
72
|
+
let aTab = this.visited[i];
|
73
|
+
if ((aTab['title'] == window.document.title)
|
74
|
+
&& (aTab['url'] == window.location.pathname)) {
|
75
|
+
this.visited.splice(i, 1);
|
76
|
+
}
|
77
|
+
}
|
78
|
+
this.visited.push({ title: window.document.title, url: window.location.pathname });
|
79
|
+
localStorage.setItem('visited', JSON.stringify(this.visited));
|
80
|
+
}
|
81
|
+
this.buildVisitedTabs();
|
82
|
+
}
|
83
|
+
|
84
|
+
deleteVisitedHistory() {
|
85
|
+
// reset visited data
|
86
|
+
this.visited = [];
|
87
|
+
localStorage.setItem('visited', JSON.stringify([]));
|
88
|
+
// reset visible elements
|
89
|
+
document.getElementById('svg-graph').dispatchEvent(new Event('draw')); // tell graph to redraw itself
|
90
|
+
this.visitedNav.innerHTML = "";
|
91
|
+
this.buildVisitedTabs();
|
92
|
+
}
|
93
|
+
|
94
|
+
//
|
95
|
+
// dynamically built elements
|
96
|
+
//
|
97
|
+
|
98
|
+
buildNavLink(title, url) {
|
99
|
+
var visitedNavLink = document.createElement('a');
|
100
|
+
visitedNavLink.setAttribute('href', url);
|
101
|
+
visitedNavLink.classList.add('wiki-link');
|
102
|
+
visitedNavLink.innerText = title;
|
103
|
+
return visitedNavLink;
|
104
|
+
}
|
105
|
+
|
106
|
+
buildNavList() {
|
107
|
+
var visitedNavList = document.createElement('ul');
|
108
|
+
visitedNavList.classList.add('visited-nav-list');
|
109
|
+
return visitedNavList;
|
110
|
+
}
|
111
|
+
|
112
|
+
buildNavListItem(i, o) {
|
113
|
+
var visitedNavListItem = document.createElement('li');
|
114
|
+
visitedNavListItem.classList.add('visited-nav-list-item');
|
115
|
+
visitedNavListItem.classList.add('show');
|
116
|
+
visitedNavListItem.setAttribute('style', `--animation-show-order: ${i};`);
|
117
|
+
// visitedNavListItem.setAttribute('style', `--animation-hide-order: ${o};`);
|
118
|
+
return visitedNavListItem;
|
119
|
+
}
|
120
|
+
|
121
|
+
buildVisitedTabs() {
|
122
|
+
var visitedNavList = this.buildNavList();
|
123
|
+
this.visitedNav.appendChild(visitedNavList);
|
124
|
+
for (var i = this.visited.length - 1; i > -1; i--) {
|
125
|
+
const visitedDoc = this.visited[i];
|
126
|
+
var visitedNavListItem = this.buildNavListItem(this.visited.length - i, i);
|
127
|
+
var visitedNavLink = this.buildNavLink(visitedDoc['title'], visitedDoc['url']);
|
128
|
+
visitedNavListItem.appendChild(visitedNavLink);
|
129
|
+
visitedNavList.appendChild(visitedNavListItem);
|
130
|
+
}
|
131
|
+
}
|
132
|
+
}
|
@@ -0,0 +1,71 @@
|
|
1
|
+
---
|
2
|
+
---
|
3
|
+
|
4
|
+
export default class ThemeColors {
|
5
|
+
constructor() {
|
6
|
+
// this.theme set in initThemeColors();
|
7
|
+
this.cssFile = document.querySelector('[rel="stylesheet"]');
|
8
|
+
this.favicon = document.querySelector('[rel="icon"]');
|
9
|
+
this.navBonsai = document.getElementById('nav-bonsai');
|
10
|
+
this.navBase = document.getElementById('nav-base');
|
11
|
+
this.themeColorsCheckbox = document.getElementById('theme-colors-checkbox');
|
12
|
+
this.themeColorsEmojiSpan = document.getElementById('theme-colors-emoji-span');
|
13
|
+
// home-page logo
|
14
|
+
this.homeBonsaiLogo = document.getElementById('home-bonsai');
|
15
|
+
this.init();
|
16
|
+
}
|
17
|
+
|
18
|
+
init() {
|
19
|
+
this.initThemeColors();
|
20
|
+
this.bindEvents();
|
21
|
+
}
|
22
|
+
|
23
|
+
bindEvents() {
|
24
|
+
this.themeColorsCheckbox.addEventListener('click', () => {
|
25
|
+
this.updateThemeColors();
|
26
|
+
document.getElementById('svg-graph').dispatchEvent(new Event('draw')); // tell graph to redraw itself
|
27
|
+
});
|
28
|
+
}
|
29
|
+
|
30
|
+
initThemeColors() {
|
31
|
+
this.theme = localStorage.getItem("theme-colors");
|
32
|
+
if (this.theme !== "dark" && this.theme !== "light") {
|
33
|
+
this.theme = getComputedStyle(document.documentElement).getPropertyValue('content');
|
34
|
+
}
|
35
|
+
this.themeColorsCheckbox.checked = (this.theme === "dark");
|
36
|
+
this.updateThemeColors();
|
37
|
+
}
|
38
|
+
|
39
|
+
updateThemeColors () {
|
40
|
+
// toggle theme colors
|
41
|
+
if (this.themeColorsCheckbox.checked) {
|
42
|
+
this.themeColorsEmojiSpan.innerHTML = "☀️";
|
43
|
+
this.theme = "dark";
|
44
|
+
} else {
|
45
|
+
this.themeColorsEmojiSpan.innerHTML = "🌘";
|
46
|
+
this.theme = "light";
|
47
|
+
}
|
48
|
+
// update css file
|
49
|
+
const yesThisReallyIsSupposedToBeCSSNotSCSS = '.css'
|
50
|
+
this.cssFile.setAttribute('href', "{{site.baseurl}}/assets/css/styles-" + this.theme + yesThisReallyIsSupposedToBeCSSNotSCSS);
|
51
|
+
// update icons and images
|
52
|
+
this.favicon.setAttribute('href', "{{site.baseurl}}/assets/img/favicon-" + this.theme + ".png");
|
53
|
+
this.navBonsai.setAttribute('src', "{{site.baseurl}}/assets/img/nav-bonsai-" + this.theme + ".svg");
|
54
|
+
this.navBase.setAttribute('src', "{{site.baseurl}}/assets/img/nav-base-" + this.theme + ".svg");
|
55
|
+
if (this.homeBonsaiLogo) {
|
56
|
+
this.homeBonsaiLogo.setAttribute('src', "{{site.baseurl}}/assets/img/bonsai-" + this.theme + ".svg");
|
57
|
+
}
|
58
|
+
// update bullet icon colors
|
59
|
+
let bulletLinks = document.getElementsByClassName('bullet-link');
|
60
|
+
Array.prototype.forEach.call(bulletLinks, (bl) => {
|
61
|
+
// using $link-line-stroke-color
|
62
|
+
if (this.theme == 'dark') {
|
63
|
+
bl.style.stroke = '#5c5962'; // $grey-dk-200
|
64
|
+
} else {
|
65
|
+
bl.style.stroke = '#8C6239'; // $brown-02
|
66
|
+
}
|
67
|
+
});
|
68
|
+
// save to local storage
|
69
|
+
window.localStorage.setItem('theme-colors', this.theme);
|
70
|
+
}
|
71
|
+
}
|
data/index.html
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
title: Home
|
4
|
+
---
|
5
|
+
<div id="home">
|
6
|
+
|
7
|
+
<div class="lead">
|
8
|
+
<img id="home-bonsai" height="45%" width="45%">
|
9
|
+
<h1><a class="wiki-link" href="{{ '/entry/e4dc466bc6/' | relative_url }}">Jekyll-Bonsai</a></h3>
|
10
|
+
</div>
|
11
|
+
|
12
|
+
<div class="main-columns">
|
13
|
+
|
14
|
+
<div class="column">
|
15
|
+
<h3 class="column-heading">Notable</h3>
|
16
|
+
<div class="column-content">
|
17
|
+
{% assign notable_entries = site.entries | notable %}
|
18
|
+
{% for entry in notable_entries %}
|
19
|
+
<div class="column-item">
|
20
|
+
<div class="column-name">
|
21
|
+
{% assign stat_tags = entry.tags | stat_tags %}
|
22
|
+
{% for stat_tag in stat_tags %}
|
23
|
+
<a class="stat-tag" href="{{ stat_tag.url | relative_url }}">{{ stat_tag.emoji }}</a>
|
24
|
+
{% endfor %}
|
25
|
+
<a class="wiki-link" href="{{ entry.url | relative_url }}"> {{ entry.title }}</a>
|
26
|
+
</div>
|
27
|
+
<span class="small-descr">{{ entry.updated | date: "%Y-%m-%d" }}</span>
|
28
|
+
</div>
|
29
|
+
{% endfor %}
|
30
|
+
{% assign notable_posts = site.posts | notable %}
|
31
|
+
{% for post in notable_posts %}
|
32
|
+
<div class="column-item">
|
33
|
+
<div class="column-name">
|
34
|
+
{% assign stat_tags = entry.tags | stat_tags %}
|
35
|
+
{% for stat_tag in stat_tags %}
|
36
|
+
<a class="stat-tag" href="{{ stat_tag.url | relative_url }}">{{ stat_tag.emoji }}</a>
|
37
|
+
{% endfor %}
|
38
|
+
<a class="wiki-link" href="{{ post.url | relative_url }}">📄 {{ post.title }}</a>
|
39
|
+
</div>
|
40
|
+
<span class="small-descr">{{ post.updated | date: "%Y-%m-%d" }}</span>
|
41
|
+
</div>
|
42
|
+
{% endfor %}
|
43
|
+
</div>
|
44
|
+
<p class="column-foot">For more, see <a class="wiki-link" href="{{ '/about/' | relative_url }}">about</a></p>
|
45
|
+
</div>
|
46
|
+
|
47
|
+
<div class="column">
|
48
|
+
<h3 class="column-heading">Recent</h3>
|
49
|
+
<div class="column-content">
|
50
|
+
{% assign recent_entries = site.entries | recent: 5 %}
|
51
|
+
{% for entry in recent_entries %}
|
52
|
+
<div class="column-item">
|
53
|
+
<div class="column-name">
|
54
|
+
{% assign stat_tags = entry.tags | stat_tags %}
|
55
|
+
{% for stat_tag in stat_tags %}
|
56
|
+
<a class="stat-tag" href="{{ stat_tag.url | relative_url }}">{{ stat_tag.emoji }}</a>
|
57
|
+
{% endfor %}
|
58
|
+
<a class="wiki-link" href="{{ entry.url | relative_url }}"> {{ entry.title }}</a>
|
59
|
+
</div>
|
60
|
+
<span class="small-descr">{{ entry.updated | date: "%Y-%m-%d" }}</span>
|
61
|
+
</div>
|
62
|
+
{% endfor %}
|
63
|
+
{% assign recent_posts = site.posts | recent: 5 %}
|
64
|
+
{% for post in recent_posts %}
|
65
|
+
<div class="column-item">
|
66
|
+
<div class="column-name">
|
67
|
+
{% assign stat_tags = entry.tags | stat_tags %}
|
68
|
+
{% for stat_tag in stat_tags %}
|
69
|
+
<a class="stat-tag" href="{{ stat_tag.url | relative_url }}">{{ stat_tag.emoji }}</a>
|
70
|
+
{% endfor %}
|
71
|
+
<a class="wiki-link" href="{{ post.url | relative_url }}">📄 {{ post.title }}</a>
|
72
|
+
</div>
|
73
|
+
<span class="small-descr">{{ post.updated | date: "%Y-%m-%d" }}</span>
|
74
|
+
</div>
|
75
|
+
{% endfor %}
|
76
|
+
</div>
|
77
|
+
<p class="column-foot">For more updates, check the <a class="wiki-link" href="{{ '/recent/' | relative_url }}">weather 🌦</a></p>
|
78
|
+
</div>
|
79
|
+
|
80
|
+
</div>
|
81
|
+
|
82
|
+
</div>
|
metadata
ADDED
@@ -0,0 +1,360 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jekyll-bonsai
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.3
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- manunamz
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2021-07-27 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: jekyll
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '4.2'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '4.2'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: nanoid
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: jekyll-sitemap
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: jekyll-feed
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: jekyll-seo-tag
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: jekyll-namespaces
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 0.0.2
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 0.0.2
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: jekyll-wikilinks
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 0.0.6
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 0.0.6
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: webrick
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '1.7'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '1.7'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: rake
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rspec
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
description:
|
154
|
+
email:
|
155
|
+
- manunamz@pm.me
|
156
|
+
executables: []
|
157
|
+
extensions: []
|
158
|
+
extra_rdoc_files: []
|
159
|
+
files:
|
160
|
+
- LICENSE.txt
|
161
|
+
- README.md
|
162
|
+
- _config.yml
|
163
|
+
- _entries/digital-garden.bonsai.md
|
164
|
+
- _entries/digital-garden.field-logs.md
|
165
|
+
- _entries/digital-garden.fork.md
|
166
|
+
- _entries/digital-garden.md
|
167
|
+
- _entries/digital-garden.path.md
|
168
|
+
- _entries/digital-garden.plants.md
|
169
|
+
- _entries/digital-garden.pollinate.md
|
170
|
+
- _entries/digital-garden.steps.md
|
171
|
+
- _entries/digital-garden.stream.md
|
172
|
+
- _entries/digital-garden.sweep.md
|
173
|
+
- _entries/digital-garden.weather.md
|
174
|
+
- _entries/features.md
|
175
|
+
- _entries/features.notes.hover-preview.md
|
176
|
+
- _entries/features.notes.md
|
177
|
+
- _entries/features.notes.note-body.md
|
178
|
+
- _entries/features.notes.note-body.share.md
|
179
|
+
- _entries/features.notes.note-body.sidenotes.md
|
180
|
+
- _entries/features.notes.note-foot.links.md
|
181
|
+
- _entries/features.notes.note-foot.md
|
182
|
+
- _entries/features.notes.note-foot.posts.md
|
183
|
+
- _entries/features.notes.note-foot.webmentions.md
|
184
|
+
- _entries/features.notes.note-head.md
|
185
|
+
- _entries/features.pages.field-blogs.md
|
186
|
+
- _entries/features.pages.md
|
187
|
+
- _entries/features.pages.recent.md
|
188
|
+
- _entries/features.pages.status-tags.md
|
189
|
+
- _entries/features.site-nav.graph.links.md
|
190
|
+
- _entries/features.site-nav.graph.links.namespacing.md
|
191
|
+
- _entries/features.site-nav.graph.links.wikilinks.md
|
192
|
+
- _entries/features.site-nav.graph.md
|
193
|
+
- _entries/features.site-nav.graph.nodes.current-note.md
|
194
|
+
- _entries/features.site-nav.graph.nodes.md
|
195
|
+
- _entries/features.site-nav.graph.nodes.mia.missing-note.md
|
196
|
+
- _entries/features.site-nav.graph.nodes.visited-status.md
|
197
|
+
- _entries/features.site-nav.graph.toggle-graph.md
|
198
|
+
- _entries/features.site-nav.graph.type.md
|
199
|
+
- _entries/features.site-nav.graph.type.net-web.md
|
200
|
+
- _entries/features.site-nav.graph.type.tree.md
|
201
|
+
- _entries/features.site-nav.md
|
202
|
+
- _entries/features.site-nav.visited.md
|
203
|
+
- _entries/features.tags.md
|
204
|
+
- _entries/features.themes.dark.md
|
205
|
+
- _entries/features.themes.light.md
|
206
|
+
- _entries/features.themes.md
|
207
|
+
- _entries/features.visited.delete-data.md
|
208
|
+
- _entries/features.visited.md
|
209
|
+
- _entries/features.visitor-preferences.md
|
210
|
+
- _entries/feedback.md
|
211
|
+
- _entries/people.creator.md
|
212
|
+
- _entries/people.md
|
213
|
+
- _entries/people.visitors.md
|
214
|
+
- _entries/plugins.jekyll-wikilinks.md
|
215
|
+
- _entries/plugins.md
|
216
|
+
- _entries/root.md
|
217
|
+
- _includes/anchor-headings.html
|
218
|
+
- _includes/connect.html
|
219
|
+
- _includes/entry-attrs.html
|
220
|
+
- _includes/head.html
|
221
|
+
- _includes/hover-preview.html
|
222
|
+
- _includes/img/bullet-ancestor.svg
|
223
|
+
- _includes/img/bullet-net-web.svg
|
224
|
+
- _includes/img/bullet-tree.svg
|
225
|
+
- _includes/metrics.html
|
226
|
+
- _includes/share.html
|
227
|
+
- _includes/site-nav.html
|
228
|
+
- _includes/styles.scss.liquid
|
229
|
+
- _layouts/default.html
|
230
|
+
- _layouts/entry.html
|
231
|
+
- _layouts/post.html
|
232
|
+
- _layouts/state.html
|
233
|
+
- _layouts/table-wrappers.html
|
234
|
+
- _layouts/vendor/compress.html
|
235
|
+
- _pages/about.md
|
236
|
+
- _pages/posts.html
|
237
|
+
- _pages/recent.html
|
238
|
+
- _plugins/doc_filters.rb
|
239
|
+
- _plugins/prep_entry.rb
|
240
|
+
- _plugins/sidenote.rb
|
241
|
+
- _plugins/tags.rb
|
242
|
+
- _sass/base/_layout.scss
|
243
|
+
- _sass/base/_main.scss
|
244
|
+
- _sass/base/_typography.scss
|
245
|
+
- _sass/base/base.scss
|
246
|
+
- _sass/color/dark.scss
|
247
|
+
- _sass/color/light.scss
|
248
|
+
- _sass/includes/_btn.scss
|
249
|
+
- _sass/includes/_graph.scss
|
250
|
+
- _sass/includes/_nav.scss
|
251
|
+
- _sass/includes/_site_nav.scss
|
252
|
+
- _sass/includes/_tooltip.scss
|
253
|
+
- _sass/includes/includes.scss
|
254
|
+
- _sass/markdown/_code.scss
|
255
|
+
- _sass/markdown/_content.scss
|
256
|
+
- _sass/markdown/_tables.scss
|
257
|
+
- _sass/markdown/markdown.scss
|
258
|
+
- _sass/modules.scss
|
259
|
+
- _sass/pages/_index.scss
|
260
|
+
- _sass/pages/_posts.scss
|
261
|
+
- _sass/pages/_recent.scss
|
262
|
+
- _sass/pages/_state.scss
|
263
|
+
- _sass/pages/pages.scss
|
264
|
+
- _sass/support/_functions.scss
|
265
|
+
- _sass/support/_variables.scss
|
266
|
+
- _sass/support/mixins/_buttons.scss
|
267
|
+
- _sass/support/mixins/_layout.scss
|
268
|
+
- _sass/support/mixins/_typography.scss
|
269
|
+
- _sass/support/mixins/mixins.scss
|
270
|
+
- _sass/support/support.scss
|
271
|
+
- _sass/vendor/normalize.scss/README.md
|
272
|
+
- _sass/vendor/normalize.scss/normalize.scss
|
273
|
+
- _states/bamboo.md
|
274
|
+
- _states/berry.md
|
275
|
+
- _states/bloom.md
|
276
|
+
- _states/bud.md
|
277
|
+
- _states/fruit.md
|
278
|
+
- _states/melon.md
|
279
|
+
- _states/pot-bamboo.md
|
280
|
+
- _states/seed.md
|
281
|
+
- _states/sprout.md
|
282
|
+
- _states/tags.md
|
283
|
+
- _states/tea.md
|
284
|
+
- assets/css/styles-dark.scss
|
285
|
+
- assets/css/styles-light.scss
|
286
|
+
- assets/css/styles.scss
|
287
|
+
- assets/font/Cutive_Mono/CutiveMono-Regular.ttf
|
288
|
+
- assets/font/Cutive_Mono/OFL.txt
|
289
|
+
- assets/font/Old_Standard_TT/OFL.txt
|
290
|
+
- assets/font/Old_Standard_TT/OldStandardTT-Bold.ttf
|
291
|
+
- assets/font/Old_Standard_TT/OldStandardTT-Italic.ttf
|
292
|
+
- assets/font/Old_Standard_TT/OldStandardTT-Regular.ttf
|
293
|
+
- assets/font/exo2/Exo2-Italic-VariableFont_wght.ttf
|
294
|
+
- assets/font/exo2/Exo2-VariableFont_wght.ttf
|
295
|
+
- assets/font/exo2/OFL.txt
|
296
|
+
- assets/font/exo2/README.txt
|
297
|
+
- assets/font/exo2/static/Exo2-Black.ttf
|
298
|
+
- assets/font/exo2/static/Exo2-BlackItalic.ttf
|
299
|
+
- assets/font/exo2/static/Exo2-Bold.ttf
|
300
|
+
- assets/font/exo2/static/Exo2-BoldItalic.ttf
|
301
|
+
- assets/font/exo2/static/Exo2-ExtraBold.ttf
|
302
|
+
- assets/font/exo2/static/Exo2-ExtraBoldItalic.ttf
|
303
|
+
- assets/font/exo2/static/Exo2-ExtraLight.ttf
|
304
|
+
- assets/font/exo2/static/Exo2-ExtraLightItalic.ttf
|
305
|
+
- assets/font/exo2/static/Exo2-Italic.ttf
|
306
|
+
- assets/font/exo2/static/Exo2-Light.ttf
|
307
|
+
- assets/font/exo2/static/Exo2-LightItalic.ttf
|
308
|
+
- assets/font/exo2/static/Exo2-Medium.ttf
|
309
|
+
- assets/font/exo2/static/Exo2-MediumItalic.ttf
|
310
|
+
- assets/font/exo2/static/Exo2-Regular.ttf
|
311
|
+
- assets/font/exo2/static/Exo2-SemiBold.ttf
|
312
|
+
- assets/font/exo2/static/Exo2-SemiBoldItalic.ttf
|
313
|
+
- assets/font/exo2/static/Exo2-Thin.ttf
|
314
|
+
- assets/font/exo2/static/Exo2-ThinItalic.ttf
|
315
|
+
- assets/img/bonsai-dark.png
|
316
|
+
- assets/img/bonsai-dark.svg
|
317
|
+
- assets/img/bonsai-light.png
|
318
|
+
- assets/img/bonsai-light.svg
|
319
|
+
- assets/img/favicon-dark.png
|
320
|
+
- assets/img/favicon-light.png
|
321
|
+
- assets/img/nav-base-dark.svg
|
322
|
+
- assets/img/nav-base-light.svg
|
323
|
+
- assets/img/nav-bonsai-dark.svg
|
324
|
+
- assets/img/nav-bonsai-light.svg
|
325
|
+
- assets/img/nav-dot-dark.svg
|
326
|
+
- assets/img/nav-dot-light.svg
|
327
|
+
- assets/img/nav-wiki-links-dark.svg
|
328
|
+
- assets/img/nav-wiki-links-light.svg
|
329
|
+
- assets/js/entry.js
|
330
|
+
- assets/js/graph.js
|
331
|
+
- assets/js/scripts.js
|
332
|
+
- assets/js/site-nav.js
|
333
|
+
- assets/js/theme-colors.js
|
334
|
+
- index.html
|
335
|
+
homepage: https://manunamz.github.io/jekyll-bonsai/
|
336
|
+
licenses:
|
337
|
+
- GPL3
|
338
|
+
metadata:
|
339
|
+
plugin_type: theme
|
340
|
+
post_install_message:
|
341
|
+
rdoc_options: []
|
342
|
+
require_paths:
|
343
|
+
- lib
|
344
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
345
|
+
requirements:
|
346
|
+
- - ">="
|
347
|
+
- !ruby/object:Gem::Version
|
348
|
+
version: '0'
|
349
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
350
|
+
requirements:
|
351
|
+
- - ">="
|
352
|
+
- !ruby/object:Gem::Version
|
353
|
+
version: '0'
|
354
|
+
requirements: []
|
355
|
+
rubygems_version: 3.2.17
|
356
|
+
signing_key:
|
357
|
+
specification_version: 4
|
358
|
+
summary: These are not the gems you're looking for -- just grabbing the gem name for
|
359
|
+
now.
|
360
|
+
test_files: []
|