jekyll-bonsai 0.0.3 → 0.0.7
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 +4 -4
- data/LICENSE +676 -0
- data/README.md +3 -5
- data/_config.yml +173 -76
- data/_data/emoji.yml +45 -0
- data/_data/themes.yml +145 -0
- data/_includes/anchor-headings.html +5 -1
- data/_includes/btn_state.html +14 -0
- data/_includes/connect.html +11 -9
- data/_includes/cookie-consent.html +79 -0
- data/_includes/dates.html +22 -0
- data/_includes/hp-tooltip.html +106 -0
- data/_includes/img/bullet-net-web.svg +1 -1
- data/_includes/img/bullet-tree.svg +1 -1
- data/_includes/img/pencil-filter.svg +17 -0
- data/_includes/share.html +10 -8
- data/_includes/site-nav.html +83 -37
- data/_includes/tags.html +49 -0
- data/_includes/themes.scss.liquid +80 -0
- data/_includes/toc.html +187 -0
- data/_layouts/404.html +10 -0
- data/_layouts/about.html +14 -0
- data/_layouts/archive.html +77 -0
- data/_layouts/base.html +68 -0
- data/_layouts/book.html +40 -0
- data/_layouts/entry.html +238 -93
- data/_layouts/home.html +96 -0
- data/_layouts/post.html +30 -22
- data/_layouts/privacy.html +15 -0
- data/_layouts/recent.html +66 -0
- data/_layouts/state.html +54 -43
- data/_sass/base/_code.scss +133 -0
- data/_sass/base/_layout.scss +30 -29
- data/_sass/base/_link.scss +105 -0
- data/_sass/base/_main.scss +19 -126
- data/_sass/base/_markdown.scss +281 -0
- data/_sass/base/_typography.scss +81 -67
- data/_sass/base/code_themes/_gruvbox.scss +92 -0
- data/_sass/base/code_themes/_monokai.scss +217 -0
- data/_sass/base/code_themes/_solarized.scss +84 -0
- data/_sass/components/_btn.scss +95 -0
- data/_sass/components/_infobox.scss +48 -0
- data/_sass/components/_item.scss +28 -0
- data/_sass/components/_search.scss +61 -0
- data/_sass/components/_tag_pills.scss +24 -0
- data/_sass/components/_visited.scss +42 -0
- data/_sass/includes/_anchor_headings.scss +36 -0
- data/_sass/includes/_connect.scss +8 -0
- data/_sass/includes/_cookie_consent.scss +46 -0
- data/_sass/includes/_dates.scss +6 -0
- data/_sass/includes/_hp_tooltip.scss +41 -0
- data/_sass/includes/_share.scss +10 -0
- data/_sass/includes/_site_nav.scss +26 -150
- data/_sass/includes/_svg.scss +89 -0
- data/_sass/includes/_toc.scss +38 -0
- data/_sass/layouts/_404.scss +3 -0
- data/_sass/layouts/_about.scss +3 -0
- data/_sass/layouts/_archive.scss +26 -0
- data/_sass/layouts/_book.scss +17 -0
- data/_sass/layouts/_entry.scss +140 -0
- data/_sass/layouts/_home.scss +75 -0
- data/_sass/layouts/_post.scss +17 -0
- data/_sass/layouts/_privacy.scss +3 -0
- data/_sass/layouts/_recent.scss +77 -0
- data/_sass/layouts/_state.scss +98 -0
- data/_sass/main.scss +72 -0
- data/_sass/{support → util}/_functions.scss +0 -0
- data/_sass/{support → util}/_variables.scss +21 -87
- data/_sass/{support → util}/mixins/_buttons.scss +0 -0
- data/_sass/util/mixins/_layout.scss +81 -0
- data/_sass/{support → util}/mixins/_typography.scss +0 -0
- data/assets/css/styles.scss +29 -6
- data/assets/img/bonsai-star.png +0 -0
- data/assets/img/bonsai-star.svg +1 -0
- data/assets/img/books/the-ancient-art-of-bonsai.png +0 -0
- data/assets/img/nav-base-star.svg +1 -0
- data/assets/img/nav-bonsai-star.svg +1 -0
- data/assets/js/entry.js +33 -5
- data/assets/js/graph.js +21 -509
- data/assets/js/scripts.js +41 -57
- data/assets/js/search.js +165 -0
- data/assets/js/site-nav.js +99 -99
- data/assets/js/theme-colors.js +23 -37
- data/assets/js/vendor/lunr.js +3475 -0
- data/assets/js/vendor/lunr.min.js +6 -0
- data/assets/js/visited-nav.js +65 -0
- metadata +145 -150
- data/_entries/digital-garden.bonsai.md +0 -36
- data/_entries/digital-garden.field-logs.md +0 -10
- data/_entries/digital-garden.fork.md +0 -10
- data/_entries/digital-garden.md +0 -17
- data/_entries/digital-garden.path.md +0 -11
- data/_entries/digital-garden.plants.md +0 -12
- data/_entries/digital-garden.pollinate.md +0 -10
- data/_entries/digital-garden.steps.md +0 -10
- data/_entries/digital-garden.stream.md +0 -12
- data/_entries/digital-garden.sweep.md +0 -12
- data/_entries/digital-garden.weather.md +0 -12
- data/_entries/features.md +0 -10
- data/_entries/features.notes.hover-preview.md +0 -10
- data/_entries/features.notes.md +0 -12
- data/_entries/features.notes.note-body.md +0 -12
- data/_entries/features.notes.note-body.share.md +0 -10
- data/_entries/features.notes.note-body.sidenotes.md +0 -52
- data/_entries/features.notes.note-foot.links.md +0 -10
- data/_entries/features.notes.note-foot.md +0 -11
- data/_entries/features.notes.note-foot.posts.md +0 -10
- data/_entries/features.notes.note-foot.webmentions.md +0 -10
- data/_entries/features.notes.note-head.md +0 -10
- data/_entries/features.pages.field-blogs.md +0 -10
- data/_entries/features.pages.md +0 -12
- data/_entries/features.pages.recent.md +0 -10
- data/_entries/features.pages.status-tags.md +0 -10
- data/_entries/features.site-nav.graph.links.md +0 -10
- data/_entries/features.site-nav.graph.links.namespacing.md +0 -14
- data/_entries/features.site-nav.graph.links.wikilinks.md +0 -25
- data/_entries/features.site-nav.graph.md +0 -12
- data/_entries/features.site-nav.graph.nodes.current-note.md +0 -10
- data/_entries/features.site-nav.graph.nodes.md +0 -12
- data/_entries/features.site-nav.graph.nodes.mia.missing-note.md +0 -20
- data/_entries/features.site-nav.graph.nodes.visited-status.md +0 -10
- data/_entries/features.site-nav.graph.toggle-graph.md +0 -13
- data/_entries/features.site-nav.graph.type.md +0 -16
- data/_entries/features.site-nav.graph.type.net-web.md +0 -10
- data/_entries/features.site-nav.graph.type.tree.md +0 -12
- data/_entries/features.site-nav.md +0 -10
- data/_entries/features.site-nav.visited.md +0 -14
- data/_entries/features.tags.md +0 -13
- data/_entries/features.themes.dark.md +0 -12
- data/_entries/features.themes.light.md +0 -10
- data/_entries/features.themes.md +0 -12
- data/_entries/features.visited.delete-data.md +0 -10
- data/_entries/features.visited.md +0 -12
- data/_entries/features.visitor-preferences.md +0 -27
- data/_entries/feedback.md +0 -10
- data/_entries/people.creator.md +0 -12
- data/_entries/people.md +0 -13
- data/_entries/people.visitors.md +0 -12
- data/_entries/plugins.jekyll-wikilinks.md +0 -10
- data/_entries/plugins.md +0 -10
- data/_entries/root.md +0 -26
- data/_includes/entry-attrs.html +0 -27
- data/_includes/head.html +0 -23
- data/_includes/hover-preview.html +0 -84
- data/_includes/metrics.html +0 -10
- data/_includes/styles.scss.liquid +0 -3
- data/_layouts/default.html +0 -39
- data/_pages/about.md +0 -7
- data/_pages/posts.html +0 -19
- data/_pages/recent.html +0 -48
- data/_plugins/doc_filters.rb +0 -44
- data/_plugins/prep_entry.rb +0 -43
- data/_plugins/sidenote.rb +0 -123
- data/_plugins/tags.rb +0 -52
- data/_sass/base/base.scss +0 -3
- data/_sass/color/dark.scss +0 -58
- data/_sass/color/light.scss +0 -58
- data/_sass/includes/_btn.scss +0 -106
- data/_sass/includes/_graph.scss +0 -69
- data/_sass/includes/_nav.scss +0 -89
- data/_sass/includes/_tooltip.scss +0 -29
- data/_sass/includes/includes.scss +0 -9
- data/_sass/markdown/_code.scss +0 -340
- data/_sass/markdown/_content.scss +0 -400
- data/_sass/markdown/_tables.scss +0 -60
- data/_sass/markdown/markdown.scss +0 -7
- data/_sass/modules.scss +0 -14
- data/_sass/pages/_index.scss +0 -72
- data/_sass/pages/_posts.scss +0 -17
- data/_sass/pages/_recent.scss +0 -26
- data/_sass/pages/_state.scss +0 -72
- data/_sass/pages/pages.scss +0 -4
- data/_sass/support/mixins/_layout.scss +0 -56
- data/_sass/support/mixins/mixins.scss +0 -3
- data/_sass/support/support.scss +0 -3
- data/_states/bamboo.md +0 -8
- data/_states/berry.md +0 -8
- data/_states/bloom.md +0 -8
- data/_states/bud.md +0 -6
- data/_states/fruit.md +0 -8
- data/_states/melon.md +0 -8
- data/_states/pot-bamboo.md +0 -8
- data/_states/seed.md +0 -8
- data/_states/sprout.md +0 -8
- data/_states/tags.md +0 -8
- data/_states/tea.md +0 -8
- data/assets/css/styles-dark.scss +0 -3
- data/assets/css/styles-light.scss +0 -3
- data/assets/img/nav-dot-dark.svg +0 -1
- data/assets/img/nav-dot-light.svg +0 -1
- data/assets/img/nav-wiki-links-dark.svg +0 -1
- data/assets/img/nav-wiki-links-light.svg +0 -1
- data/index.html +0 -82
data/README.md
CHANGED
@@ -2,10 +2,8 @@
|
|
2
2
|
|
3
3
|
<img src="https://github.com/manunamz/jekyll-bonsai/blob/main/assets/img/bonsai-light.svg" width="300" height="300"/>
|
4
4
|
|
5
|
-
⚠️ This
|
5
|
+
⚠️ This template is newly sprouted ⚠️
|
6
6
|
|
7
|
-
Consider this
|
7
|
+
Consider this a beta.
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
In a word, it doesn't. Enough notes will cause the d3 graph to become very, very slow.
|
9
|
+
Setup instructions are [here](https://jekyll-bonsai.netlify.app/post/0b9db15818/).
|
data/_config.yml
CHANGED
@@ -1,21 +1,12 @@
|
|
1
|
-
# jekyll configs
|
2
|
-
|
3
1
|
title: jekyll-bonsai
|
4
2
|
description: A modern jekyll theme for semantically inclined digital gardeners.
|
5
3
|
author: manunamz
|
6
|
-
baseurl: '/jekyll-bonsai'
|
7
|
-
# baseurl: ''
|
8
|
-
# url: https://manunam.me
|
4
|
+
# baseurl: '/jekyll-bonsai'
|
9
5
|
# url: 'https://manunamz.github.io'
|
10
6
|
|
11
|
-
# logo-light: "/assets/images/logo-light.png"
|
12
|
-
# logo-dark: "/assets/images/logo-dark.png"
|
13
|
-
|
14
|
-
permalink: pretty
|
15
7
|
include:
|
16
8
|
- "_pages"
|
17
|
-
exclude:
|
18
|
-
- "node_modules/"
|
9
|
+
exclude:
|
19
10
|
- "package.json"
|
20
11
|
- "package-lock.json"
|
21
12
|
- "*.gemspec"
|
@@ -31,13 +22,12 @@ exclude:
|
|
31
22
|
- "LICENSE.txt"
|
32
23
|
|
33
24
|
collections:
|
25
|
+
books:
|
26
|
+
output: true
|
34
27
|
entries:
|
35
28
|
output: true
|
36
|
-
# permalink: /entry/:id
|
37
|
-
# permalinks are manually generated -- see local 'prep_note' plugin.
|
38
29
|
states:
|
39
30
|
output: true
|
40
|
-
permalink: /stat/:title
|
41
31
|
order:
|
42
32
|
- tags.md
|
43
33
|
- sprout.md
|
@@ -51,17 +41,46 @@ collections:
|
|
51
41
|
- tea.md
|
52
42
|
- pot-bamboo.md
|
53
43
|
|
44
|
+
# frontmatter
|
45
|
+
# ('type' is explicitly set for search exclusion to work)
|
54
46
|
defaults:
|
55
|
-
-
|
56
|
-
|
47
|
+
-
|
48
|
+
scope:
|
49
|
+
type: "pages"
|
50
|
+
values:
|
51
|
+
type: "pages"
|
52
|
+
-
|
53
|
+
scope:
|
54
|
+
# path: "_posts/**/*.md"
|
55
|
+
type: "posts"
|
56
|
+
values:
|
57
|
+
type: "posts"
|
58
|
+
layout: "post"
|
59
|
+
permalink: "/post/:id/"
|
60
|
+
-
|
61
|
+
scope:
|
62
|
+
# path: "_books/**/*.md"
|
63
|
+
type: "books"
|
64
|
+
values:
|
65
|
+
type: "books"
|
66
|
+
layout: "book"
|
67
|
+
permalink: "/book/:id/"
|
68
|
+
-
|
69
|
+
scope:
|
70
|
+
# path: "_entries/**/*.md"
|
57
71
|
type: "entries"
|
58
72
|
values:
|
73
|
+
type: "entries"
|
59
74
|
layout: "entry"
|
60
|
-
|
61
|
-
|
75
|
+
permalink: "/entry/:id/"
|
76
|
+
-
|
77
|
+
scope:
|
78
|
+
# path: "_states/**/*.md"
|
62
79
|
type: "states"
|
63
80
|
values:
|
81
|
+
type: "states"
|
64
82
|
layout: "state"
|
83
|
+
permalink: "/stat/:id/"
|
65
84
|
|
66
85
|
sass:
|
67
86
|
sass_dir: _sass
|
@@ -69,51 +88,9 @@ sass:
|
|
69
88
|
|
70
89
|
enable_mathjax: true
|
71
90
|
kramdown:
|
91
|
+
syntax_highlighter: rouge
|
72
92
|
math_engine: mathjax
|
73
93
|
|
74
|
-
# plugins:
|
75
|
-
# - jekyll-namespaces
|
76
|
-
# - jekyll-wikilinks
|
77
|
-
# - jekyll-feed
|
78
|
-
# - jekyll-seo-tag
|
79
|
-
# - jekyll-sitemap
|
80
|
-
|
81
|
-
#
|
82
|
-
# jekyll-bonsai configs
|
83
|
-
#
|
84
|
-
# dendron forces the root note-title to be 'root.md' -- this is the replacement title for 'root'
|
85
|
-
# (make sure you change the title in root.md file as well)
|
86
|
-
index_title: "Jekyll-Bonsai"
|
87
|
-
# graph: default graph type in side bar.
|
88
|
-
## may be 'tree' or 'net-web'
|
89
|
-
graph_type: "tree"
|
90
|
-
# nav: default nav type in side bar.
|
91
|
-
## may be 'tabs' (visited/path) or graph (bonsai)
|
92
|
-
nav_type: "graph"
|
93
|
-
# recent (weather): set number of notes to display on recent (weather) page.
|
94
|
-
## may be an integer (defaults to 10)
|
95
|
-
recent_num: 10
|
96
|
-
# local note-nav component defaults
|
97
|
-
## may be 'open' or 'closed'
|
98
|
-
entry_head_status: "open"
|
99
|
-
entry_foot_links_status: "open"
|
100
|
-
entry_foot_posts_status: "open"
|
101
|
-
social:
|
102
|
-
enabled: true
|
103
|
-
connect:
|
104
|
-
# facebook_url:
|
105
|
-
github_url: https://github.com/manunamz/
|
106
|
-
# linkedin_url:
|
107
|
-
# pinterest_url:
|
108
|
-
rss_url: https://manunam.me/feed.xml
|
109
|
-
twitter_url: https://twitter.com/manunamz/
|
110
|
-
share:
|
111
|
-
- 'email'
|
112
|
-
# - 'facebook'
|
113
|
-
# - 'linkedin'
|
114
|
-
# - 'pinterest'
|
115
|
-
- 'twitter'
|
116
|
-
|
117
94
|
compress_html:
|
118
95
|
clippings: all
|
119
96
|
comments: all
|
@@ -122,34 +99,154 @@ compress_html:
|
|
122
99
|
blank_lines: false
|
123
100
|
profile: false
|
124
101
|
|
102
|
+
#
|
103
|
+
# plugins
|
104
|
+
#
|
105
|
+
|
125
106
|
# Google Analytics (ip is anonymized by default)
|
126
|
-
ga_tracking: UA-190413040-
|
107
|
+
# ga_tracking: UA-190413040-4
|
108
|
+
|
109
|
+
# seo
|
110
|
+
# tagline: ""
|
111
|
+
# description: ""
|
112
|
+
# twitter:
|
113
|
+
# card: summary
|
114
|
+
# username: manunamz
|
115
|
+
# author:
|
116
|
+
# twitter: manunamz
|
127
117
|
|
128
118
|
#
|
129
|
-
# plugins
|
119
|
+
# bonsai plugins
|
130
120
|
#
|
121
|
+
ids:
|
122
|
+
# from: https://github.com/radeno/nanoid.rb#options
|
123
|
+
format:
|
124
|
+
alpha: '1234567890abcdef'
|
125
|
+
size: 10
|
131
126
|
namespaces:
|
132
127
|
# enabled: true
|
133
|
-
|
134
|
-
- "
|
128
|
+
exclude:
|
129
|
+
- "books"
|
130
|
+
- "pages"
|
131
|
+
- "posts"
|
132
|
+
- "states"
|
135
133
|
wikilinks:
|
136
134
|
# enabled: true
|
137
135
|
exclude:
|
138
|
-
- "pages"
|
139
136
|
- "states"
|
140
|
-
|
137
|
+
css:
|
138
|
+
exclude:
|
139
|
+
# markdown
|
140
|
+
- "footnote"
|
141
|
+
- "reversefootnote"
|
142
|
+
# local-theme-related
|
143
|
+
- "site-nav-btn"
|
144
|
+
- "sem-tag"
|
145
|
+
- "stat-tag"
|
146
|
+
# includes
|
147
|
+
- "anchor-heading"
|
148
|
+
- "toc-list-item-anchor"
|
149
|
+
graph:
|
141
150
|
# enabled: true
|
142
|
-
# path:
|
151
|
+
# path:
|
152
|
+
# assets: "/assets"
|
153
|
+
# scripts: "/assets/js"
|
143
154
|
exclude:
|
155
|
+
- "books"
|
144
156
|
- "pages"
|
145
157
|
- "posts"
|
146
158
|
- "states"
|
159
|
+
tree:
|
160
|
+
# enabled: true
|
161
|
+
dag_lvl_dist: 100
|
162
|
+
force:
|
163
|
+
charge: -100
|
164
|
+
strength_x: 0.3
|
165
|
+
x_val: 0.9
|
166
|
+
strength_y: 0.1
|
167
|
+
y_val: 0.9
|
168
|
+
net_web:
|
169
|
+
# enabled: true
|
170
|
+
# exclude:
|
171
|
+
# links: true
|
172
|
+
force:
|
173
|
+
charge: -300
|
174
|
+
strength_x: 0.3
|
175
|
+
x_val: 0.75
|
176
|
+
strength_y: 0.1
|
177
|
+
y_val: 0.9
|
147
178
|
|
148
|
-
#
|
149
|
-
#
|
150
|
-
#
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
179
|
+
#
|
180
|
+
# includes
|
181
|
+
#
|
182
|
+
|
183
|
+
social:
|
184
|
+
connect:
|
185
|
+
enabled: true
|
186
|
+
url:
|
187
|
+
# facebook:
|
188
|
+
github: https://github.com/manunamz/jekyll-bonsai/
|
189
|
+
# linkedin:
|
190
|
+
# pinterest:
|
191
|
+
# rss:
|
192
|
+
# twitter:
|
193
|
+
share:
|
194
|
+
enabled: true
|
195
|
+
type:
|
196
|
+
- 'email'
|
197
|
+
# - 'facebook'
|
198
|
+
- 'linkedin'
|
199
|
+
# - 'pinterest'
|
200
|
+
- 'twitter'
|
201
|
+
|
202
|
+
#
|
203
|
+
# bonsai template configs
|
204
|
+
#
|
205
|
+
bonsai:
|
206
|
+
debug: false
|
207
|
+
default_theme: "light"
|
208
|
+
date_format: "%Y-%m-%d"
|
209
|
+
svg:
|
210
|
+
filter: false
|
211
|
+
# smaller: false
|
212
|
+
# site-nav
|
213
|
+
nav:
|
214
|
+
type: "graph" # may be 'visited' (steps) or 'graph' (bonsai)
|
215
|
+
graph:
|
216
|
+
type: "tree" # may be 'tree' or 'net-web'
|
217
|
+
search:
|
218
|
+
enabled: true
|
219
|
+
exclude: []
|
220
|
+
visited:
|
221
|
+
enabled: true
|
222
|
+
# pages
|
223
|
+
home:
|
224
|
+
notable:
|
225
|
+
enabled: true
|
226
|
+
docs:
|
227
|
+
- digi-gard.orient.bonsai.md
|
228
|
+
- website-type.wiki-blog.md
|
229
|
+
- feat.md
|
230
|
+
- 2021-11-18-setup.md
|
231
|
+
- 2021-05-11-origin-myth.md
|
232
|
+
recent:
|
233
|
+
enabled: true
|
234
|
+
cap: 5
|
235
|
+
archive:
|
236
|
+
section:
|
237
|
+
posts: "🫐 🥭 🍈 Fruits"
|
238
|
+
books: "🌰 🍵 🎍 Germs"
|
239
|
+
entries: "🌱 🌿 🎋 🌸 Foliage"
|
240
|
+
recent:
|
241
|
+
cap: 10
|
242
|
+
# documents
|
243
|
+
states:
|
244
|
+
root_path: "_states/tags.md"
|
245
|
+
entries:
|
246
|
+
root_path: "_entries/root.md"
|
247
|
+
toggles: # may be 'open' or 'closed'
|
248
|
+
breadcrumb: "open"
|
249
|
+
attr_box: "open"
|
250
|
+
foot_links: "open"
|
251
|
+
foot_tagged: "open"
|
252
|
+
backlinks: true
|
data/_data/emoji.yml
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
#
|
2
|
+
# the following are emoji buttons
|
3
|
+
# -- there needs to be something here for buttons to work
|
4
|
+
#
|
5
|
+
# cookie-consent
|
6
|
+
approve: 👍
|
7
|
+
consider: 🧐
|
8
|
+
disapprove: 👎
|
9
|
+
# nav-bar
|
10
|
+
colors: 🌈
|
11
|
+
## graph
|
12
|
+
net-web: 🕸
|
13
|
+
tree: 🌳
|
14
|
+
## site-nav
|
15
|
+
delete: 🧹
|
16
|
+
graph: 🪴
|
17
|
+
search: 🔍
|
18
|
+
site_nav: 🧭
|
19
|
+
visited: 🥾
|
20
|
+
## pages
|
21
|
+
about: 🪧
|
22
|
+
archive: ⛲️
|
23
|
+
home: 🏕
|
24
|
+
pages: 🗺
|
25
|
+
privacy: 🛖
|
26
|
+
recent: 🌦
|
27
|
+
stat_tags: 🔖
|
28
|
+
# entry-only
|
29
|
+
breadcrumbs: 🛤
|
30
|
+
links: 🚏
|
31
|
+
tags: 🧺
|
32
|
+
#
|
33
|
+
# the following are informational emojis
|
34
|
+
# -- these are safe to set to "" (empty strings)
|
35
|
+
#
|
36
|
+
# social
|
37
|
+
connect: 🌊
|
38
|
+
share: 🐝 # this is also the emoji for anchor-headings
|
39
|
+
# changes
|
40
|
+
created: 🌩
|
41
|
+
published: 🌤
|
42
|
+
updated: 🌧
|
43
|
+
deleted: 🌨
|
44
|
+
# 404
|
45
|
+
missing: 🍂
|
data/_data/themes.yml
ADDED
@@ -0,0 +1,145 @@
|
|
1
|
+
-
|
2
|
+
id: light
|
3
|
+
emoji: ☀️
|
4
|
+
src:
|
5
|
+
favicon: "/assets/img/favicon-light.png"
|
6
|
+
logo: "/assets/img/bonsai-light.svg"
|
7
|
+
nav_burger:
|
8
|
+
base: "/assets/img/nav-base-light.svg"
|
9
|
+
bonsai: "/assets/img/nav-bonsai-light.svg"
|
10
|
+
colors:
|
11
|
+
selection: "#E6E09E"
|
12
|
+
background: "#E4f3EA"
|
13
|
+
text: "#5c5962"
|
14
|
+
text_grey: "#27262b"
|
15
|
+
accent_dark: "#b8d9b8"
|
16
|
+
# accent_dark: "#335C33"
|
17
|
+
accent_light: "#C7E6D3"
|
18
|
+
shadow: "#000"
|
19
|
+
link:
|
20
|
+
web:
|
21
|
+
underline: "#e1e8e3"
|
22
|
+
valid: "#264caf"
|
23
|
+
wiki:
|
24
|
+
underline: "#ede5dd"
|
25
|
+
valid: "#009c7b"
|
26
|
+
invalid: "#959396"
|
27
|
+
svg:
|
28
|
+
pencil:
|
29
|
+
default: "#5c5962"
|
30
|
+
blue: "#0047aa"
|
31
|
+
green: "#31AF31"
|
32
|
+
red: "#eb3023"
|
33
|
+
yellow: "#dfb600"
|
34
|
+
graph:
|
35
|
+
node:
|
36
|
+
stroke: "#00000000"
|
37
|
+
current: "#F0C61F"
|
38
|
+
missing: "#8C6239"
|
39
|
+
tagged: "#a87f32"
|
40
|
+
unvisited: "#9cbe9c"
|
41
|
+
visited:
|
42
|
+
color: "#31AF31"
|
43
|
+
glow: "#00000000"
|
44
|
+
link:
|
45
|
+
color: "#8C6239"
|
46
|
+
particles:
|
47
|
+
color: "#5c5962"
|
48
|
+
text:
|
49
|
+
color: "#5c5962"
|
50
|
+
-
|
51
|
+
id: dark
|
52
|
+
emoji: 🌘
|
53
|
+
src:
|
54
|
+
favicon: "/assets/img/favicon-dark.png"
|
55
|
+
logo: "/assets/img/bonsai-dark.svg"
|
56
|
+
nav_burger:
|
57
|
+
base: "/assets/img/nav-base-dark.svg"
|
58
|
+
bonsai: "/assets/img/nav-bonsai-dark.svg"
|
59
|
+
colors:
|
60
|
+
selection: "#ad9b4b"
|
61
|
+
background: "#27262b"
|
62
|
+
text: "#e1e8e3"
|
63
|
+
text_grey: "#f5f6fa"
|
64
|
+
accent_dark: "#1E1C21"
|
65
|
+
accent_light: "#44434d"
|
66
|
+
shadow: "#fff"
|
67
|
+
link:
|
68
|
+
web:
|
69
|
+
underline: "#44434d"
|
70
|
+
valid: "#89B8D8"
|
71
|
+
wiki:
|
72
|
+
underline: "#44434d"
|
73
|
+
valid: "#A0E4A0"
|
74
|
+
invalid: "#959396"
|
75
|
+
svg:
|
76
|
+
pencil:
|
77
|
+
default: "#e1e8e3"
|
78
|
+
blue: "#0047aa"
|
79
|
+
green: "#31AF31"
|
80
|
+
red: "#eb3023"
|
81
|
+
yellow: "#dfb600"
|
82
|
+
graph:
|
83
|
+
node:
|
84
|
+
stroke: "#44434d"
|
85
|
+
current: "#F0C61F"
|
86
|
+
missing: "#00000000"
|
87
|
+
tagged: "#a87f32"
|
88
|
+
unvisited: "#3e5c50"
|
89
|
+
visited:
|
90
|
+
color: "#31AF31"
|
91
|
+
glow: "#31AF31"
|
92
|
+
link:
|
93
|
+
color: "#44434d"
|
94
|
+
particles:
|
95
|
+
color: "#959396"
|
96
|
+
text:
|
97
|
+
color: "#e6e1e8"
|
98
|
+
-
|
99
|
+
id: star
|
100
|
+
emoji: ✨
|
101
|
+
src:
|
102
|
+
favicon: "/assets/img/favicon-dark.png"
|
103
|
+
logo: "/assets/img/bonsai-star.svg"
|
104
|
+
nav_burger:
|
105
|
+
base: "/assets/img/nav-base-star.svg"
|
106
|
+
bonsai: "/assets/img/nav-bonsai-star.svg"
|
107
|
+
colors:
|
108
|
+
selection: "#f5ec8eA6"
|
109
|
+
background: "#1b2733"
|
110
|
+
text: "#e1e8e3"
|
111
|
+
text_grey: "#f5f6fa"
|
112
|
+
accent_dark: "#151E28"
|
113
|
+
accent_light: "#254756"
|
114
|
+
shadow: "#fff"
|
115
|
+
link:
|
116
|
+
web:
|
117
|
+
underline: "#44434d"
|
118
|
+
valid: "#3D87B8"
|
119
|
+
wiki:
|
120
|
+
underline: "#44434d"
|
121
|
+
valid: "#F3EEBB"
|
122
|
+
invalid: "#959396"
|
123
|
+
svg:
|
124
|
+
pencil:
|
125
|
+
default: "#e1e8e3"
|
126
|
+
blue: "#0047aa"
|
127
|
+
green: "#31AF31"
|
128
|
+
red: "#eb3023"
|
129
|
+
yellow: "#dfb600"
|
130
|
+
graph:
|
131
|
+
node:
|
132
|
+
stroke: "#00000000"
|
133
|
+
current: "#F0C61F"
|
134
|
+
missing: "#586069"
|
135
|
+
tagged: "#0096FF"
|
136
|
+
unvisited: "#2A3D50"
|
137
|
+
visited:
|
138
|
+
color: "#F3F0CF"
|
139
|
+
glow: "#ffffff"
|
140
|
+
link:
|
141
|
+
color: "#254756"
|
142
|
+
particles:
|
143
|
+
color: "#F3F0CF"
|
144
|
+
text:
|
145
|
+
color: "#e6e1e8"
|
@@ -117,7 +117,11 @@
|
|
117
117
|
{% capture anchor %}{{ anchor }} {{ include.anchorAttrs | replace: '%heading%', escaped_header | replace: '%html_id%', html_id }}{% endcapture %}
|
118
118
|
{% endif %}
|
119
119
|
|
120
|
-
{%
|
120
|
+
{% if site.data.emoji.share %}
|
121
|
+
{% capture anchor %}<a {{ anchor }}><i class='anchor-tag'>{{ site.data.emoji.share }}</i></a>{% endcapture %}
|
122
|
+
{% else %}
|
123
|
+
{% capture anchor %}<a {{ anchor }}>{{ include.anchorBody | replace: '%heading%', escaped_header | default: '' }}</a>{% endcapture %}
|
124
|
+
{% endif %}
|
121
125
|
|
122
126
|
<!-- In order to prevent adding extra space after a heading, we'll let the 'anchor' value contain it -->
|
123
127
|
{% if beforeHeading %}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
{% comment %}
|
2
|
+
|
3
|
+
Usage: (where 'status' in 'page.status' is a yml list of strings)
|
4
|
+
{% include btn_state.html states=page.status %}
|
5
|
+
|
6
|
+
Parameters:
|
7
|
+
* states (array) - a page's status which maps to a state document.
|
8
|
+
|
9
|
+
{% endcomment %}
|
10
|
+
|
11
|
+
{% for stat_tag in include.states %}
|
12
|
+
{% assign state = site.states | find_exp: "item", "item.emoji == stat_tag" %}
|
13
|
+
<a class="stat-tag" href="{{ state.url | relative_url }}" title={{ state.title }}>{{ state.emoji }}</a>
|
14
|
+
{% endfor %}
|
data/_includes/connect.html
CHANGED
@@ -26,19 +26,21 @@
|
|
26
26
|
#connect-buttons > div.twitter > svg {height: 20px; margin-top: 8px;}
|
27
27
|
#connect-buttons > div.linkedin > svg {height: 19px; margin-top: 7px;}
|
28
28
|
#connect-buttons > div.pinterest > svg {height: 20px; margin-top: 9px;}
|
29
|
-
|
29
|
+
#connect-buttons > div.rss > svg {height: 16px; margin-top: 10px;}
|
30
30
|
#connect-buttons > div.gplus > svg {height: 17px; margin-top: 9px; position: relative; left: 1px;}
|
31
31
|
#connect-buttons > div.mail > svg {height: 14px; margin-top: 11px;}
|
32
32
|
</style>
|
33
33
|
|
34
|
-
<div
|
35
|
-
<span
|
34
|
+
<div class="connect-bar">
|
35
|
+
<span class="connect-icon" title="Connect and Follow">
|
36
|
+
{{ site.data.emoji.connect }}
|
37
|
+
</span>
|
36
38
|
<div id="connect-buttons">
|
37
|
-
{% if site.social.connect.
|
38
|
-
{% if site.social.connect.
|
39
|
-
{% if site.social.connect.
|
40
|
-
{% if site.social.connect.
|
41
|
-
{% if site.social.connect.
|
42
|
-
{% if site.social.connect.
|
39
|
+
{% if site.social.connect.url.facebook %}<div class="facebook" title="Connect on Facebook" onclick="window.open('{{ site.social.connect.url.facebook }}');"><svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1343 12v264h-157q-86 0-116 36t-30 108v189h293l-39 296h-254v759h-306v-759h-255v-296h255v-218q0-186 104-288.5t277-102.5q147 0 228 12z"/></svg></div>{% endif %}
|
40
|
+
{% if site.social.connect.url.github %}<div class="github" title="Connect on Github" onclick="window.open('{{ site.social.connect.url.github }}');"><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/></svg></div>{% endif %}
|
41
|
+
{% if site.social.connect.url.linkedin %}<div class="linkedin" title="Connect on Linkedin" onclick="window.open('{{ site.social.connect.url.linkedin }}');"><svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M477 625v991h-330v-991h330zm21-306q1 73-50.5 122t-135.5 49h-2q-82 0-132-49t-50-122q0-74 51.5-122.5t134.5-48.5 133 48.5 51 122.5zm1166 729v568h-329v-530q0-105-40.5-164.5t-126.5-59.5q-63 0-105.5 34.5t-63.5 85.5q-11 30-11 81v553h-329q2-399 2-647t-1-296l-1-48h329v144h-2q20-32 41-56t56.5-52 87-43.5 114.5-15.5q171 0 275 113.5t104 332.5z"/></svg></div>{% endif %}
|
42
|
+
{% if site.social.connect.url.pinterest %}<div class="pinterest" title="Connect on Pinterest" onclick="window.open('{{ site.social.connect.url.pinterest }}');"><svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M256 597q0-108 37.5-203.5t103.5-166.5 152-123 185-78 202-26q158 0 294 66.5t221 193.5 85 287q0 96-19 188t-60 177-100 149.5-145 103-189 38.5q-68 0-135-32t-96-88q-10 39-28 112.5t-23.5 95-20.5 71-26 71-32 62.5-46 77.5-62 86.5l-14 5-9-10q-15-157-15-188 0-92 21.5-206.5t66.5-287.5 52-203q-32-65-32-169 0-83 52-156t132-73q61 0 95 40.5t34 102.5q0 66-44 191t-44 187q0 63 45 104.5t109 41.5q55 0 102-25t78.5-68 56-95 38-110.5 20-111 6.5-99.5q0-173-109.5-269.5t-285.5-96.5q-200 0-334 129.5t-134 328.5q0 44 12.5 85t27 65 27 45.5 12.5 30.5q0 28-15 73t-37 45q-2 0-17-3-51-15-90.5-56t-61-94.5-32.5-108-11-106.5z"/></svg></div>{% endif %}
|
43
|
+
{% if site.social.connect.url.twitter %}<div class="twitter" title="Connect on Twitter" onclick="window.open('{{ site.social.connect.url.twitter }}');"><svg viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1684 408q-67 98-162 167 1 14 1 42 0 130-38 259.5t-115.5 248.5-184.5 210.5-258 146-323 54.5q-271 0-496-145 35 4 78 4 225 0 401-138-105-2-188-64.5t-114-159.5q33 5 61 5 43 0 85-11-112-23-185.5-111.5t-73.5-205.5v-4q68 38 146 41-66-44-105-115t-39-154q0-88 44-163 121 149 294.5 238.5t371.5 99.5q-8-38-8-74 0-134 94.5-228.5t228.5-94.5q140 0 236 102 109-21 205-78-37 115-142 178 93-10 186-50z"/></svg></div>{% endif %}
|
44
|
+
{% if site.social.connect.url.rss %}<div class="rss" title="Connect RSS Feed" onclick="window.open('{{ site.social.connect.url.rss }}');"><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M6.503 20.752c0 1.794-1.456 3.248-3.251 3.248-1.796 0-3.252-1.454-3.252-3.248 0-1.794 1.456-3.248 3.252-3.248 1.795.001 3.251 1.454 3.251 3.248zm-6.503-12.572v4.811c6.05.062 10.96 4.966 11.022 11.009h4.817c-.062-8.71-7.118-15.758-15.839-15.82zm0-3.368c10.58.046 19.152 8.594 19.183 19.188h4.817c-.03-13.231-10.755-23.954-24-24v4.812z"/></svg></div>{% endif %}
|
43
45
|
</div>
|
44
46
|
</div>
|
@@ -0,0 +1,79 @@
|
|
1
|
+
<!-- from: https://jekyllcodex.org/without-plugin/cookie-consent/ -->
|
2
|
+
<!-- duplicate code with cookie-consent-response.html -->
|
3
|
+
<div id="cookie-consent">
|
4
|
+
<span>This site uses third party cookies and scripts to improve the functionality of this website.</span>
|
5
|
+
<a id="cookie-consent-response-accept" class="btn" title="Ok">
|
6
|
+
{{ site.data.emoji.approve }}
|
7
|
+
</a>
|
8
|
+
<a id="cookie-consent-hmm" class="btn" href="{{ '/privacy' | relative_url }}" title="Hmm...Tell me more...">
|
9
|
+
{{ site.data.emoji.consider }}
|
10
|
+
</a>
|
11
|
+
{% if site.bonsai.debug %}
|
12
|
+
<a id="cookie-consent-response-reject" class="btn" title="Nope!">
|
13
|
+
{{ site.data.emoji.disapprove }}
|
14
|
+
</a>
|
15
|
+
{% endif %}
|
16
|
+
</div>
|
17
|
+
<script>
|
18
|
+
function createCookie(name,value,days) {
|
19
|
+
var expires = "";
|
20
|
+
if (days) {
|
21
|
+
var date = new Date();
|
22
|
+
date.setTime(date.getTime() + (days*24*60*60*1000));
|
23
|
+
expires = "; expires=" + date.toUTCString();
|
24
|
+
}
|
25
|
+
document.cookie = name + "=" + value + expires + "; path=/";
|
26
|
+
}
|
27
|
+
function readCookie(name) {
|
28
|
+
var nameEQ = name + "=";
|
29
|
+
var ca = document.cookie.split(';');
|
30
|
+
for(var i=0;i < ca.length;i++) {
|
31
|
+
var c = ca[i];
|
32
|
+
while (c.charAt(0)==' ') c = c.substring(1,c.length);
|
33
|
+
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
|
34
|
+
}
|
35
|
+
return null;
|
36
|
+
}
|
37
|
+
function eraseCookie(name) {
|
38
|
+
createCookie(name,"",-1);
|
39
|
+
}
|
40
|
+
function clearCookies() {
|
41
|
+
var cookies = document.cookie.split(";");
|
42
|
+
for (var i = 0; i < cookies.length; i++) {
|
43
|
+
eraseCookie(cookies[i].split("=")[0]);
|
44
|
+
}
|
45
|
+
}
|
46
|
+
document.getElementById('cookie-consent-response-accept').addEventListener("click",function() {
|
47
|
+
clearCookies();
|
48
|
+
createCookie('cookie-consent-accepted','true',31);
|
49
|
+
document.getElementById('cookie-consent').style.display = 'none';
|
50
|
+
location.reload();
|
51
|
+
});
|
52
|
+
|
53
|
+
{% if site.bonsai.debug %}
|
54
|
+
document.getElementById('cookie-consent-response-reject').addEventListener("click",function() {
|
55
|
+
clearCookies();
|
56
|
+
createCookie('cookie-consent-declined','true',10);
|
57
|
+
document.getElementById('cookie-consent').style.display = 'none';
|
58
|
+
location.reload();
|
59
|
+
});
|
60
|
+
{% else %}
|
61
|
+
/**
|
62
|
+
* from: https://jekyllcodex.org/without-plugin/metrics/Z
|
63
|
+
* (use multi-line comment because compression causes single line to comment out entire file)
|
64
|
+
* */
|
65
|
+
var _gaq = _gaq || [];
|
66
|
+
_gaq.push(['_setAccount', '{{ site.ga_tracking }}']);
|
67
|
+
_gaq.push(['_gat._forceSSL']);
|
68
|
+
_gaq.push(['_gat._anonymizeIp']);
|
69
|
+
_gaq.push(['_trackPageview']);
|
70
|
+
|
71
|
+
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
72
|
+
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
73
|
+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
74
|
+
{% endif %}
|
75
|
+
|
76
|
+
if ((readCookie('cookie-consent-accepted')!=='true') && (readCookie('cookie-consent-declined')!=='true')) {
|
77
|
+
document.getElementById('cookie-consent').style.display = 'flex';
|
78
|
+
}
|
79
|
+
</script>
|