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,12 @@
|
|
1
|
+
---
|
2
|
+
id: 908c123c77
|
3
|
+
title: Creator
|
4
|
+
desc: ''
|
5
|
+
updated: 1623851566991
|
6
|
+
created: 1620681119055
|
7
|
+
tags: "\U0001F33F"
|
8
|
+
---
|
9
|
+
One of the core principles driving this template is that people should be in control of their own content: They own it and have the final say on what is done with it.
|
10
|
+
|
11
|
+
So, [[features.notes|note]] content is rendered from plain markdown files and the graph is built from the [[features.site-nav.graph.links.wikilinks]] and [[features.site-nav.graph.links.namespacing]].
|
12
|
+
|
data/_entries/people.md
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
---
|
2
|
+
id: a0020408a9
|
3
|
+
title: Visitors
|
4
|
+
desc: ''
|
5
|
+
updated: 1622903588995
|
6
|
+
created: 1620493085857
|
7
|
+
tags: 🌿
|
8
|
+
---
|
9
|
+
|
10
|
+
You know, people. Humans ~~🤖~~...Hopefully ☺️. Not just "users".
|
11
|
+
|
12
|
+
Some minimal [[features.visitor-preferences]] are stored locally for the visitor's convenience.
|
data/_entries/plugins.md
ADDED
data/_entries/root.md
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
---
|
2
|
+
id: e4dc466bc6
|
3
|
+
title: Jekyll-Bonsai
|
4
|
+
desc: ''
|
5
|
+
updated: 1623247179192
|
6
|
+
created: 1620408350557
|
7
|
+
tags: 🍈
|
8
|
+
---
|
9
|
+
|
10
|
+
🦊 Welcome to Jekyll-Bonsai.
|
11
|
+
|
12
|
+
This template is about discovering new ways of structuring knowledge and navigating the internet.
|
13
|
+
|
14
|
+
It's about discovering and crafting digital tools that are meant to help us, that wait patiently as we do our human thing. It's about leveraging the things we as people are good at, like visual navigation over walls of menu-text, or speaking in story and metaphor instead of trudging through countless bits of minutae.
|
15
|
+
|
16
|
+
It's a [[digital-garden.bonsai]]. It's a [[digital-garden]]. The [[features]][>all] herein are meant to investigate how we might explore the internet differently: By organizing knowledge efficiently and humanizing digital interactions with other people.
|
17
|
+
|
18
|
+
It's about cleaning up this mess we've made and to make something beautiful out of it.
|
19
|
+
|
20
|
+
🌱 mnz
|
21
|
+
|
22
|
+
PS Check out the [github repo](https://github.com/manunamz/jekyll-bonsai) to start sifting through code.
|
23
|
+
|
24
|
+
PPS This was my first time learning scss, ruby, jekyll, and d3. Code quality may vary.
|
25
|
+
|
26
|
+
[>all]: Not _all_ features are implemented yet... 😉
|
@@ -0,0 +1,152 @@
|
|
1
|
+
{% capture headingsWorkspace %}
|
2
|
+
{% comment %}
|
3
|
+
Copyright (c) 2018 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.0.9
|
28
|
+
https://github.com/allejo/jekyll-anchor-headings
|
29
|
+
|
30
|
+
"Be the pull request you wish to see in the world." ~Ben Balter
|
31
|
+
|
32
|
+
Usage:
|
33
|
+
{% include anchor_headings.html html=content anchorBody="#" %}
|
34
|
+
|
35
|
+
Parameters:
|
36
|
+
* html (string) - the HTML of compiled markdown generated by kramdown in Jekyll
|
37
|
+
|
38
|
+
Optional Parameters:
|
39
|
+
* beforeHeading (bool) : false - Set to true if the anchor should be placed _before_ the heading's content
|
40
|
+
* headerAttrs (string) : '' - Any custom HTML attributes that will be added to the heading tag; you may NOT use `id`;
|
41
|
+
the `%heading%` and `%html_id%` placeholders are available
|
42
|
+
* anchorAttrs (string) : '' - Any custom HTML attributes that will be added to the `<a>` tag; you may NOT use `href`, `class` or `title`;
|
43
|
+
the `%heading%` and `%html_id%` placeholders are available
|
44
|
+
* anchorBody (string) : '' - The content that will be placed inside the anchor; the `%heading%` placeholder is available
|
45
|
+
* anchorClass (string) : '' - The class(es) that will be used for each anchor. Separate multiple classes with a space
|
46
|
+
* anchorTitle (string) : '' - The `title` attribute that will be used for anchors
|
47
|
+
* h_min (int) : 1 - The minimum header level to build an anchor for; any header lower than this value will be ignored
|
48
|
+
* h_max (int) : 6 - The maximum header level to build an anchor for; any header greater than this value will be ignored
|
49
|
+
* bodyPrefix (string) : '' - Anything that should be inserted inside of the heading tag _before_ its anchor and content
|
50
|
+
* bodySuffix (string) : '' - Anything that should be inserted inside of the heading tag _after_ its anchor and content
|
51
|
+
|
52
|
+
Output:
|
53
|
+
The original HTML with the addition of anchors inside of all of the h1-h6 headings.
|
54
|
+
{% endcomment %}
|
55
|
+
|
56
|
+
{% assign minHeader = include.h_min | default: 1 %}
|
57
|
+
{% assign maxHeader = include.h_max | default: 6 %}
|
58
|
+
{% assign beforeHeading = include.beforeHeading %}
|
59
|
+
{% assign nodes = include.html | split: '<h' %}
|
60
|
+
|
61
|
+
{% capture edited_headings %}{% endcapture %}
|
62
|
+
|
63
|
+
{% for _node in nodes %}
|
64
|
+
{% capture node %}{{ _node | strip }}{% endcapture %}
|
65
|
+
|
66
|
+
{% if node == "" %}
|
67
|
+
{% continue %}
|
68
|
+
{% endif %}
|
69
|
+
|
70
|
+
{% assign nextChar = node | replace: '"', '' | strip | slice: 0, 1 %}
|
71
|
+
{% assign headerLevel = nextChar | times: 1 %}
|
72
|
+
|
73
|
+
<!-- If the level is cast to 0, it means it's not a h1-h6 tag, so let's see if we need to fix it -->
|
74
|
+
{% if headerLevel == 0 %}
|
75
|
+
<!-- Split up the node based on closing angle brackets and get the first one. -->
|
76
|
+
{% assign firstChunk = node | split: '>' | first %}
|
77
|
+
|
78
|
+
<!-- If the first chunk does NOT contain a '<', that means we've broken another HTML tag that starts with 'h' -->
|
79
|
+
{% unless firstChunk contains '<' %}
|
80
|
+
{% capture node %}<h{{ node }}{% endcapture %}
|
81
|
+
{% endunless %}
|
82
|
+
|
83
|
+
{% capture edited_headings %}{{ edited_headings }}{{ node }}{% endcapture %}
|
84
|
+
{% continue %}
|
85
|
+
{% endif %}
|
86
|
+
|
87
|
+
{% capture _closingTag %}</h{{ headerLevel }}>{% endcapture %}
|
88
|
+
{% assign _workspace = node | split: _closingTag %}
|
89
|
+
{% assign _idWorkspace = _workspace[0] | split: 'id="' %}
|
90
|
+
{% assign _idWorkspace = _idWorkspace[1] | split: '"' %}
|
91
|
+
{% assign html_id = _idWorkspace[0] %}
|
92
|
+
|
93
|
+
{% capture _hAttrToStrip %}{{ _workspace[0] | split: '>' | first }}>{% endcapture %}
|
94
|
+
{% assign header = _workspace[0] | replace: _hAttrToStrip, '' %}
|
95
|
+
|
96
|
+
<!-- Build the anchor to inject for our heading -->
|
97
|
+
{% capture anchor %}{% endcapture %}
|
98
|
+
|
99
|
+
{% if html_id and headerLevel >= minHeader and headerLevel <= maxHeader %}
|
100
|
+
{% assign escaped_header = header | strip_html %}
|
101
|
+
|
102
|
+
{% if include.headerAttrs %}
|
103
|
+
{% capture _hAttrToStrip %}{{ _hAttrToStrip | split: '>' | first }} {{ include.headerAttrs | replace: '%heading%', escaped_header | replace: '%html_id%', html_id }}>{% endcapture %}
|
104
|
+
{% endif %}
|
105
|
+
|
106
|
+
{% capture anchor %}href="#{{ html_id }}"{% endcapture %}
|
107
|
+
|
108
|
+
{% if include.anchorClass %}
|
109
|
+
{% capture anchor %}{{ anchor }} class="{{ include.anchorClass }}"{% endcapture %}
|
110
|
+
{% endif %}
|
111
|
+
|
112
|
+
{% if include.anchorTitle %}
|
113
|
+
{% capture anchor %}{{ anchor }} title="{{ include.anchorTitle | replace: '%heading%', escaped_header }}"{% endcapture %}
|
114
|
+
{% endif %}
|
115
|
+
|
116
|
+
{% if include.anchorAttrs %}
|
117
|
+
{% capture anchor %}{{ anchor }} {{ include.anchorAttrs | replace: '%heading%', escaped_header | replace: '%html_id%', html_id }}{% endcapture %}
|
118
|
+
{% endif %}
|
119
|
+
|
120
|
+
{% capture anchor %}<a {{ anchor }}>{{ include.anchorBody | replace: '%heading%', escaped_header | default: '' }}</a>{% endcapture %}
|
121
|
+
|
122
|
+
<!-- In order to prevent adding extra space after a heading, we'll let the 'anchor' value contain it -->
|
123
|
+
{% if beforeHeading %}
|
124
|
+
{% capture anchor %}{{ anchor }} {% endcapture %}
|
125
|
+
{% else %}
|
126
|
+
{% capture anchor %} {{ anchor }}{% endcapture %}
|
127
|
+
{% endif %}
|
128
|
+
{% endif %}
|
129
|
+
|
130
|
+
{% capture new_heading %}
|
131
|
+
<h{{ _hAttrToStrip }}
|
132
|
+
{{ include.bodyPrefix }}
|
133
|
+
{% if beforeHeading %}
|
134
|
+
{{ anchor }}{{ header }}
|
135
|
+
{% else %}
|
136
|
+
{{ header }}{{ anchor }}
|
137
|
+
{% endif %}
|
138
|
+
{{ include.bodySuffix }}
|
139
|
+
</h{{ headerLevel }}>
|
140
|
+
{% endcapture %}
|
141
|
+
|
142
|
+
<!--
|
143
|
+
If we have content after the `</hX>` tag, then we'll want to append that here so we don't lost any content.
|
144
|
+
-->
|
145
|
+
{% assign chunkCount = _workspace | size %}
|
146
|
+
{% if chunkCount > 1 %}
|
147
|
+
{% capture new_heading %}{{ new_heading }}{{ _workspace | last }}{% endcapture %}
|
148
|
+
{% endif %}
|
149
|
+
|
150
|
+
{% capture edited_headings %}{{ edited_headings }}{{ new_heading }}{% endcapture %}
|
151
|
+
{% endfor %}
|
152
|
+
{% endcapture %}{% assign headingsWorkspace = '' %}{{ edited_headings | strip }}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
<!-- from: https://jekyllcodex.org/without-plugin/connect-buttons/ -->
|
2
|
+
<style>
|
3
|
+
#connect-buttons {display: inline-block; vertical-align: middle; }
|
4
|
+
#connect-buttons:after {content: ""; display: block; clear: both;}
|
5
|
+
#connect-buttons > div {
|
6
|
+
position: relative;
|
7
|
+
text-align: left;
|
8
|
+
height: 36px;
|
9
|
+
width: 32px;
|
10
|
+
float: left;
|
11
|
+
text-align: center;
|
12
|
+
}
|
13
|
+
#connect-buttons > div > svg {height: 16px; fill: #959396; margin-top: 10px;} /* $grey-dk-000 */
|
14
|
+
#connect-buttons > div:hover {cursor: pointer;}
|
15
|
+
#connect-buttons > div.facebook:hover > svg {fill: #3B5998;}
|
16
|
+
#connect-buttons > div.github:hover > svg {fill: #000000;}
|
17
|
+
#connect-buttons > div.twitter:hover > svg {fill: #55ACEE;}
|
18
|
+
#connect-buttons > div.linkedin:hover > svg {fill: #0077b5;}
|
19
|
+
#connect-buttons > div.pinterest:hover > svg {fill: #CB2027;}
|
20
|
+
#connect-buttons > div.rss:hover > svg {fill: #ECB13D;}
|
21
|
+
#connect-buttons > div.gplus:hover > svg {fill: #dd4b39;}
|
22
|
+
#connect-buttons > div.mail:hover > svg {fill: #5c5962;} /* $grey-dk-100 */
|
23
|
+
#connect-buttons > div.instagram:hover > svg {fill: #C73B92;}
|
24
|
+
#connect-buttons > div.facebook > svg {height: 18px; margin-top: 9px;}
|
25
|
+
#connect-buttons > div.github > svg {height: 18px; margin-top: 9px;}
|
26
|
+
#connect-buttons > div.twitter > svg {height: 20px; margin-top: 8px;}
|
27
|
+
#connect-buttons > div.linkedin > svg {height: 19px; margin-top: 7px;}
|
28
|
+
#connect-buttons > div.pinterest > svg {height: 20px; margin-top: 9px;}
|
29
|
+
/* #connect-buttons > div.rss > svg {height: 16px; margin-top: 9px;} */
|
30
|
+
#connect-buttons > div.gplus > svg {height: 17px; margin-top: 9px; position: relative; left: 1px;}
|
31
|
+
#connect-buttons > div.mail > svg {height: 14px; margin-top: 11px;}
|
32
|
+
</style>
|
33
|
+
|
34
|
+
<div style="text-align: left;">
|
35
|
+
<span style="user-select: none;" title="Connect and Follow">🌊</span>
|
36
|
+
<div id="connect-buttons">
|
37
|
+
{% if site.social.connect.facebook_url %}<div class="facebook" title="Connect on Facebook" onclick="window.open('{{ site.social.connect.facebook_url }}');"><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 %}
|
38
|
+
{% if site.social.connect.github_url %}<div class="github" title="Connect on Github" onclick="window.open('{{ site.social.connect.github_url }}');"><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 %}
|
39
|
+
{% if site.social.connect.linkedin_url %}<div class="linkedin" title="Connect on Linkedin" onclick="window.open('{{ site.social.connect.linkedin_url }}');"><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 %}
|
40
|
+
{% if site.social.connect.pinterest_url %}<div class="pinterest" title="Connect on Pinterest" onclick="window.open('{{ site.social.connect.pinterest_url }}');"><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 %}
|
41
|
+
{% if site.social.connect.twitter_url %}<div class="twitter" title="Connect on Twitter" onclick="window.open('{{ site.social.connect.twitter_url }}');"><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 %}
|
42
|
+
{% if site.social.connect.rss_url %}<div class="rss" title="Connect RSS Feed" onclick="window.open('{{ site.social.connect.rss_url }}');"><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
|
+
</div>
|
44
|
+
</div>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<!-- <table class="infobox" style="width: 40%; float: right;">
|
2
|
+
<tbody>
|
3
|
+
<th style="width: 100%;">{{ page.title }}</th>
|
4
|
+
{% assign attributes = page.attributes | doc_type: "sem_tags" %}
|
5
|
+
{% for attr in attributes %}
|
6
|
+
<tr>
|
7
|
+
<th>{{ attr.type | capitalize }}</th>
|
8
|
+
<td><a class="wiki-link" href="{{ attr.doc.url | relative_url }}">{{ attr.doc.title }}</a></td>
|
9
|
+
</tr>
|
10
|
+
{% endfor %}
|
11
|
+
</tbody>
|
12
|
+
</table> -->
|
13
|
+
|
14
|
+
{% assign attributes = page.attributes | doc_type: "sem_tags" %}
|
15
|
+
{% if attributes.size > 0 %}
|
16
|
+
<div class="infobox" style="padding: 1em; width: 40%; float: right;">
|
17
|
+
<p class="title">Attributes</p>
|
18
|
+
<ul>
|
19
|
+
{% for attr in attributes %}
|
20
|
+
<li style="display: flex; justify-content: space-between;">
|
21
|
+
<span>{{ attr.type | capitalize }} : </span>
|
22
|
+
<span><a class="wiki-link" href="{{ attr.doc.url | relative_url }}">{{ attr.doc.title }}</a></span>
|
23
|
+
</li>
|
24
|
+
{% endfor %}
|
25
|
+
</ul>
|
26
|
+
</div>
|
27
|
+
{% endif %}
|
data/_includes/head.html
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
<head>
|
2
|
+
<!-- Global site tag (gtag.js) - Google Analytics -->
|
3
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-190413040-3"></script>
|
4
|
+
<script>
|
5
|
+
window.dataLayer = window.dataLayer || [];
|
6
|
+
function gtag(){dataLayer.push(arguments);}
|
7
|
+
gtag('js', new Date());
|
8
|
+
|
9
|
+
gtag('config', {{ site.ga_tracking }}, { 'anonymize_ip': true });
|
10
|
+
</script>
|
11
|
+
|
12
|
+
<meta charset="utf-8">
|
13
|
+
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
14
|
+
|
15
|
+
<title>{{ page.title }}</title>
|
16
|
+
|
17
|
+
<link rel="icon" type="image/png">
|
18
|
+
<link rel="stylesheet" href="{{ '/assets/css/styles.css' | relative_url }}">
|
19
|
+
|
20
|
+
{% feed_meta %}
|
21
|
+
{% seo %}
|
22
|
+
|
23
|
+
</head>
|
@@ -0,0 +1,84 @@
|
|
1
|
+
<!-- That file is not particularly elegant. This will need a refactor at some point. -->
|
2
|
+
<style>
|
3
|
+
/* leave id for opacity toggle */
|
4
|
+
#tooltip-wrapper {
|
5
|
+
opacity: 0;
|
6
|
+
transition: opacity 100ms;
|
7
|
+
}
|
8
|
+
</style>
|
9
|
+
|
10
|
+
<div style="opacity: 0; display: none;" class="tooltip-wrapper" id="tooltip-wrapper">
|
11
|
+
<div id='tooltip-content'></div>
|
12
|
+
</div>
|
13
|
+
<iframe style="display: none; height: 0; width: 0;" id="hover-preview-iframe" src=""></iframe>
|
14
|
+
|
15
|
+
<script>
|
16
|
+
var opacityTimeout;
|
17
|
+
var contentTimeout;
|
18
|
+
var transitionDurationMs = 100;
|
19
|
+
|
20
|
+
var iframe = document.getElementById('hover-preview-iframe');
|
21
|
+
var tooltipWrapper = document.getElementById('tooltip-wrapper');
|
22
|
+
var tooltipContent = document.getElementById('tooltip-content');
|
23
|
+
|
24
|
+
function hideTooltip() {
|
25
|
+
opacityTimeout = setTimeout(function() {
|
26
|
+
tooltipWrapper.style.opacity = 0;
|
27
|
+
contentTimeout = setTimeout(function() {
|
28
|
+
tooltipContent.innerHTML = '';
|
29
|
+
tooltipWrapper.style.display = 'none';
|
30
|
+
}, transitionDurationMs + 1);
|
31
|
+
}, transitionDurationMs)
|
32
|
+
}
|
33
|
+
|
34
|
+
function showTooltip(event) {
|
35
|
+
var elem = event.target;
|
36
|
+
var elem_props = elem.getClientRects()[elem.getClientRects().length - 1];
|
37
|
+
var top = window.pageYOffset || document.documentElement.scrollTop;
|
38
|
+
|
39
|
+
if (event.target.host === window.location.host) {
|
40
|
+
iframe.src = event.target.href;
|
41
|
+
iframe.onload = function() {
|
42
|
+
tooltipContent.innerHTML = iframe.contentWindow.document.querySelector('.main-content').innerHTML;
|
43
|
+
tooltipWrapper.style.display = 'block';
|
44
|
+
setTimeout(function() {
|
45
|
+
tooltipWrapper.style.opacity = 1;
|
46
|
+
}, 1);
|
47
|
+
};
|
48
|
+
|
49
|
+
tooltipWrapper.style.left = elem_props.left - (tooltipWrapper.offsetWidth / 2) + (elem_props.width / 2) + "px";
|
50
|
+
if ((window.innerHeight - elem_props.top) < (tooltipWrapper.offsetHeight)) {
|
51
|
+
tooltipWrapper.style.top = elem_props.top + top - tooltipWrapper.offsetHeight - 10 + "px";
|
52
|
+
} else if ((window.innerHeight - elem_props.top) > (tooltipWrapper.offsetHeight)) {
|
53
|
+
tooltipWrapper.style.top = elem_props.top + top + 35 + "px";
|
54
|
+
}
|
55
|
+
|
56
|
+
if ((elem_props.left + (elem_props.width / 2)) < (tooltipWrapper.offsetWidth / 2)) {
|
57
|
+
tooltipWrapper.style.left = "10px";
|
58
|
+
} else if ((document.body.clientWidth - elem_props.left - (elem_props.width / 2)) < (tooltipWrapper.offsetWidth / 2)) {
|
59
|
+
tooltipWrapper.style.left = document.body.clientWidth - tooltipWrapper.offsetWidth - 20 + "px";
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
function setupListeners(linkElement) {
|
65
|
+
linkElement.addEventListener('mouseleave', function(_event) {
|
66
|
+
hideTooltip();
|
67
|
+
});
|
68
|
+
|
69
|
+
tooltipWrapper.addEventListener('mouseleave', function(_event) {
|
70
|
+
hideTooltip();
|
71
|
+
});
|
72
|
+
|
73
|
+
linkElement.addEventListener('mouseenter', function(event) {
|
74
|
+
clearTimeout(opacityTimeout);
|
75
|
+
clearTimeout(contentTimeout);
|
76
|
+
showTooltip(event);
|
77
|
+
});
|
78
|
+
|
79
|
+
tooltipWrapper.addEventListener('mouseenter', function(event) {
|
80
|
+
clearTimeout(opacityTimeout);
|
81
|
+
clearTimeout(contentTimeout);
|
82
|
+
});
|
83
|
+
}
|
84
|
+
</script>
|
@@ -0,0 +1,5 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" height="15" width="15" viewBox="0 0 50 50" overflow="visible" stroke-width="5" stroke-linecap="round">
|
2
|
+
<line class="bullet-link" x1="0" y1="5" x2="25" y2="25" stroke="#8C6239" />
|
3
|
+
<line class="bullet-link" x1="0" y1="45" x2="25" y2="25" stroke="#8C6239" />
|
4
|
+
<circle class="bullet-node" cx="25" cy="25" r="10" fill="#31AF31" />
|
5
|
+
</svg>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<svg class="graph-icon" xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 50 50" overflow="visible" stroke-width="5" stroke-linecap="round">
|
2
|
+
<line class="bullet-link" x1="25" y1="33" x2="2" y2="50" stroke="#8C6239" />
|
3
|
+
<line class="bullet-link" x1="25" y1="33" x2="25" y2="5" stroke="#8C6239" />
|
4
|
+
<line class="bullet-link" x1="25" y1="33" x2="47" y2="50" stroke="#8C6239" />
|
5
|
+
<circle class="bullet-node" cx="25" cy="33" r="10" fill="#31AF31"/>
|
6
|
+
<circle class="bullet-node" cx="2" cy="50" r="6" fill="#31AF31" />
|
7
|
+
<circle class="bullet-node" cx="25" cy="5" r="6" fill="#31AF31" />
|
8
|
+
<circle class="bullet-node" cx="47" cy="50" r="6" fill="#31AF31" />
|
9
|
+
</svg>
|