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.
Files changed (193) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +676 -0
  3. data/README.md +3 -5
  4. data/_config.yml +173 -76
  5. data/_data/emoji.yml +45 -0
  6. data/_data/themes.yml +145 -0
  7. data/_includes/anchor-headings.html +5 -1
  8. data/_includes/btn_state.html +14 -0
  9. data/_includes/connect.html +11 -9
  10. data/_includes/cookie-consent.html +79 -0
  11. data/_includes/dates.html +22 -0
  12. data/_includes/hp-tooltip.html +106 -0
  13. data/_includes/img/bullet-net-web.svg +1 -1
  14. data/_includes/img/bullet-tree.svg +1 -1
  15. data/_includes/img/pencil-filter.svg +17 -0
  16. data/_includes/share.html +10 -8
  17. data/_includes/site-nav.html +83 -37
  18. data/_includes/tags.html +49 -0
  19. data/_includes/themes.scss.liquid +80 -0
  20. data/_includes/toc.html +187 -0
  21. data/_layouts/404.html +10 -0
  22. data/_layouts/about.html +14 -0
  23. data/_layouts/archive.html +77 -0
  24. data/_layouts/base.html +68 -0
  25. data/_layouts/book.html +40 -0
  26. data/_layouts/entry.html +238 -93
  27. data/_layouts/home.html +96 -0
  28. data/_layouts/post.html +30 -22
  29. data/_layouts/privacy.html +15 -0
  30. data/_layouts/recent.html +66 -0
  31. data/_layouts/state.html +54 -43
  32. data/_sass/base/_code.scss +133 -0
  33. data/_sass/base/_layout.scss +30 -29
  34. data/_sass/base/_link.scss +105 -0
  35. data/_sass/base/_main.scss +19 -126
  36. data/_sass/base/_markdown.scss +281 -0
  37. data/_sass/base/_typography.scss +81 -67
  38. data/_sass/base/code_themes/_gruvbox.scss +92 -0
  39. data/_sass/base/code_themes/_monokai.scss +217 -0
  40. data/_sass/base/code_themes/_solarized.scss +84 -0
  41. data/_sass/components/_btn.scss +95 -0
  42. data/_sass/components/_infobox.scss +48 -0
  43. data/_sass/components/_item.scss +28 -0
  44. data/_sass/components/_search.scss +61 -0
  45. data/_sass/components/_tag_pills.scss +24 -0
  46. data/_sass/components/_visited.scss +42 -0
  47. data/_sass/includes/_anchor_headings.scss +36 -0
  48. data/_sass/includes/_connect.scss +8 -0
  49. data/_sass/includes/_cookie_consent.scss +46 -0
  50. data/_sass/includes/_dates.scss +6 -0
  51. data/_sass/includes/_hp_tooltip.scss +41 -0
  52. data/_sass/includes/_share.scss +10 -0
  53. data/_sass/includes/_site_nav.scss +26 -150
  54. data/_sass/includes/_svg.scss +89 -0
  55. data/_sass/includes/_toc.scss +38 -0
  56. data/_sass/layouts/_404.scss +3 -0
  57. data/_sass/layouts/_about.scss +3 -0
  58. data/_sass/layouts/_archive.scss +26 -0
  59. data/_sass/layouts/_book.scss +17 -0
  60. data/_sass/layouts/_entry.scss +140 -0
  61. data/_sass/layouts/_home.scss +75 -0
  62. data/_sass/layouts/_post.scss +17 -0
  63. data/_sass/layouts/_privacy.scss +3 -0
  64. data/_sass/layouts/_recent.scss +77 -0
  65. data/_sass/layouts/_state.scss +98 -0
  66. data/_sass/main.scss +72 -0
  67. data/_sass/{support → util}/_functions.scss +0 -0
  68. data/_sass/{support → util}/_variables.scss +21 -87
  69. data/_sass/{support → util}/mixins/_buttons.scss +0 -0
  70. data/_sass/util/mixins/_layout.scss +81 -0
  71. data/_sass/{support → util}/mixins/_typography.scss +0 -0
  72. data/assets/css/styles.scss +29 -6
  73. data/assets/img/bonsai-star.png +0 -0
  74. data/assets/img/bonsai-star.svg +1 -0
  75. data/assets/img/books/the-ancient-art-of-bonsai.png +0 -0
  76. data/assets/img/nav-base-star.svg +1 -0
  77. data/assets/img/nav-bonsai-star.svg +1 -0
  78. data/assets/js/entry.js +33 -5
  79. data/assets/js/graph.js +21 -509
  80. data/assets/js/scripts.js +41 -57
  81. data/assets/js/search.js +165 -0
  82. data/assets/js/site-nav.js +99 -99
  83. data/assets/js/theme-colors.js +23 -37
  84. data/assets/js/vendor/lunr.js +3475 -0
  85. data/assets/js/vendor/lunr.min.js +6 -0
  86. data/assets/js/visited-nav.js +65 -0
  87. metadata +145 -150
  88. data/_entries/digital-garden.bonsai.md +0 -36
  89. data/_entries/digital-garden.field-logs.md +0 -10
  90. data/_entries/digital-garden.fork.md +0 -10
  91. data/_entries/digital-garden.md +0 -17
  92. data/_entries/digital-garden.path.md +0 -11
  93. data/_entries/digital-garden.plants.md +0 -12
  94. data/_entries/digital-garden.pollinate.md +0 -10
  95. data/_entries/digital-garden.steps.md +0 -10
  96. data/_entries/digital-garden.stream.md +0 -12
  97. data/_entries/digital-garden.sweep.md +0 -12
  98. data/_entries/digital-garden.weather.md +0 -12
  99. data/_entries/features.md +0 -10
  100. data/_entries/features.notes.hover-preview.md +0 -10
  101. data/_entries/features.notes.md +0 -12
  102. data/_entries/features.notes.note-body.md +0 -12
  103. data/_entries/features.notes.note-body.share.md +0 -10
  104. data/_entries/features.notes.note-body.sidenotes.md +0 -52
  105. data/_entries/features.notes.note-foot.links.md +0 -10
  106. data/_entries/features.notes.note-foot.md +0 -11
  107. data/_entries/features.notes.note-foot.posts.md +0 -10
  108. data/_entries/features.notes.note-foot.webmentions.md +0 -10
  109. data/_entries/features.notes.note-head.md +0 -10
  110. data/_entries/features.pages.field-blogs.md +0 -10
  111. data/_entries/features.pages.md +0 -12
  112. data/_entries/features.pages.recent.md +0 -10
  113. data/_entries/features.pages.status-tags.md +0 -10
  114. data/_entries/features.site-nav.graph.links.md +0 -10
  115. data/_entries/features.site-nav.graph.links.namespacing.md +0 -14
  116. data/_entries/features.site-nav.graph.links.wikilinks.md +0 -25
  117. data/_entries/features.site-nav.graph.md +0 -12
  118. data/_entries/features.site-nav.graph.nodes.current-note.md +0 -10
  119. data/_entries/features.site-nav.graph.nodes.md +0 -12
  120. data/_entries/features.site-nav.graph.nodes.mia.missing-note.md +0 -20
  121. data/_entries/features.site-nav.graph.nodes.visited-status.md +0 -10
  122. data/_entries/features.site-nav.graph.toggle-graph.md +0 -13
  123. data/_entries/features.site-nav.graph.type.md +0 -16
  124. data/_entries/features.site-nav.graph.type.net-web.md +0 -10
  125. data/_entries/features.site-nav.graph.type.tree.md +0 -12
  126. data/_entries/features.site-nav.md +0 -10
  127. data/_entries/features.site-nav.visited.md +0 -14
  128. data/_entries/features.tags.md +0 -13
  129. data/_entries/features.themes.dark.md +0 -12
  130. data/_entries/features.themes.light.md +0 -10
  131. data/_entries/features.themes.md +0 -12
  132. data/_entries/features.visited.delete-data.md +0 -10
  133. data/_entries/features.visited.md +0 -12
  134. data/_entries/features.visitor-preferences.md +0 -27
  135. data/_entries/feedback.md +0 -10
  136. data/_entries/people.creator.md +0 -12
  137. data/_entries/people.md +0 -13
  138. data/_entries/people.visitors.md +0 -12
  139. data/_entries/plugins.jekyll-wikilinks.md +0 -10
  140. data/_entries/plugins.md +0 -10
  141. data/_entries/root.md +0 -26
  142. data/_includes/entry-attrs.html +0 -27
  143. data/_includes/head.html +0 -23
  144. data/_includes/hover-preview.html +0 -84
  145. data/_includes/metrics.html +0 -10
  146. data/_includes/styles.scss.liquid +0 -3
  147. data/_layouts/default.html +0 -39
  148. data/_pages/about.md +0 -7
  149. data/_pages/posts.html +0 -19
  150. data/_pages/recent.html +0 -48
  151. data/_plugins/doc_filters.rb +0 -44
  152. data/_plugins/prep_entry.rb +0 -43
  153. data/_plugins/sidenote.rb +0 -123
  154. data/_plugins/tags.rb +0 -52
  155. data/_sass/base/base.scss +0 -3
  156. data/_sass/color/dark.scss +0 -58
  157. data/_sass/color/light.scss +0 -58
  158. data/_sass/includes/_btn.scss +0 -106
  159. data/_sass/includes/_graph.scss +0 -69
  160. data/_sass/includes/_nav.scss +0 -89
  161. data/_sass/includes/_tooltip.scss +0 -29
  162. data/_sass/includes/includes.scss +0 -9
  163. data/_sass/markdown/_code.scss +0 -340
  164. data/_sass/markdown/_content.scss +0 -400
  165. data/_sass/markdown/_tables.scss +0 -60
  166. data/_sass/markdown/markdown.scss +0 -7
  167. data/_sass/modules.scss +0 -14
  168. data/_sass/pages/_index.scss +0 -72
  169. data/_sass/pages/_posts.scss +0 -17
  170. data/_sass/pages/_recent.scss +0 -26
  171. data/_sass/pages/_state.scss +0 -72
  172. data/_sass/pages/pages.scss +0 -4
  173. data/_sass/support/mixins/_layout.scss +0 -56
  174. data/_sass/support/mixins/mixins.scss +0 -3
  175. data/_sass/support/support.scss +0 -3
  176. data/_states/bamboo.md +0 -8
  177. data/_states/berry.md +0 -8
  178. data/_states/bloom.md +0 -8
  179. data/_states/bud.md +0 -6
  180. data/_states/fruit.md +0 -8
  181. data/_states/melon.md +0 -8
  182. data/_states/pot-bamboo.md +0 -8
  183. data/_states/seed.md +0 -8
  184. data/_states/sprout.md +0 -8
  185. data/_states/tags.md +0 -8
  186. data/_states/tea.md +0 -8
  187. data/assets/css/styles-dark.scss +0 -3
  188. data/assets/css/styles-light.scss +0 -3
  189. data/assets/img/nav-dot-dark.svg +0 -1
  190. data/assets/img/nav-dot-light.svg +0 -1
  191. data/assets/img/nav-wiki-links-dark.svg +0 -1
  192. data/assets/img/nav-wiki-links-light.svg +0 -1
  193. data/index.html +0 -82
