DevSculptor 1.0.0
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 +21 -0
- data/README.md +711 -0
- data/_config.yml +142 -0
- data/_data/blogroll.yml +34 -0
- data/_data/locales.yml +280 -0
- data/_data/page-list.yml +28 -0
- data/_data/projects.yml +50 -0
- data/_data/social.yml +149 -0
- data/_includes/about.html +19 -0
- data/_includes/anchor_headings.html +174 -0
- data/_includes/archives.html +28 -0
- data/_includes/categories.html +21 -0
- data/_includes/comments.html +35 -0
- data/_includes/footer/code-block-lang.html +12 -0
- data/_includes/footer/color_theme_toggler.html +92 -0
- data/_includes/footer/copyright.html +14 -0
- data/_includes/footer/create-toc.html +51 -0
- data/_includes/footer/page_pagination.html +24 -0
- data/_includes/footer/reading-time.html +11 -0
- data/_includes/footer/scripts.html +10 -0
- data/_includes/footer/toggle-toc.html +12 -0
- data/_includes/footer.html +50 -0
- data/_includes/head/ban.html +7 -0
- data/_includes/head/google_analytics.html +9 -0
- data/_includes/head/icons.html +5 -0
- data/_includes/head/scripts.html +6 -0
- data/_includes/head/stylesheets.html +2 -0
- data/_includes/head.html +20 -0
- data/_includes/home/post_card.html +56 -0
- data/_includes/home.html +28 -0
- data/_includes/navigation/color-theme-switcher.html +50 -0
- data/_includes/navigation/svg.html +20 -0
- data/_includes/navigation.html +48 -0
- data/_includes/page_pagination.html +29 -0
- data/_includes/projects/project-card.html +73 -0
- data/_includes/projects.html +8 -0
- data/_includes/search/algolia.html +165 -0
- data/_includes/sidebar/aboutme.html +61 -0
- data/_includes/sidebar/blogroll.html +7 -0
- data/_includes/sidebar.html +6 -0
- data/_includes/tags.html +21 -0
- data/_includes/toc.html +7 -0
- data/_layouts/default.html +21 -0
- data/_layouts/home.html +2 -0
- data/_layouts/page.html +11 -0
- data/_layouts/plain.html +14 -0
- data/_layouts/post.html +78 -0
- data/_sass/_base.scss +250 -0
- data/_sass/_navigation.scss +24 -0
- data/_sass/_syntax-highlighting.scss +160 -0
- data/assets/JustinSunday_Resume_2023-09-14.pdf +0 -0
- data/assets/branding/branding-colors-and-fonts/BrandBoard.pdf +0 -0
- data/assets/branding/branding-colors-and-fonts/fonts/Fira Mono Bold.ttf +0 -0
- data/assets/branding/logo/eps-pdf-png-formats.zip +0 -0
- data/assets/branding/logo/svg/logo-black.svg +1 -0
- data/assets/branding/logo/svg/logo-color.svg +1 -0
- data/assets/branding/logo/svg/logo-no-background-black-letters.svg +1 -0
- data/assets/branding/logo/svg/logo-no-background.svg +1 -0
- data/assets/branding/logo/svg/logo-white.svg +1 -0
- data/assets/fonts/CascadiaCode-WebFont/caskaydia_cove_nerd_font_complete-demo.html +517 -0
- data/assets/fonts/CascadiaCode-WebFont/caskaydia_cove_nerd_font_complete-webfont.woff +0 -0
- data/assets/fonts/CascadiaCode-WebFont/caskaydia_cove_nerd_font_complete-webfont.woff2 +0 -0
- data/assets/fonts/CascadiaCode-WebFont/generator_config.txt +5 -0
- data/assets/fonts/CascadiaCode-WebFont/specimen_files/grid_12-825-55-15.css +129 -0
- data/assets/fonts/CascadiaCode-WebFont/specimen_files/specimen_stylesheet.css +396 -0
- data/assets/fonts/CascadiaCode-WebFont/stylesheet.css +12 -0
- data/assets/images/projects/desvsculptor/20230926-localhost-iphone14promax-homepage-fotor-bg-remover-20231002163813.png +0 -0
- data/assets/images/projects/desvsculptor/20230926-localhost-iphone14promax-homepage.PNG +0 -0
- data/assets/images/projects/desvsculptor/home-page-example.png +0 -0
- data/assets/images/projects/dummy_project/ilya-pavlov-OqtafYT5kTw-unsplash.jpg +0 -0
- data/assets/images/site-shots/blogroll-20231010.png +0 -0
- data/assets/images/site-shots/blogroll-to-datayml-20201010.png +0 -0
- data/assets/images/topbutton.png +0 -0
- data/assets/js/jquery-1.9.1.min.js +5 -0
- data/assets/js/totop.js +26 -0
- data/assets/scss/main.scss +120 -0
- data/pages/about.md +8 -0
- data/pages/archives.md +7 -0
- data/pages/categories.md +8 -0
- data/pages/home.md +6 -0
- data/pages/projects.md +8 -0
- data/pages/search.md +11 -0
- data/pages/subscribe.md +12 -0
- data/pages/tags.md +7 -0
- metadata +241 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<p>
|
|
2
|
+
Lorem ipsum, dolor sit amet consectetur adipisicing elit. Possimus tempore,
|
|
3
|
+
sint exercitationem accusamus libero iure magni eius vitae dolorem beatae cum
|
|
4
|
+
ullam iste odio quidem temporibus quisquam earum amet pariatur?
|
|
5
|
+
</p>
|
|
6
|
+
|
|
7
|
+
## Contact Me
|
|
8
|
+
<form action="https://fabform.io/f/{{site.fab_form}}" method="post">
|
|
9
|
+
<label for="firstName" class="form-label">First Name</label>
|
|
10
|
+
<input name="firstName" type="text" required class="form-control">
|
|
11
|
+
<label for="lastName" class="form-label">Last Name</label>
|
|
12
|
+
<input name="lastName" type="text" class="form-control">
|
|
13
|
+
<label for="email" class="form-label">Email</label>
|
|
14
|
+
<input name="email" type="email" required class="form-control">
|
|
15
|
+
<label for="message" class="form-label">Message</label>
|
|
16
|
+
<textarea name="message" required class="form-control" rows="10"></textarea>
|
|
17
|
+
<p>Powered by <a href="https://fabform.io" target="_blank">fabform.io</a></p>
|
|
18
|
+
<button class="btn btn-primary" type="submit">Submit</button>
|
|
19
|
+
</form>
|
|
@@ -0,0 +1,174 @@
|
|
|
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.13
|
|
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
|
+
* generateId (true) : false - Set to true if a header without id should generate an id to use.
|
|
52
|
+
|
|
53
|
+
Output:
|
|
54
|
+
The original HTML with the addition of anchors inside of all of the h1-h6 headings.
|
|
55
|
+
{%- endcomment -%}
|
|
56
|
+
|
|
57
|
+
{%- assign minHeader = include.h_min | default: 1 -%}
|
|
58
|
+
{%- assign maxHeader = include.h_max | default: 6 -%}
|
|
59
|
+
{%- assign beforeHeading = include.beforeHeading -%}
|
|
60
|
+
{%- assign headerAttrs = include.headerAttrs -%}
|
|
61
|
+
{%- assign nodes = include.html | split: '<h' -%}
|
|
62
|
+
|
|
63
|
+
{%- capture edited_headings -%}{%- endcapture -%}
|
|
64
|
+
|
|
65
|
+
{%- for _node in nodes -%}
|
|
66
|
+
{%- capture node -%}{{ _node | strip }}{%- endcapture -%}
|
|
67
|
+
|
|
68
|
+
{%- if node == "" -%}
|
|
69
|
+
{%- continue -%}
|
|
70
|
+
{%- endif -%}
|
|
71
|
+
|
|
72
|
+
{%- assign nextChar = node | replace: '"', '' | strip | slice: 0, 1 -%}
|
|
73
|
+
{%- assign headerLevel = nextChar | times: 1 -%}
|
|
74
|
+
|
|
75
|
+
<!-- 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 -->
|
|
76
|
+
{%- if headerLevel == 0 -%}
|
|
77
|
+
<!-- Split up the node based on closing angle brackets and get the first one. -->
|
|
78
|
+
{%- assign firstChunk = node | split: '>' | first -%}
|
|
79
|
+
|
|
80
|
+
<!-- If the first chunk does NOT contain a '<', that means we've broken another HTML tag that starts with 'h' -->
|
|
81
|
+
{%- unless firstChunk contains '<' -%}
|
|
82
|
+
{%- capture node -%}<h{{ node }}{%- endcapture -%}
|
|
83
|
+
{%- endunless -%}
|
|
84
|
+
|
|
85
|
+
{%- capture edited_headings -%}{{ edited_headings }}{{ node }}{%- endcapture -%}
|
|
86
|
+
{%- continue -%}
|
|
87
|
+
{%- endif -%}
|
|
88
|
+
|
|
89
|
+
{%- capture _closingTag -%}</h{{ headerLevel }}>{%- endcapture -%}
|
|
90
|
+
{%- assign _workspace = node | split: _closingTag -%}
|
|
91
|
+
{%- capture _hAttrToStrip -%}{{ _workspace[0] | split: '>' | first }}>{%- endcapture -%}
|
|
92
|
+
{%- assign header = _workspace[0] | replace: _hAttrToStrip, '' -%}
|
|
93
|
+
{%- assign escaped_header = header | strip_html | strip -%}
|
|
94
|
+
|
|
95
|
+
{%- assign _classWorkspace = _workspace[0] | split: 'class="' -%}
|
|
96
|
+
{%- assign _classWorkspace = _classWorkspace[1] | split: '"' -%}
|
|
97
|
+
{%- assign _html_class = _classWorkspace[0] -%}
|
|
98
|
+
|
|
99
|
+
{%- if _html_class contains "no_anchor" -%}
|
|
100
|
+
{%- assign skip_anchor = true -%}
|
|
101
|
+
{%- else -%}
|
|
102
|
+
{%- assign skip_anchor = false -%}
|
|
103
|
+
{%- endif -%}
|
|
104
|
+
|
|
105
|
+
{%- assign _idWorkspace = _workspace[0] | split: 'id="' -%}
|
|
106
|
+
{%- if _idWorkspace[1] -%}
|
|
107
|
+
{%- assign _idWorkspace = _idWorkspace[1] | split: '"' -%}
|
|
108
|
+
{%- assign html_id = _idWorkspace[0] -%}
|
|
109
|
+
{%- assign h_attrs = headerAttrs -%}
|
|
110
|
+
{%- elsif include.generateId -%}
|
|
111
|
+
<!-- If the header did not have an id we create one. -->
|
|
112
|
+
{%- assign html_id = escaped_header | slugify -%}
|
|
113
|
+
{%- if html_id == "" -%}
|
|
114
|
+
{%- assign html_id = false -%}
|
|
115
|
+
{%- endif -%}
|
|
116
|
+
<!-- Append the generated id to other potential header attributes. -->
|
|
117
|
+
{%- capture h_attrs -%}{{ headerAttrs }} id="%html_id%"{%- endcapture -%}
|
|
118
|
+
{%- endif -%}
|
|
119
|
+
|
|
120
|
+
<!-- Build the anchor to inject for our heading -->
|
|
121
|
+
{%- capture anchor -%}{%- endcapture -%}
|
|
122
|
+
|
|
123
|
+
{%- if skip_anchor == false and html_id and headerLevel >= minHeader and headerLevel <= maxHeader -%}
|
|
124
|
+
{%- if h_attrs -%}
|
|
125
|
+
{%- capture _hAttrToStrip -%}{{ _hAttrToStrip | split: '>' | first }} {{ h_attrs | strip | replace: '%heading%', escaped_header | replace: '%html_id%', html_id }}>{%- endcapture -%}
|
|
126
|
+
{%- endif -%}
|
|
127
|
+
|
|
128
|
+
{%- capture anchor -%}href="#{{ html_id }}"{%- endcapture -%}
|
|
129
|
+
|
|
130
|
+
{%- if include.anchorClass -%}
|
|
131
|
+
{%- capture anchor -%}{{ anchor }} class="{{ include.anchorClass }}"{%- endcapture -%}
|
|
132
|
+
{%- endif -%}
|
|
133
|
+
|
|
134
|
+
{%- if include.anchorTitle -%}
|
|
135
|
+
{%- capture anchor -%}{{ anchor }} title="{{ include.anchorTitle | replace: '%heading%', escaped_header }}"{%- endcapture -%}
|
|
136
|
+
{%- endif -%}
|
|
137
|
+
|
|
138
|
+
{%- if include.anchorAttrs -%}
|
|
139
|
+
{%- capture anchor -%}{{ anchor }} {{ include.anchorAttrs | replace: '%heading%', escaped_header | replace: '%html_id%', html_id }}{%- endcapture -%}
|
|
140
|
+
{%- endif -%}
|
|
141
|
+
|
|
142
|
+
{%- capture anchor -%}<a {{ anchor }}>{{ include.anchorBody | replace: '%heading%', escaped_header | default: '' }}</a>{%- endcapture -%}
|
|
143
|
+
|
|
144
|
+
<!-- In order to prevent adding extra space after a heading, we'll let the 'anchor' value contain it -->
|
|
145
|
+
{%- if beforeHeading -%}
|
|
146
|
+
{%- capture anchor -%}{{ anchor }} {%- endcapture -%}
|
|
147
|
+
{%- else -%}
|
|
148
|
+
{%- capture anchor -%} {{ anchor }}{%- endcapture -%}
|
|
149
|
+
{%- endif -%}
|
|
150
|
+
{%- endif -%}
|
|
151
|
+
|
|
152
|
+
{%- capture new_heading -%}
|
|
153
|
+
<h{{ _hAttrToStrip }}
|
|
154
|
+
{{ include.bodyPrefix }}
|
|
155
|
+
{%- if beforeHeading -%}
|
|
156
|
+
{{ anchor }}{{ header }}
|
|
157
|
+
{%- else -%}
|
|
158
|
+
{{ header }}{{ anchor }}
|
|
159
|
+
{%- endif -%}
|
|
160
|
+
{{ include.bodySuffix }}
|
|
161
|
+
</h{{ headerLevel }}>
|
|
162
|
+
{%- endcapture -%}
|
|
163
|
+
|
|
164
|
+
<!--
|
|
165
|
+
If we have content after the `</hX>` tag, then we'll want to append that here so we don't lost any content.
|
|
166
|
+
-->
|
|
167
|
+
{%- assign chunkCount = _workspace | size -%}
|
|
168
|
+
{%- if chunkCount > 1 -%}
|
|
169
|
+
{%- capture new_heading -%}{{ new_heading }}{{ _workspace | last }}{%- endcapture -%}
|
|
170
|
+
{%- endif -%}
|
|
171
|
+
|
|
172
|
+
{%- capture edited_headings -%}{{ edited_headings }}{{ new_heading }}{%- endcapture -%}
|
|
173
|
+
{%- endfor -%}
|
|
174
|
+
{%- endcapture -%}{%- assign headingsWorkspace = '' -%}{{ edited_headings | strip }}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{%- if site.posts != empty -%}
|
|
2
|
+
{%- for post in site.posts -%}
|
|
3
|
+
{%- capture date -%}{{ post.date }}{%- endcapture -%}
|
|
4
|
+
{%- capture this_year -%}{{ date | date: "%Y" }}{%- endcapture -%}
|
|
5
|
+
{%- capture number -%}{{ forloop.length }}{%- endcapture -%}
|
|
6
|
+
{%- unless year == this_year -%}
|
|
7
|
+
{%- assign year = this_year -%}
|
|
8
|
+
{%- unless forloop.first -%}
|
|
9
|
+
</ul>
|
|
10
|
+
{%- endunless -%}
|
|
11
|
+
<h2 class="year">{{ date | date: "%Y" }}</h2>
|
|
12
|
+
<ul>
|
|
13
|
+
{%- endunless -%}
|
|
14
|
+
<li>
|
|
15
|
+
<time datetime="{{ post.date | date:"%Y-%m-%d" }}">
|
|
16
|
+
{{ post.date | date:"%Y-%m-%d" }}
|
|
17
|
+
</time>
|
|
18
|
+
» <a href="{{ site.baseurl }}{{ post.url }}" title="{{ post.title }}" aria-label="{{ post.title }}">{{ post.title }}</a>
|
|
19
|
+
</li>
|
|
20
|
+
{%- endfor -%}
|
|
21
|
+
|
|
22
|
+
{%- else -%}
|
|
23
|
+
|
|
24
|
+
<span>No posts</span>
|
|
25
|
+
|
|
26
|
+
{%- endif -%}
|
|
27
|
+
|
|
28
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<ul class="tags-box">
|
|
2
|
+
{%- if site.posts != empty -%}
|
|
3
|
+
{%- for cat in site.categories -%}
|
|
4
|
+
<span class="badge bg-info">
|
|
5
|
+
<a href="#{{ cat[0] }}" title="{{ cat[0] }}" rel="{{ cat[1].size }}">{{ cat[0] | join: "/"}}<span class="size"> {{ cat[1].size }}</span></a>
|
|
6
|
+
</span>
|
|
7
|
+
{%- endfor -%}
|
|
8
|
+
</ul>
|
|
9
|
+
|
|
10
|
+
<ul class="tags-box">
|
|
11
|
+
{%- for cat in site.categories -%}
|
|
12
|
+
<li id="{{ cat[0] }}">{{ cat[0]}}</li>
|
|
13
|
+
{%- for post in cat[1] -%}
|
|
14
|
+
<time datetime="{{ post.date | date:"%Y-%m-%d" }}">{{ post.date | date:"%Y-%m-%d" }}</time> »
|
|
15
|
+
<a href="{{ site.baseurl }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a><br />
|
|
16
|
+
{%- endfor -%}
|
|
17
|
+
{%- endfor -%}
|
|
18
|
+
{%- else -%}
|
|
19
|
+
<span>No posts</span>
|
|
20
|
+
{%- endif -%}
|
|
21
|
+
</ul>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{%- if page.comments != false -%}
|
|
2
|
+
|
|
3
|
+
<!-- begin wwww.htmlcommentbox.com -->
|
|
4
|
+
<div id="HCB_comment_box">
|
|
5
|
+
<a href="http://www.htmlcommentbox.com">Widget</a> is loading comments...
|
|
6
|
+
</div>
|
|
7
|
+
<link
|
|
8
|
+
rel="stylesheet"
|
|
9
|
+
type="text/css"
|
|
10
|
+
href="https://www.htmlcommentbox.com/static/skins/bootstrap/twitter-bootstrap.css?v=0"
|
|
11
|
+
/>
|
|
12
|
+
<script type="text/javascript" id="hcb">
|
|
13
|
+
/*<!--*/ if (!window.hcb_user) {
|
|
14
|
+
hcb_user = {};
|
|
15
|
+
}
|
|
16
|
+
(function () {
|
|
17
|
+
var s = document.createElement("script"),
|
|
18
|
+
l = hcb_user.PAGE || ("" + window.location).replace(/'/g, "%27"),
|
|
19
|
+
h = "https://www.htmlcommentbox.com";
|
|
20
|
+
s.setAttribute("type", "text/javascript");
|
|
21
|
+
s.setAttribute(
|
|
22
|
+
"src",
|
|
23
|
+
h +
|
|
24
|
+
"/jread?page=" +
|
|
25
|
+
encodeURIComponent(l).replace("+", "%2B") +
|
|
26
|
+
"&mod=%241%24wq1rdBcg%24nloVSlWq%2FJCcagZMx%2FYB40" +
|
|
27
|
+
"&opts=16798&num=10&ts=1695242013304"
|
|
28
|
+
);
|
|
29
|
+
if (typeof s != "undefined")
|
|
30
|
+
document.getElementsByTagName("head")[0].appendChild(s);
|
|
31
|
+
})(); /*-->*/
|
|
32
|
+
</script>
|
|
33
|
+
<!-- end www.htmlcommentbox.com -->
|
|
34
|
+
|
|
35
|
+
{%- endif -%}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
document.querySelectorAll(".highlighter-rouge, figure.highlight").forEach(i => {
|
|
3
|
+
i.setAttribute("data-lang", "code");
|
|
4
|
+
var l = i.getAttribute("class").split("language-");
|
|
5
|
+
if (l.length > 1) {
|
|
6
|
+
var lang = l[1].split(" ");
|
|
7
|
+
if (lang.length > 0) {
|
|
8
|
+
i.setAttribute("data-lang", lang[0]);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
</script>
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
/*!
|
|
3
|
+
* Color mode toggler for Bootstrap's docs (https://getbootstrap.com/)
|
|
4
|
+
* Copyright 2011-2023 The Bootstrap Authors
|
|
5
|
+
* Licensed under the Creative Commons Attribution 3.0 Unported License.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
(() => {
|
|
9
|
+
'use strict'
|
|
10
|
+
|
|
11
|
+
const getStoredTheme = () => localStorage.getItem('theme');
|
|
12
|
+
const setStoredTheme = theme => localStorage.setItem('theme', theme);
|
|
13
|
+
|
|
14
|
+
const getPreferredTheme = () => {
|
|
15
|
+
const storedTheme = getStoredTheme()
|
|
16
|
+
if (storedTheme) {
|
|
17
|
+
return storedTheme
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const setTheme = theme => {
|
|
24
|
+
if (theme === 'auto' && window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
|
25
|
+
document.documentElement.setAttribute('data-bs-theme', 'dark')
|
|
26
|
+
} else {
|
|
27
|
+
document.documentElement.setAttribute('data-bs-theme', theme)
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
setTheme(getPreferredTheme());
|
|
32
|
+
|
|
33
|
+
const showActiveTheme = (theme, focus = false) => {
|
|
34
|
+
const themeSwitcher = document.querySelector('#bd-theme')
|
|
35
|
+
|
|
36
|
+
if (!themeSwitcher) {
|
|
37
|
+
return
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const themeSwitcherText = document.querySelector('#bd-theme-text')
|
|
41
|
+
const activeThemeIcon = document.querySelector('.theme-icon-active use')
|
|
42
|
+
const btnToActive = document.querySelector(`[data-bs-theme-value="${theme}"]`)
|
|
43
|
+
const svgOfActiveBtn = btnToActive.querySelector('svg use').getAttribute('href')
|
|
44
|
+
|
|
45
|
+
document.querySelectorAll('[data-bs-theme-value]').forEach(element => {
|
|
46
|
+
element.classList.remove('active');
|
|
47
|
+
element.setAttribute('aria-pressed', 'false');
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
btnToActive.classList.add('active');
|
|
51
|
+
btnToActive.setAttribute('aria-pressed', 'true');
|
|
52
|
+
activeThemeIcon.setAttribute('href', svgOfActiveBtn);
|
|
53
|
+
const themeSwitcherLabel = `${themeSwitcherText.textContent} (${btnToActive.dataset.bsThemeValue})`;
|
|
54
|
+
themeSwitcher.setAttribute('aria-label', themeSwitcherLabel);
|
|
55
|
+
|
|
56
|
+
if (focus) {
|
|
57
|
+
themeSwitcher.focus();
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
const setLogo = themeColor => {
|
|
62
|
+
const themeLogo = themeColor == 'dark' ? '{{ siteLogoDark }}' : '{{ siteLogoLight }}';
|
|
63
|
+
const logoImgElement = document.getElementById("site-logo");
|
|
64
|
+
logoImgElement.setAttribute('src', themeLogo);
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', () => {
|
|
68
|
+
const storedTheme = getStoredTheme()
|
|
69
|
+
if (storedTheme !== 'light' && storedTheme !== 'dark') {
|
|
70
|
+
setTheme(getPreferredTheme());
|
|
71
|
+
setLogo(getPreferredTheme());
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
window.addEventListener('DOMContentLoaded', () => {
|
|
76
|
+
showActiveTheme(getPreferredTheme());
|
|
77
|
+
|
|
78
|
+
document.querySelectorAll('[data-bs-theme-value]')
|
|
79
|
+
.forEach(toggle => {
|
|
80
|
+
toggle.addEventListener('click', () => {
|
|
81
|
+
const theme = toggle.getAttribute('data-bs-theme-value');
|
|
82
|
+
setStoredTheme(theme);
|
|
83
|
+
setTheme(theme);
|
|
84
|
+
showActiveTheme(theme, true);
|
|
85
|
+
setLogo(getPreferredTheme());
|
|
86
|
+
})
|
|
87
|
+
})
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
setLogo(getPreferredTheme());
|
|
91
|
+
})()
|
|
92
|
+
</script>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
function updateCopyYear(){
|
|
3
|
+
const startYear = 2023;
|
|
4
|
+
let text = `${startYear}`;
|
|
5
|
+
const copyElement = document.getElementById("copyYear");
|
|
6
|
+
if (!copyElement){return;}
|
|
7
|
+
const currentYear = new Date().getFullYear();
|
|
8
|
+
if (currentYear > startYear){
|
|
9
|
+
text = text + `-${currentYear}`;
|
|
10
|
+
}
|
|
11
|
+
copyElement.innerText = text;
|
|
12
|
+
}
|
|
13
|
+
updateCopyYear();
|
|
14
|
+
</script>
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
<script type="text/javascript">
|
|
2
|
+
function generateTableOfContents() {
|
|
3
|
+
const tocContents = document.getElementById('toc-contents');
|
|
4
|
+
if (!tocContents) return;
|
|
5
|
+
|
|
6
|
+
const headings = document.querySelectorAll('h1, h2, h3, h4, h5, h6');
|
|
7
|
+
if (headings.length === 0) return;
|
|
8
|
+
|
|
9
|
+
const tocList = document.createElement('ul');
|
|
10
|
+
let currentLevel = 2;
|
|
11
|
+
let currentList = tocList;
|
|
12
|
+
|
|
13
|
+
// Create an array to store the last list for each level
|
|
14
|
+
const lastLists = [tocList];
|
|
15
|
+
|
|
16
|
+
for (let i = 0; i < headings.length; i++) {
|
|
17
|
+
const heading = headings[i];
|
|
18
|
+
const headingLevel = parseInt(heading.tagName.charAt(1));
|
|
19
|
+
|
|
20
|
+
// Ensure the level is within bounds
|
|
21
|
+
if (headingLevel < 2 || headingLevel > 6) continue;
|
|
22
|
+
|
|
23
|
+
// Adjust currentLevel and currentList based on the encountered heading level
|
|
24
|
+
while (currentLevel < headingLevel) {
|
|
25
|
+
const newList = document.createElement('ul');
|
|
26
|
+
currentList.appendChild(newList);
|
|
27
|
+
lastLists[currentLevel] = currentList;
|
|
28
|
+
currentList = newList;
|
|
29
|
+
currentLevel++;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
while (currentLevel > headingLevel) {
|
|
33
|
+
currentList = lastLists[currentLevel - 1];
|
|
34
|
+
currentLevel--;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const listItem = document.createElement('li');
|
|
38
|
+
const anchor = document.createElement('a');
|
|
39
|
+
anchor.textContent = heading.textContent;
|
|
40
|
+
anchor.href = `#${heading.id}`;
|
|
41
|
+
listItem.appendChild(anchor);
|
|
42
|
+
currentList.appendChild(listItem);
|
|
43
|
+
|
|
44
|
+
lastLists[currentLevel] = currentList;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
tocContents.appendChild(tocList);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
generateTableOfContents();
|
|
51
|
+
</script>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<script type="text/javascript">
|
|
2
|
+
$(function () {
|
|
3
|
+
$(document).keydown(function (e) {
|
|
4
|
+
if (e.target.nodeName.toUpperCase() !== 'BODY') return;
|
|
5
|
+
let url = false;
|
|
6
|
+
if (e.which === 37 || e.which === 74) { // Left arrow and J
|
|
7
|
+
{% if page.previous %}
|
|
8
|
+
url = '{{ site.url }}{{ page.previous.url }}';
|
|
9
|
+
{% else %}
|
|
10
|
+
url = '';
|
|
11
|
+
{% endif %}
|
|
12
|
+
} else if (e.which === 39 || e.which === 75) { // Right arrow and K
|
|
13
|
+
{% if page.next %}
|
|
14
|
+
url = '{{ site.url }}{{ page.next.url }}';
|
|
15
|
+
{% else %}
|
|
16
|
+
url = '';
|
|
17
|
+
{% endif %}
|
|
18
|
+
}
|
|
19
|
+
if (url) {
|
|
20
|
+
window.location = url;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
})
|
|
24
|
+
</script>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
function readingTime() {
|
|
3
|
+
if (!document.getElementById("article")){return;}
|
|
4
|
+
const text = document.getElementById("article")?.innerText;
|
|
5
|
+
const wpm = 200;
|
|
6
|
+
const words = text.trim().split(/\s+/).length;
|
|
7
|
+
const time = Math.ceil(words / wpm);
|
|
8
|
+
document.getElementById("reading-time").innerText = time <= 1 ? `${time} minute` : `${time} minutes`;
|
|
9
|
+
}
|
|
10
|
+
readingTime();
|
|
11
|
+
</script>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<script src="{{ "/assets/js/jquery-1.9.1.min.js" | prepend: site.url }}"></script>
|
|
2
|
+
<script src="{{ "/assets/js/totop.js" | prepend: site.url }}"></script>
|
|
3
|
+
|
|
4
|
+
{%- include footer/code-block-lang.html -%}
|
|
5
|
+
{%- include footer/reading-time.html -%}
|
|
6
|
+
{%- include footer/copyright.html -%}
|
|
7
|
+
{%- include footer/color_theme_toggler.html -%}
|
|
8
|
+
{%- include footer/page_pagination.html -%}
|
|
9
|
+
{%- include footer/create-toc.html -%}
|
|
10
|
+
{%- include footer/toggle-toc.html -%}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
function toggleTOC() {
|
|
3
|
+
const sidenav = document.getElementById("toc-sidebar");
|
|
4
|
+
const chevron = document.getElementById("chevron");
|
|
5
|
+
const btn = document.getElementById("tocOpenBtn");
|
|
6
|
+
let ariaValue = btn.getAttribute("aria-expanded");
|
|
7
|
+
|
|
8
|
+
sidenav.style.width = sidenav.style.width === "175px" ? "0" : "175px";
|
|
9
|
+
chevron.style.transform = chevron.style.transform === "rotate(-180deg)" ? "rotate(0deg)" : "rotate(-180deg)";
|
|
10
|
+
ariaValue === "true" ? btn.setAttribute("aria-expanded", "false") : btn.setAttribute("aria-expanded", "true");
|
|
11
|
+
}
|
|
12
|
+
</script>
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{%- assign locales = site.data.locales -%}
|
|
2
|
+
<footer class="container-flex bg-body">
|
|
3
|
+
<p>© <span id="copyYear"></span> {{site.author.name}}</p>
|
|
4
|
+
|
|
5
|
+
{%- if site.footer.include_sitemap == true or
|
|
6
|
+
site.footer.include_privacypolicy == true or
|
|
7
|
+
site.footer.include_cookiepolicy == true or site.footer.include_terms ==
|
|
8
|
+
true -%}
|
|
9
|
+
<p>
|
|
10
|
+
{%- if site.footer.include_sitemap == true -%}
|
|
11
|
+
<a
|
|
12
|
+
href="{{ '/sitemap.xml' | prepend: site.url }}"
|
|
13
|
+
target="_blank"
|
|
14
|
+
rel="noopener noreferrer"
|
|
15
|
+
>{{ locales[site.default_locale].Site_Map }}</a><span> | </span>
|
|
16
|
+
{%- endif -%} {%- if site.footer.include_privacypolicy == true -%}
|
|
17
|
+
<a href="{{ '/privacy-policy/' | prepend: site.url }}">{{ locales[site.default_locale].Privacy_Policy }}</a> {%
|
|
18
|
+
endif -%} {%- if site.footer.include_cookiepolicy == true -%}<span> | </span>
|
|
19
|
+
<a href="{{ '/cookie-policy/' | prepend: site.url }}">{{ locales[site.default_locale].Cookie_Policy }}</a> {%
|
|
20
|
+
endif -%} {%- if site.footer.include_terms == true -%}<span> | </span>
|
|
21
|
+
<a href="{{ '/terms-of-service/' | prepend: site.url }}"
|
|
22
|
+
>{{ locales[site.default_locale].Terms_of_Service }}</a
|
|
23
|
+
>
|
|
24
|
+
{%- endif -%}
|
|
25
|
+
</p>
|
|
26
|
+
{%- endif -%}
|
|
27
|
+
|
|
28
|
+
<p>
|
|
29
|
+
Powered by <a href="https://github.com/jekyll/jekyll">Jekyll</a> on
|
|
30
|
+
<a href="https://github.com/">Github</a><span> | </span>Theme from
|
|
31
|
+
<a
|
|
32
|
+
href="https://github.com/sundayj/DevSculptor"
|
|
33
|
+
target="_blank"
|
|
34
|
+
title="Check out the DevSculptor theme at GitHub"
|
|
35
|
+
aria-label="Check out the DevSculptor theme at GitHub"
|
|
36
|
+
>sundayj/DevSculptor</a
|
|
37
|
+
> <span>v{{ site.version }}</span>
|
|
38
|
+
</p>
|
|
39
|
+
|
|
40
|
+
<div
|
|
41
|
+
id="totop"
|
|
42
|
+
style="position: fixed; bottom: 150px; right: 50px; cursor: pointer"
|
|
43
|
+
>
|
|
44
|
+
<a title="Back To Top"
|
|
45
|
+
><img src="{{ '/assets/images/topbutton.png' | prepend: site.url }}"/></a
|
|
46
|
+
>
|
|
47
|
+
</div>
|
|
48
|
+
|
|
49
|
+
{%- include footer/scripts.html -%}
|
|
50
|
+
</footer>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<script type='text/javascript'>
|
|
2
|
+
const blocklink = ['http://humanorightswatch.org', 'http://o-o-6-o-o.com', 'http://darodar.com', 'http://blackhatworth.com', 'http://hulfingtonpost.com', 'http://bestwebsitesawards.com', 'http://darodar.com', 'http://buttons-for-website.com', 'http://ilovevitaly.co', 'http://semalt.com', 'http://priceg.com', 'http://simple-share-buttons.com', 'http://googlsucks.com', 'http://4webmasters.org', 'http://aliexpress.com', 'http://addons.mozilla.org/en-US/firefox/addon/ilovevitaly/', 'http://free-share-buttons.com', 'http://buttons-for-your-website.com', 'http://theguardlan.com', 'http://buy-cheap-online.info', 'http://best-seo-offer.com', 'http://4webmasters.org', 'http://trafficmonetize.org', 'http://howtostopreferralspam.eu', 'http://ilovevitaly.com', 'http://sanjosestartups.com', 'http://free-social-buttons.com', 'http://best-seo-offer.com', 'http://guardlink.org', 'http://www.event-tracking.com', 'http://www3.free-social-buttons.com', 'http://www1.free-social-buttons.com', 'http://www2.free-social-buttons.com', 'http://websites-reviews.com', 'http://floating-share-buttons.com', 'http://satellite.maps.ilovevitaly.com', 'http://free-social-buttons.com', 'http://www.event-tracking.com', 'http://erot.co'];
|
|
3
|
+
for (let b = blocklink.length; b--;) {
|
|
4
|
+
if (document.referrer.match(blocklink[b]))
|
|
5
|
+
window.location = "http://www.google.com";
|
|
6
|
+
}
|
|
7
|
+
</script>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<!-- Global site tag (gtag.js) - Google Analytics -->
|
|
2
|
+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics_key }}"></script>
|
|
3
|
+
<script>
|
|
4
|
+
window.dataLayer = window.dataLayer || [];
|
|
5
|
+
function gtag(){dataLayer.push(arguments);}
|
|
6
|
+
gtag('js', new Date());
|
|
7
|
+
|
|
8
|
+
gtag('config', '{{site.google_analytics_key}}');
|
|
9
|
+
</script>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<link rel="icon" href="{{ "/favicon.ico" | prepend:site.url }}">
|
|
2
|
+
<link rel="apple-touch-icon" sizes="180x180" href="{{ "/apple-touch-icon.png" | prepend: site.url }}">
|
|
3
|
+
<link rel="icon" type="image/png" sizes="32x32" href="{{ "/favicon-32x32.png" | prepend: site.url }}">
|
|
4
|
+
<link rel="icon" type="image/png" sizes="16x16" href="{{ "/favicon-16x16.png" | prepend: site.url }}">
|
|
5
|
+
<link rel="manifest" href="{{ "/site.webmanifest" | prepend: site.url }}">
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
|
|
2
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
|
|
3
|
+
<script src="https://kit.fontawesome.com/d11d7e2fdd.js" crossorigin="anonymous"></script>
|
|
4
|
+
|
|
5
|
+
{%- include head/google_analytics.html -%}
|
|
6
|
+
{%- include head/ban.html -%}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/night-owl.min.css" integrity="sha512-i5X6Fdn/ZqvGSqPrdMa3FgcpXM/Nr6YccSKFYT93zljl/HZDEpvBbE5Pxp91eiWGccZLrL/LDQJd7fjTRYsVaA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
|
2
|
+
<link rel="stylesheet" href="{{ "/assets/scss/main.css" | prepend: site.url }}">
|
data/_includes/head.html
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<head>
|
|
2
|
+
|
|
3
|
+
<meta charset="utf-8">
|
|
4
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<meta name="keywords" content="{{ site.keywords }}">
|
|
7
|
+
<meta name="twitter:description" content="{%- if page.summary -%}{{ page.summary | strip_html | strip_newlines | truncate: 160 }}{%- else -%}{{ site.description }}{%- endif -%}">
|
|
8
|
+
|
|
9
|
+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.url }}">
|
|
10
|
+
<link rel="alternate" type="application/atom+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.url }}">
|
|
11
|
+
|
|
12
|
+
{%- include head/icons.html -%}
|
|
13
|
+
|
|
14
|
+
{%- include head/stylesheets.html -%}
|
|
15
|
+
|
|
16
|
+
{%- include head/scripts.html -%}
|
|
17
|
+
|
|
18
|
+
{%- seo -%}
|
|
19
|
+
|
|
20
|
+
</head>
|