@@ -0,0 +1,187 @@
1
+ {% capture tocWorkspace %}
2
+ {% comment %}
3
+ Copyright (c) 2017 Vladimir "allejo" Jimenez
4
+
5
+ Permission is hereby granted, free of charge, to any person
6
+ obtaining a copy of this software and associated documentation
7
+ files (the "Software"), to deal in the Software without
8
+ restriction, including without limitation the rights to use,
9
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the
11
+ Software is furnished to do so, subject to the following
12
+ conditions:
13
+
14
+ The above copyright notice and this permission notice shall be
15
+ included in all copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
19
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
21
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
22
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
24
+ OTHER DEALINGS IN THE SOFTWARE.
25
+ {% endcomment %}
26
+ {% comment %}
27
+ Version 1.1.0
28
+ https://github.com/allejo/jekyll-toc
29
+
30
+ "...like all things liquid - where there's a will, and ~36 hours to spare, there's usually a/some way" ~jaybe
31
+
32
+ Usage:
33
+ {% include toc.html html=content sanitize=true class="inline_toc" id="my_toc" h_min=2 h_max=3 %}
34
+
35
+ Parameters:
36
+ * html (string) - the HTML of compiled markdown generated by kramdown in Jekyll
37
+
38
+ Optional Parameters:
39
+ * sanitize (bool) : false - when set to true, the headers will be stripped of any HTML in the TOC
40
+ * class (string) : '' - a CSS class assigned to the TOC
41
+ * id (string) : '' - an ID to assigned to the TOC
42
+ * h_min (int) : 1 - the minimum TOC header level to use; any header lower than this value will be ignored
43
+ * h_max (int) : 6 - the maximum TOC header level to use; any header greater than this value will be ignored
44
+ * ordered (bool) : false - when set to true, an ordered list will be outputted instead of an unordered list
45
+ * item_class (string) : '' - add custom class(es) for each list item; has support for '%level%' placeholder, which is the current heading level
46
+ * submenu_class (string) : '' - add custom class(es) for each child group of headings; has support for '%level%' placeholder which is the current "submenu" heading level
47
+ * base_url (string) : '' - add a base url to the TOC links for when your TOC is on another page than the actual content
48
+ * anchor_class (string) : '' - add custom class(es) for each anchor element
49
+ * skip_no_ids (bool) : false - skip headers that do not have an `id` attribute
50
+
51
+ Output:
52
+ An ordered or unordered list representing the table of contents of a markdown block. This snippet will only
53
+ generate the table of contents and will NOT output the markdown given to it
54
+ {% endcomment %}
55
+
56
+ {% capture newline %}
57
+ {% endcapture %}
58
+ {% assign newline = newline | rstrip %} <!-- Remove the extra spacing but preserve the newline -->
59
+
60
+ {% capture deprecation_warnings %}{% endcapture %}
61
+
62
+ {% if include.baseurl %}
63
+ {% capture deprecation_warnings %}{{ deprecation_warnings }}<!-- jekyll-toc :: "baseurl" has been deprecated, use "base_url" instead -->{{ newline }}{% endcapture %}
64
+ {% endif %}
65
+
66
+ {% if include.skipNoIDs %}
67
+ {% capture deprecation_warnings %}{{ deprecation_warnings }}<!-- jekyll-toc :: "skipNoIDs" has been deprecated, use "skip_no_ids" instead -->{{ newline }}{% endcapture %}
68
+ {% endif %}
69
+
70
+ {% capture jekyll_toc %}{% endcapture %}
71
+ {% assign orderedList = include.ordered | default: false %}
72
+ {% assign baseURL = include.base_url | default: include.baseurl | default: '' %}
73
+ {% assign skipNoIDs = include.skip_no_ids | default: include.skipNoIDs | default: false %}
74
+ {% assign minHeader = include.h_min | default: 1 %}
75
+ {% assign maxHeader = include.h_max | default: 6 %}
76
+ {% assign nodes = include.html | strip | split: '<h' %}
77
+
78
+ {% assign firstHeader = true %}
79
+ {% assign currLevel = 0 %}
80
+ {% assign lastLevel = 0 %}
81
+
82
+ {% capture listModifier %}{% if orderedList %}ol{% else %}ul{% endif %}{% endcapture %}
83
+
84
+ {% for node in nodes %}
85
+ {% if node == "" %}
86
+ {% continue %}
87
+ {% endif %}
88
+
89
+ {% assign currLevel = node | replace: '"', '' | slice: 0, 1 | times: 1 %}
90
+
91
+ {% if currLevel < minHeader or currLevel > maxHeader %}
92
+ {% continue %}
93
+ {% endif %}
94
+
95
+ {% assign _workspace = node | split: '</h' %}
96
+
97
+ {% assign _idWorkspace = _workspace[0] | split: 'id="' %}
98
+ {% assign _idWorkspace = _idWorkspace[1] | split: '"' %}
99
+ {% assign htmlID = _idWorkspace[0] %}
100
+
101
+ {% assign _classWorkspace = _workspace[0] | split: 'class="' %}
102
+ {% assign _classWorkspace = _classWorkspace[1] | split: '"' %}
103
+ {% assign htmlClass = _classWorkspace[0] %}
104
+
105
+ {% if htmlClass contains "no_toc" %}
106
+ {% continue %}
107
+ {% endif %}
108
+
109
+ {% if firstHeader %}
110
+ {% assign minHeader = currLevel %}
111
+ {% endif %}
112
+
113
+ {% capture _hAttrToStrip %}{{ _workspace[0] | split: '>' | first }}>{% endcapture %}
114
+ {% assign header = _workspace[0] | replace: _hAttrToStrip, '' %}
115
+
116
+ {% if include.item_class and include.item_class != blank %}
117
+ {% capture listItemClass %} class="{{ include.item_class | replace: '%level%', currLevel | split: '.' | join: ' ' }}"{% endcapture %}
118
+ {% endif %}
119
+
120
+ {% if include.submenu_class and include.submenu_class != blank %}
121
+ {% assign subMenuLevel = currLevel | minus: 1 %}
122
+ {% capture subMenuClass %} class="{{ include.submenu_class | replace: '%level%', subMenuLevel | split: '.' | join: ' ' }}"{% endcapture %}
123
+ {% endif %}
124
+
125
+ {% capture anchorBody %}{% if include.sanitize %}{{ header | strip_html }}{% else %}{{ header }}{% endif %}{% endcapture %}
126
+
127
+ {% if htmlID %}
128
+ {% capture anchorAttributes %} href="{% if baseURL %}{{ baseURL }}{% endif %}#{{ htmlID }}"{% endcapture %}
129
+
130
+ {% if include.anchor_class %}
131
+ {% capture anchorAttributes %}{{ anchorAttributes }} class="{{ include.anchor_class | split: '.' | join: ' ' }}"{% endcapture %}
132
+ {% endif %}
133
+
134
+ {% capture listItem %}<a{{ anchorAttributes }}>{{ anchorBody }}</a>{% endcapture %}
135
+ {% elsif skipNoIDs == true %}
136
+ {% continue %}
137
+ {% else %}
138
+ {% capture listItem %}{{ anchorBody }}{% endcapture %}
139
+ {% endif %}
140
+
141
+ {% if currLevel > lastLevel %}
142
+ {% capture jekyll_toc %}{{ jekyll_toc }}<{{ listModifier }}{{ subMenuClass }}>{% endcapture %}
143
+ {% elsif currLevel < lastLevel %}
144
+ {% assign repeatCount = lastLevel | minus: currLevel %}
145
+
146
+ {% for i in (1..repeatCount) %}
147
+ {% capture jekyll_toc %}{{ jekyll_toc }}</li></{{ listModifier }}>{% endcapture %}
148
+ {% endfor %}
149
+
150
+ {% capture jekyll_toc %}{{ jekyll_toc }}</li>{% endcapture %}
151
+ {% else %}
152
+ {% capture jekyll_toc %}{{ jekyll_toc }}</li>{% endcapture %}
153
+ {% endif %}
154
+
155
+ {% capture jekyll_toc %}{{ jekyll_toc }}<li{{ listItemClass }}>{{ listItem }}{% endcapture %}
156
+
157
+ {% assign lastLevel = currLevel %}
158
+ {% assign firstHeader = false %}
159
+ {% endfor %}
160
+
161
+ {% assign repeatCount = minHeader | minus: 1 %}
162
+ {% assign repeatCount = lastLevel | minus: repeatCount %}
163
+ {% for i in (1..repeatCount) %}
164
+ {% capture jekyll_toc %}{{ jekyll_toc }}</li></{{ listModifier }}>{% endcapture %}
165
+ {% endfor %}
166
+
167
+ {% if jekyll_toc != '' %}
168
+ {% assign rootAttributes = '' %}
169
+
170
+ {% if include.wrap_class and include.wrap_class != blank %}
171
+ {% capture wrapperAttributes %} class="{{ include.wrap_class | split: '.' | join: ' ' }}"{% endcapture %} %}
172
+ {% endif %}
173
+
174
+ {% if include.class and include.class != blank %}
175
+ {% capture rootAttributes %} class="{{ include.class | split: '.' | join: ' ' }}"{% endcapture %}
176
+ {% endif %}
177
+
178
+ {% if include.id and include.id != blank %}
179
+ {% capture rootAttributes %}{{ rootAttributes }} id="{{ include.id }}"{% endcapture %}
180
+ {% endif %}
181
+
182
+ {% if rootAttributes %}
183
+ {% assign nodes = jekyll_toc | split: '>' %}
184
+ {% capture jekyll_toc %}<div {{ wrapperAttributes }}><{{ listModifier }}{{ rootAttributes }}>{{ nodes | shift | join: '>' }}></div>{% endcapture %}
185
+ {% endif %}
186
+ {% endif %}
187
+ {% endcapture %}{% assign tocWorkspace = '' %}{{ deprecation_warnings }}{{ jekyll_toc }}
data/_layouts/404.html ADDED
@@ -0,0 +1,10 @@
1
+ ---
2
+ layout: base
3
+ ---
4
+ <div id="four-zero-four" class="four-zero-four">
5
+
6
+ <h1>{{ site.data.emoji.missing }} 404 {{ site.data.emoji.missing }}</h1>
7
+
8
+ <p class="markdown">{{ content }}</p>
9
+
10
+ </div>
@@ -0,0 +1,14 @@
1
+ ---
2
+ layout: base
3
+ ---
4
+ <div id="about" class="about">
5
+
6
+ <div class="hp-title">
7
+ <h1 class="p-name">{{ site.data.emoji.about }} {{ page.title }}</h1>
8
+ </div>
9
+
10
+ <div class="hp-content markdown e-content p-name">
11
+ {{ content }}
12
+ </div>
13
+
14
+ </div>
@@ -0,0 +1,77 @@
1
+ ---
2
+ layout: base
3
+ ---
4
+ <div id="archive" class="archive">
5
+
6
+ <div class="hp-title">
7
+ <h1>{{ site.data.emoji.archive }} Garden Bed</h1>
8
+ <p>{{ content }}</p>
9
+ </div>
10
+
11
+ <div class="hp-content">
12
+
13
+
14
+ <h4 class="archive__title">
15
+ {{ site.bonsai.archive.section.posts }}
16
+ </h4>
17
+
18
+ <ul class="archive__list">
19
+ {% assign post_items = site.posts | sort: "date" %}
20
+ {% for post in post_items%}
21
+ <li>
22
+ <div class="archive__item">
23
+ <span>
24
+ {% include btn_state.html states=post.status %}
25
+ <a class="wiki-link" href="{{ post.url | relative_url }}">{{ post.title }}</a>
26
+ </span>
27
+ <time class="text--date dt-published">
28
+ {{ post.updated | slice: 0, 10 | date: site.bonsai.date_format }}
29
+ </time>
30
+ </div>
31
+ </li>
32
+ {% endfor %}
33
+ </ul>
34
+
35
+ <h4 class="archive__title">
36
+ {{ site.bonsai.archive.section.books }}
37
+ </h4>
38
+ <ul class="archive__list">
39
+ {% assign book_items = site.books | sort %}
40
+ {% for book in book_items %}
41
+ <li>
42
+ <div class="archive__item">
43
+ <span>
44
+ {% include btn_state.html states=book.status %}
45
+ <a class="wiki-link" href="{{ book.url | relative_url }}">{{ book.title }}</a>
46
+ </span>
47
+ <time class="text--date dt-published">
48
+ {{ book.updated | slice: 0, 10 | date: site.bonsai.date_format }}
49
+ </time>
50
+ </div>
51
+ </li>
52
+ {% endfor %}
53
+ </ul>
54
+
55
+ <h4 class="archive__title">
56
+ {{ site.bonsai.archive.section.entries }}
57
+ </h4>
58
+ <ul class="archive__list">
59
+ {% assign entry_items = site.entries | sort: "title" %}
60
+ {% for entry in entry_items %}
61
+ <li>
62
+ <div class="archive__item">
63
+ <span>
64
+ {% include btn_state.html states=entry.status %}
65
+ <a class="wiki-link" href="{{ entry.url | relative_url }}">{{ entry.title }}</a>
66
+ </span>
67
+ <time class="text--date dt-published">
68
+ {{ entry.updated | slice: 0, 10 | date: site.bonsai.date_format }}
69
+ </time>
70
+ </div>
71
+ </li>
72
+ {% endfor %}
73
+ </ul>
74
+
75
+ </div>
76
+
77
+ </div>
@@ -0,0 +1,68 @@
1
+ ---
2
+ ---
3
+ <!doctype html>
4
+ <html>
5
+ <head>
6
+
7
+ <meta charset="utf-8">
8
+ <meta name="viewport" content="width=device-width,initial-scale=1.0">
9
+
10
+ <title>{{ page.title }}</title>
11
+
12
+ <link rel="icon" type="image/png">
13
+ <link rel="stylesheet" href="{{ '/assets/css/styles.css' | relative_url }}">
14
+
15
+ <script>
16
+ // from: https://mxb.dev/blog/color-theme-switcher/
17
+ // if there's a theme id in localstorage, use it on initia load
18
+ localStorage.getItem('theme-colors') &&
19
+ document.documentElement.setAttribute('data-theme', localStorage.getItem('theme-colors'))
20
+ </script>
21
+
22
+ <!-- search -->
23
+ <script src="https://unpkg.com/lunr/lunr.js"></script>
24
+ {% jekyll_graph %}
25
+ {% feed_meta %}
26
+ {% seo %}
27
+
28
+ </head>
29
+ <body>
30
+
31
+ <div id="side-bar" class="side-bar">
32
+ {% include site-nav.html %}
33
+ </div>
34
+
35
+ <div id="main" class="main">
36
+ <main class="main__content">
37
+ {% include anchor-headings.html html=content anchorClass="anchor-heading" %}
38
+ </main>
39
+ <footer class="main__footer">
40
+ {% assign about_page = site.pages | find_exp: "item", "item.name == 'about.md'" %}
41
+ {% if about_page %}
42
+ <a class="btn btn--small btn--brown" href="{{ '/about/' | relative_url }}" title="Go To About">{{ site.data.emoji.about }}</a>
43
+ {% endif %}
44
+ {% assign privacy_page = site.pages | find_exp: "item", "item.name == 'privacy.md'" %}
45
+ {% if privacy_page %}
46
+ <a class="btn btn--small btn--brown" href="{{ '/privacy/' | relative_url }}" title="Go To Privacy">{{ site.data.emoji.privacy }}</a>
47
+ {% endif %}
48
+ {% if site.social.connect.enabled %}
49
+ {% include connect.html %}
50
+ {% endif %}
51
+ </footer>
52
+ </div>
53
+
54
+ <label class="bonsai-burger-nav">
55
+ <input id="bonsai-burger-nav-checkbox" type="checkbox">
56
+ <img id="nav-bonsai" height="75" width="75" hidden></img>
57
+ <img id="nav-base" height="50" width="50"></img>
58
+ </label>
59
+
60
+ {% include hp-tooltip.html wrapperQuerySelector="content" %}
61
+ <!-- modules: https://stackoverflow.com/questions/58211880/uncaught-syntaxerror-cannot-use-import-statement-outside-a-module-when-import -->
62
+ <script type="module" src="{{ '/assets/js/scripts.js' | relative_url }}"></script>
63
+ {% include img/pencil-filter.svg %}
64
+ {% if site.ga_tracking != nil %}
65
+ {% include cookie-consent.html %}
66
+ {% endif %}
67
+ </body>
68
+ </html>
@@ -0,0 +1,40 @@
1
+ ---
2
+ layout: base
3
+ ---
4
+
5
+ <article id="book"
6
+ class="book h-entry"
7
+ role="article"
8
+ itemscope
9
+ itemtype="http://schema.org/BlogPosting"
10
+ aria-labelledby="{{ title | slug }}-title">
11
+
12
+ <div class="book__title hp-title">
13
+ <h1 class="p-name">{{ page.title }}</h1>
14
+ <h4>{{ page.subtitle }}</h4>
15
+ </div>
16
+
17
+ <section class="book__infobox">
18
+ <div class="infobox">
19
+ {% assign book_cover_img_src = site.baseurl | append: "/assets/img/books/" | append: page.slug | append: ".png" %}
20
+ <img src='{{ book_cover_img_src }}' class="infobox__img--cover">
21
+ {% include toc.html html=content wrap_class="toc" class="toc__list" item_class="toc__list-item" anchor_class="toc__anchor" %}
22
+ {% include dates.html updated=page.updated date=page.date %}
23
+ <div class="infobox__bar">
24
+ {% include btn_state.html states=page.status %}
25
+ {% if site.social.share.enabled %}
26
+ {% include share.html %}
27
+ {% endif %}
28
+ </div>
29
+ <div class="infobox__sem-tags p-category">
30
+ {% assign tags_attrs = page.attributes | link_type: "tags" %}
31
+ {% include tags.html tags_attrs=tags_attrs tags_fm=page.tags %}
32
+ </div>
33
+ </div>
34
+ </section>
35
+
36
+ <div class="book__content markdown hp-content e-content p-name">
37
+ {{ content }}
38
+ </div>
39
+
40
+ </article>