jekyll-bhautiki 0.1.2 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -3
- data/_data/assets.yml +0 -4
- data/_data/messages.yml +2 -2
- data/_includes/footer.html +2 -2
- data/_includes/head.html +2 -0
- data/_includes/header.html +2 -2
- data/_sass/common/feather.sass +4 -0
- data/_sass/common/mode.sass +4 -1
- data/_sass/main.sass +3 -1
- data/assets/external/pygments/css/default.sass +198 -0
- data/assets/external/pygments/css/monokai.sass +168 -0
- data/assets/img/bhautiki-samay.gif +0 -0
- data/assets/js/main.js +1 -1
- data/assets/js/main.js.map +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03aa5f2a4c5323db6ff9de1d252f7f626c8977781e43177cf4a5e01ab67c796f
|
4
|
+
data.tar.gz: 7b6d9af9d5368a7b559dd53f9d1ed735164e53351f8c1259c354cfcacf4828d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b9e10193215095882e1023632c679c21d5c8336d9116b20e27f7b8a2fca5f4456d88aa538d44d735174c38c88d4426e36329dc7e4084a9c327ce266aa0c6e8c
|
7
|
+
data.tar.gz: 89f414713c7e226f9f14400ebc035f17cfc769f099b0fa3bc2626a0876646c5cf01f0e0275b3e655d2e6fdbfe2f207e31fadede0e3e33fdcb9f5cb6b6aee8bda
|
data/README.md
CHANGED
@@ -4,7 +4,7 @@ Physics inspired feature-rich Jekyll theme with math support.
|
|
4
4
|
|
5
5
|
[![Gem Version](https://badge.fury.io/rb/jekyll-bhautiki.svg)](https://badge.fury.io/rb/jekyll-bhautiki)
|
6
6
|
|
7
|
-
[![Demo](https://i.ibb.co/
|
7
|
+
[![Demo](https://i.ibb.co/yXb3dqZ/jekyll-bhautiki.png)](https://ibb.co/vHKtVkT)
|
8
8
|
|
9
9
|
> I will use this theme to eventually upgrade my personal blog. I looked at many themes that are already available, but I reckoned that most of them would require significant overhauls to fit my bill. Moreover, I feel that it would be fun maintaining my own theme for my own blog.
|
10
10
|
|
@@ -20,7 +20,7 @@ Standard jekyll structure.
|
|
20
20
|
- Components in [_includes](/_includes/).
|
21
21
|
- Images, Packages, Scripts in [assets](/assets/).
|
22
22
|
- Stylesheet in [_sass](/_sass/).
|
23
|
-
- Other scripts in [
|
23
|
+
- Other scripts in [_scripts](/_scripts/).
|
24
24
|
|
25
25
|
The scripts are bundled by `parcel`.
|
26
26
|
|
@@ -118,7 +118,12 @@ English (India/UK) is the default.
|
|
118
118
|
- [ ] Hindi
|
119
119
|
- [ ] Marathi
|
120
120
|
- [ ] Telugu
|
121
|
-
- [ ]
|
121
|
+
- [ ] Kannada
|
122
|
+
- [ ] . . .
|
123
|
+
|
124
|
+
- Foreign Language Support:
|
125
|
+
- [ ] French
|
126
|
+
- [ ] . . .
|
122
127
|
|
123
128
|
Syntax highlighting is performed by [rouge](https://github.com/rouge-ruby/rouge). Visit [Pygments](https://pygments.org/styles/) for available styles.
|
124
129
|
|
@@ -131,4 +136,6 @@ export pygments_dir=assets/external/pygments/css/
|
|
131
136
|
mkdir -p $pygments_dir
|
132
137
|
pygmentize -f html -S $style -a .highlight > $pygments_dir$style.css
|
133
138
|
|
139
|
+
# TODO: convert to sass.
|
140
|
+
|
134
141
|
```
|
data/_data/assets.yml
CHANGED
data/_data/messages.yml
CHANGED
@@ -10,9 +10,9 @@ toc:
|
|
10
10
|
|
11
11
|
overview:
|
12
12
|
text: >
|
13
|
-
Hi, I am a funky theme created out of boredom to enable child-like creaters,
|
13
|
+
Hi, I am a funky theme created out of vacation boredom to enable child-like creaters,
|
14
14
|
makers and engineering enthusiasts to share their thoughts on their favourite
|
15
15
|
subjects: whether it be Cosmology, Quantum Mechanics or Category Theory.
|
16
16
|
So, fork me and feel free to add your intellectual excursions to present it to everyone.
|
17
|
-
|
17
|
+
Perhaps you know something that few others know, and only time will tell
|
18
18
|
if your amazing discovery is indeed something that can rattle the scientific world.
|
data/_includes/footer.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<div class="grid-x grid-padding-x grid-padding-y align-center">
|
5
5
|
<div class="cell small-1 text-left">
|
6
6
|
<div data-sticky-container>
|
7
|
-
<div class="sticky" data-stick-to="bottom" data-sticky>
|
7
|
+
<div class="sticky" data-stick-to="bottom" data-sticky data-sticky-on="small">
|
8
8
|
<button id="mode" type="button">
|
9
9
|
<i data-feather="moon"></i>
|
10
10
|
</button>
|
@@ -39,7 +39,7 @@
|
|
39
39
|
<div class="cell small-1 text-right">
|
40
40
|
<a href="#top" data-smooth-scroll>
|
41
41
|
<div data-sticky-container>
|
42
|
-
<div class="sticky" data-stick-to="bottom" data-sticky>
|
42
|
+
<div class="sticky" data-stick-to="bottom" data-sticky data-sticky-on="small">
|
43
43
|
<button type="button" data-toggle="up">
|
44
44
|
<i data-feather="arrow-up-circle"></i>
|
45
45
|
</button>
|
data/_includes/head.html
CHANGED
data/_includes/header.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<div class="grid-x grid-padding-x grid-padding-y align-center">
|
5
5
|
<div class="cell small-1 text-left">
|
6
6
|
<div data-sticky-container>
|
7
|
-
<div class="sticky" data-sticky>
|
7
|
+
<div class="sticky" data-sticky data-sticky-on="small">
|
8
8
|
<button class="hide-for-large" type="button" data-toggle="nav">
|
9
9
|
<i data-feather="sidebar"></i>
|
10
10
|
</button>
|
@@ -22,7 +22,7 @@
|
|
22
22
|
|
23
23
|
<div class="cell small-1 text-right">
|
24
24
|
<div data-sticky-container>
|
25
|
-
<div class="sticky" data-sticky>
|
25
|
+
<div class="sticky" data-sticky data-sticky-on="small">
|
26
26
|
<button class="hide-for-large" type="button" data-toggle="side">
|
27
27
|
<i data-feather="menu"></i>
|
28
28
|
</button>
|
data/_sass/common/feather.sass
CHANGED
data/_sass/common/mode.sass
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
|
1
2
|
@mixin light-mode
|
2
3
|
--color: #06080F
|
3
4
|
--background: rgb(245, 245, 220) url('/assets/external/img/textured-paper.png')
|
@@ -11,7 +12,7 @@
|
|
11
12
|
|
12
13
|
--bar-link-color: #C04000
|
13
14
|
--quote-color: #00008B
|
14
|
-
|
15
|
+
|
15
16
|
|
16
17
|
@mixin dark-mode
|
17
18
|
--color: #fff
|
@@ -30,9 +31,11 @@
|
|
30
31
|
|
31
32
|
html, html[data-theme="light"]
|
32
33
|
@include light-mode
|
34
|
+
@import '../../assets/external/pygments/css/default'
|
33
35
|
|
34
36
|
html[data-theme="dark"]
|
35
37
|
@include dark-mode
|
38
|
+
@import '../../assets/external/pygments/css/monokai'
|
36
39
|
|
37
40
|
@media (prefers-color-scheme: dark)
|
38
41
|
html, html[data-theme="dark"]
|
data/_sass/main.sass
CHANGED
@@ -1,8 +1,10 @@
|
|
1
|
+
// Import all variables. Must be on top.
|
1
2
|
@import 'common/variables'
|
3
|
+
|
2
4
|
@import 'common/nav'
|
3
5
|
@import 'common/feather'
|
4
6
|
@import 'common/side'
|
5
7
|
@import 'common/syntax'
|
6
8
|
@import 'layouts/categories'
|
7
|
-
@import 'common/mode'
|
8
9
|
@import 'layouts/default'
|
10
|
+
@import 'common/mode'
|
@@ -0,0 +1,198 @@
|
|
1
|
+
pre
|
2
|
+
line-height: 125%
|
3
|
+
|
4
|
+
td.linenos .normal, span.linenos
|
5
|
+
color: inherit
|
6
|
+
background-color: transparent
|
7
|
+
padding-left: 5px
|
8
|
+
padding-right: 5px
|
9
|
+
|
10
|
+
td.linenos .special, span.linenos.special
|
11
|
+
color: #000000
|
12
|
+
background-color: #ffffc0
|
13
|
+
padding-left: 5px
|
14
|
+
padding-right: 5px
|
15
|
+
|
16
|
+
.highlight
|
17
|
+
.hll
|
18
|
+
background-color: #ffffcc
|
19
|
+
|
20
|
+
background: #f8f8f8
|
21
|
+
|
22
|
+
.c
|
23
|
+
color: #3D7B7B
|
24
|
+
font-style: italic
|
25
|
+
|
26
|
+
.err
|
27
|
+
border: 1px solid #FF0000
|
28
|
+
|
29
|
+
.k
|
30
|
+
color: #008000
|
31
|
+
font-weight: bold
|
32
|
+
|
33
|
+
.o
|
34
|
+
color: #666666
|
35
|
+
|
36
|
+
.ch, .cm
|
37
|
+
color: #3D7B7B
|
38
|
+
font-style: italic
|
39
|
+
|
40
|
+
.cp
|
41
|
+
color: #9C6500
|
42
|
+
|
43
|
+
.cpf, .c1, .cs
|
44
|
+
color: #3D7B7B
|
45
|
+
font-style: italic
|
46
|
+
|
47
|
+
.gd
|
48
|
+
color: #A00000
|
49
|
+
|
50
|
+
.ge
|
51
|
+
font-style: italic
|
52
|
+
|
53
|
+
.ges
|
54
|
+
font-weight: bold
|
55
|
+
font-style: italic
|
56
|
+
|
57
|
+
.gr
|
58
|
+
color: #E40000
|
59
|
+
|
60
|
+
.gh
|
61
|
+
color: #000080
|
62
|
+
font-weight: bold
|
63
|
+
|
64
|
+
.gi
|
65
|
+
color: #008400
|
66
|
+
|
67
|
+
.go
|
68
|
+
color: #717171
|
69
|
+
|
70
|
+
.gp
|
71
|
+
color: #000080
|
72
|
+
font-weight: bold
|
73
|
+
|
74
|
+
.gs
|
75
|
+
font-weight: bold
|
76
|
+
|
77
|
+
.gu
|
78
|
+
color: #800080
|
79
|
+
font-weight: bold
|
80
|
+
|
81
|
+
.gt
|
82
|
+
color: #0044DD
|
83
|
+
|
84
|
+
.kc, .kd, .kn
|
85
|
+
color: #008000
|
86
|
+
font-weight: bold
|
87
|
+
|
88
|
+
.kp
|
89
|
+
color: #008000
|
90
|
+
|
91
|
+
.kr
|
92
|
+
color: #008000
|
93
|
+
font-weight: bold
|
94
|
+
|
95
|
+
.kt
|
96
|
+
color: #B00040
|
97
|
+
|
98
|
+
.m
|
99
|
+
color: #666666
|
100
|
+
|
101
|
+
.s
|
102
|
+
color: #BA2121
|
103
|
+
|
104
|
+
.na
|
105
|
+
color: #687822
|
106
|
+
|
107
|
+
.nb
|
108
|
+
color: #008000
|
109
|
+
|
110
|
+
.nc
|
111
|
+
color: #0000FF
|
112
|
+
font-weight: bold
|
113
|
+
|
114
|
+
.no
|
115
|
+
color: #880000
|
116
|
+
|
117
|
+
.nd
|
118
|
+
color: #AA22FF
|
119
|
+
|
120
|
+
.ni
|
121
|
+
color: #717171
|
122
|
+
font-weight: bold
|
123
|
+
|
124
|
+
.ne
|
125
|
+
color: #CB3F38
|
126
|
+
font-weight: bold
|
127
|
+
|
128
|
+
.nf
|
129
|
+
color: #0000FF
|
130
|
+
|
131
|
+
.nl
|
132
|
+
color: #767600
|
133
|
+
|
134
|
+
.nn
|
135
|
+
color: #0000FF
|
136
|
+
font-weight: bold
|
137
|
+
|
138
|
+
.nt
|
139
|
+
color: #008000
|
140
|
+
font-weight: bold
|
141
|
+
|
142
|
+
.nv
|
143
|
+
color: #19177C
|
144
|
+
|
145
|
+
.ow
|
146
|
+
color: #AA22FF
|
147
|
+
font-weight: bold
|
148
|
+
|
149
|
+
.w
|
150
|
+
color: #bbbbbb
|
151
|
+
|
152
|
+
.mb, .mf, .mh, .mi, .mo
|
153
|
+
color: #666666
|
154
|
+
|
155
|
+
.sa, .sb, .sc, .dl
|
156
|
+
color: #BA2121
|
157
|
+
|
158
|
+
.sd
|
159
|
+
color: #BA2121
|
160
|
+
font-style: italic
|
161
|
+
|
162
|
+
.s2
|
163
|
+
color: #BA2121
|
164
|
+
|
165
|
+
.se
|
166
|
+
color: #AA5D1F
|
167
|
+
font-weight: bold
|
168
|
+
|
169
|
+
.sh
|
170
|
+
color: #BA2121
|
171
|
+
|
172
|
+
.si
|
173
|
+
color: #A45A77
|
174
|
+
font-weight: bold
|
175
|
+
|
176
|
+
.sx
|
177
|
+
color: #008000
|
178
|
+
|
179
|
+
.sr
|
180
|
+
color: #A45A77
|
181
|
+
|
182
|
+
.s1
|
183
|
+
color: #BA2121
|
184
|
+
|
185
|
+
.ss
|
186
|
+
color: #19177C
|
187
|
+
|
188
|
+
.bp
|
189
|
+
color: #008000
|
190
|
+
|
191
|
+
.fm
|
192
|
+
color: #0000FF
|
193
|
+
|
194
|
+
.vc, .vg, .vi, .vm
|
195
|
+
color: #19177C
|
196
|
+
|
197
|
+
.il
|
198
|
+
color: #666666
|
@@ -0,0 +1,168 @@
|
|
1
|
+
pre
|
2
|
+
line-height: 125%
|
3
|
+
|
4
|
+
td.linenos .normal, span.linenos
|
5
|
+
color: inherit
|
6
|
+
background-color: transparent
|
7
|
+
padding-left: 5px
|
8
|
+
padding-right: 5px
|
9
|
+
|
10
|
+
td.linenos .special, span.linenos.special
|
11
|
+
color: #000000
|
12
|
+
background-color: #ffffc0
|
13
|
+
padding-left: 5px
|
14
|
+
padding-right: 5px
|
15
|
+
|
16
|
+
.highlight
|
17
|
+
.hll
|
18
|
+
background-color: #49483e
|
19
|
+
|
20
|
+
background: #272822
|
21
|
+
color: #f8f8f2
|
22
|
+
|
23
|
+
.c
|
24
|
+
color: #959077
|
25
|
+
|
26
|
+
.err
|
27
|
+
color: #ed007e
|
28
|
+
background-color: #1e0010
|
29
|
+
|
30
|
+
.esc, .g
|
31
|
+
color: #f8f8f2
|
32
|
+
|
33
|
+
.k
|
34
|
+
color: #66d9ef
|
35
|
+
|
36
|
+
.l
|
37
|
+
color: #ae81ff
|
38
|
+
|
39
|
+
.n
|
40
|
+
color: #f8f8f2
|
41
|
+
|
42
|
+
.o
|
43
|
+
color: #ff4689
|
44
|
+
|
45
|
+
.x, .p
|
46
|
+
color: #f8f8f2
|
47
|
+
|
48
|
+
.ch, .cm, .cp, .cpf, .c1, .cs
|
49
|
+
color: #959077
|
50
|
+
|
51
|
+
.gd
|
52
|
+
color: #ff4689
|
53
|
+
|
54
|
+
.ge
|
55
|
+
color: #f8f8f2
|
56
|
+
font-style: italic
|
57
|
+
|
58
|
+
.ges
|
59
|
+
color: #f8f8f2
|
60
|
+
font-weight: bold
|
61
|
+
font-style: italic
|
62
|
+
|
63
|
+
.gr, .gh
|
64
|
+
color: #f8f8f2
|
65
|
+
|
66
|
+
.gi
|
67
|
+
color: #a6e22e
|
68
|
+
|
69
|
+
.go
|
70
|
+
color: #66d9ef
|
71
|
+
|
72
|
+
.gp
|
73
|
+
color: #ff4689
|
74
|
+
font-weight: bold
|
75
|
+
|
76
|
+
.gs
|
77
|
+
color: #f8f8f2
|
78
|
+
font-weight: bold
|
79
|
+
|
80
|
+
.gu
|
81
|
+
color: #959077
|
82
|
+
|
83
|
+
.gt
|
84
|
+
color: #f8f8f2
|
85
|
+
|
86
|
+
.kc, .kd
|
87
|
+
color: #66d9ef
|
88
|
+
|
89
|
+
.kn
|
90
|
+
color: #ff4689
|
91
|
+
|
92
|
+
.kp, .kr, .kt
|
93
|
+
color: #66d9ef
|
94
|
+
|
95
|
+
.ld
|
96
|
+
color: #e6db74
|
97
|
+
|
98
|
+
.m
|
99
|
+
color: #ae81ff
|
100
|
+
|
101
|
+
.s
|
102
|
+
color: #e6db74
|
103
|
+
|
104
|
+
.na
|
105
|
+
color: #a6e22e
|
106
|
+
|
107
|
+
.nb
|
108
|
+
color: #f8f8f2
|
109
|
+
|
110
|
+
.nc
|
111
|
+
color: #a6e22e
|
112
|
+
|
113
|
+
.no
|
114
|
+
color: #66d9ef
|
115
|
+
|
116
|
+
.nd
|
117
|
+
color: #a6e22e
|
118
|
+
|
119
|
+
.ni
|
120
|
+
color: #f8f8f2
|
121
|
+
|
122
|
+
.ne, .nf
|
123
|
+
color: #a6e22e
|
124
|
+
|
125
|
+
.nl, .nn
|
126
|
+
color: #f8f8f2
|
127
|
+
|
128
|
+
.nx
|
129
|
+
color: #a6e22e
|
130
|
+
|
131
|
+
.py
|
132
|
+
color: #f8f8f2
|
133
|
+
|
134
|
+
.nt
|
135
|
+
color: #ff4689
|
136
|
+
|
137
|
+
.nv
|
138
|
+
color: #f8f8f2
|
139
|
+
|
140
|
+
.ow
|
141
|
+
color: #ff4689
|
142
|
+
|
143
|
+
.pm, .w
|
144
|
+
color: #f8f8f2
|
145
|
+
|
146
|
+
.mb, .mf, .mh, .mi, .mo
|
147
|
+
color: #ae81ff
|
148
|
+
|
149
|
+
.sa, .sb, .sc, .dl, .sd, .s2
|
150
|
+
color: #e6db74
|
151
|
+
|
152
|
+
.se
|
153
|
+
color: #ae81ff
|
154
|
+
|
155
|
+
.sh, .si, .sx, .sr, .s1, .ss
|
156
|
+
color: #e6db74
|
157
|
+
|
158
|
+
.bp
|
159
|
+
color: #f8f8f2
|
160
|
+
|
161
|
+
.fm
|
162
|
+
color: #a6e22e
|
163
|
+
|
164
|
+
.vc, .vg, .vi, .vm
|
165
|
+
color: #f8f8f2
|
166
|
+
|
167
|
+
.il
|
168
|
+
color: #ae81ff
|
Binary file
|
data/assets/js/main.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
(()=>{let e,t;let o=()=>{feather.replace()},s="data-theme",a="dark",n="light",i="mode";function m(){document.documentElement.setAttribute(s,a),$("#mode").find("svg").replaceWith('<i data-feather="sun"></i>'),o()}function d(){document.documentElement.setAttribute(s,n),$("#mode").find("svg").replaceWith('<i data-feather="moon"></i>'),o()}
|
1
|
+
(()=>{let e,t;let o=()=>{feather.replace()},s="data-theme",a="dark",n="light",i="mode";function m(){document.documentElement.setAttribute(s,a),$("#mode").find("svg").replaceWith('<i data-feather="sun"></i>'),o()}function d(){document.documentElement.setAttribute(s,n),$("#mode").find("svg").replaceWith('<i data-feather="moon"></i>'),o()}$(document).foundation(),o(),e=window.matchMedia("(prefers-color-scheme: dark)"),(t=sessionStorage.getItem(i))==a?m():t==n?d():(e.matches?m():d(),sessionStorage.setItem(i,"")),$("#mode").on("click",()=>{$("#mode").find("svg").hasClass("feather-moon")?(m(),sessionStorage.setItem(i,a)):(d(),sessionStorage.setItem(i,n))})})();
|
2
2
|
//# sourceMappingURL=main.js.map
|
data/assets/js/main.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"mappings":"A,C,SIgCQ,EACA,EFjCD,IAAM,EAAQ,KACjB,QAAQ,OAAO,EACnB,EEEM,EAAY,aACZ,EAAO,OACP,EAAQ,QACR,EAAO,OAEb,SAAS,IACL,SAAS,eAAe,CAAC,YAAY,CAAC,EAAW,GACjD,EAAE,SAAS,IAAI,CAAC,OAAO,WAAW,CATnB,8BAUf,AAAA,GACJ,CAEA,SAAS,IACL,SAAS,eAAe,CAAC,YAAY,CAAC,EAAW,GACjD,EAAE,SAAS,IAAI,CAAC,OAAO,WAAW,CAdpB,+BAed,AAAA,GACJ,
|
1
|
+
{"mappings":"A,C,SIgCQ,EACA,EFjCD,IAAM,EAAQ,KACjB,QAAQ,OAAO,EACnB,EEEM,EAAY,aACZ,EAAO,OACP,EAAQ,QACR,EAAO,OAEb,SAAS,IACL,SAAS,eAAe,CAAC,YAAY,CAAC,EAAW,GACjD,EAAE,SAAS,IAAI,CAAC,OAAO,WAAW,CATnB,8BAUf,AAAA,GACJ,CAEA,SAAS,IACL,SAAS,eAAe,CAAC,YAAY,CAAC,EAAW,GACjD,EAAE,SAAS,IAAI,CAAC,OAAO,WAAW,CAdpB,+BAed,AAAA,GACJ,CDlBI,EAAE,UAAU,UAAU,GFI1B,AAAA,IG2BQ,EAAoB,OAAO,UAAU,CAAC,gCAGtC,CAFA,EAAO,eAAe,OAAO,CAAC,KAEtB,EACR,IACO,GAAQ,EACf,KAhBA,AAkBgB,EAlBE,OAAO,CACzB,IAEA,IAGJ,eAAe,OAAO,CAAC,EAAM,KAiB7B,EAAE,SAAS,EAAE,CAAC,QAAS,KACf,EAAE,SAAS,IAAI,CAAC,OAAO,QAAQ,CAAC,iBAChC,IACA,eAAe,OAAO,CAAC,EAAM,KAE7B,IACA,eAAe,OAAO,CAAC,EAAM,GAErC,E,C","sources":["<anon>","_scripts/main.js","_scripts/common/feather.js","_scripts/common/foundation.js","_scripts/common/theme.js"],"sourcesContent":["(() => {\nconst $0abaf8754d6d68dc$export$df03f54e09e486fa = ()=>{\n feather.replace();\n};\n\n\nconst $88ef8f78f6164e41$export$aa72436c99aff8fd = ()=>{\n $(document).foundation();\n};\n\n\n\nconst $77af9af8a83584ec$var$LIGHT_ICON = '<i data-feather=\"sun\"></i>';\nconst $77af9af8a83584ec$var$DARK_ICON = '<i data-feather=\"moon\"></i>';\nconst $77af9af8a83584ec$var$ATTRIBUTE = \"data-theme\";\nconst $77af9af8a83584ec$var$DARK = \"dark\";\nconst $77af9af8a83584ec$var$LIGHT = \"light\";\nconst $77af9af8a83584ec$var$MODE = \"mode\";\nfunction $77af9af8a83584ec$var$setDarkMode() {\n document.documentElement.setAttribute($77af9af8a83584ec$var$ATTRIBUTE, $77af9af8a83584ec$var$DARK);\n $(\"#mode\").find(\"svg\").replaceWith($77af9af8a83584ec$var$LIGHT_ICON);\n (0, $0abaf8754d6d68dc$export$df03f54e09e486fa)();\n}\nfunction $77af9af8a83584ec$var$setLightMode() {\n document.documentElement.setAttribute($77af9af8a83584ec$var$ATTRIBUTE, $77af9af8a83584ec$var$LIGHT);\n $(\"#mode\").find(\"svg\").replaceWith($77af9af8a83584ec$var$DARK_ICON);\n (0, $0abaf8754d6d68dc$export$df03f54e09e486fa)();\n}\nfunction $77af9af8a83584ec$var$setPreferedMode(systemPrefersDark) {\n if (systemPrefersDark.matches) $77af9af8a83584ec$var$setDarkMode();\n else $77af9af8a83584ec$var$setLightMode();\n sessionStorage.setItem($77af9af8a83584ec$var$MODE, \"\");\n}\nconst $77af9af8a83584ec$export$d4f039427a1beff1 = ()=>{\n let systemPrefersDark = window.matchMedia(\"(prefers-color-scheme: dark)\");\n let mode = sessionStorage.getItem($77af9af8a83584ec$var$MODE);\n if (mode == $77af9af8a83584ec$var$DARK) $77af9af8a83584ec$var$setDarkMode();\n else if (mode == $77af9af8a83584ec$var$LIGHT) $77af9af8a83584ec$var$setLightMode();\n else $77af9af8a83584ec$var$setPreferedMode(systemPrefersDark);\n};\nconst $77af9af8a83584ec$export$c43e41d2ed1b3347 = ()=>{\n $(\"#mode\").on(\"click\", ()=>{\n if ($(\"#mode\").find(\"svg\").hasClass(\"feather-moon\")) {\n $77af9af8a83584ec$var$setDarkMode();\n sessionStorage.setItem($77af9af8a83584ec$var$MODE, $77af9af8a83584ec$var$DARK);\n } else {\n $77af9af8a83584ec$var$setLightMode();\n sessionStorage.setItem($77af9af8a83584ec$var$MODE, $77af9af8a83584ec$var$LIGHT);\n }\n });\n};\nvar $77af9af8a83584ec$export$2e2bcd8739ae039 = {\n switchMode: $77af9af8a83584ec$export$c43e41d2ed1b3347,\n setMode: $77af9af8a83584ec$export$d4f039427a1beff1\n};\n\n\n(0, $88ef8f78f6164e41$export$aa72436c99aff8fd)();\n(0, $0abaf8754d6d68dc$export$df03f54e09e486fa)();\n(0, $77af9af8a83584ec$export$d4f039427a1beff1)();\n(0, $77af9af8a83584ec$export$c43e41d2ed1b3347)();\n\n})();\n//# sourceMappingURL=main.js.map\n","import { icons } from \"./common/feather\";\nimport { initializeBaseStyle } from \"./common/foundation\";\nimport { setMode, switchMode } from \"./common/theme\";\n\ninitializeBaseStyle();\nicons();\n\nsetMode();\nswitchMode();\n","export const icons = () => {\n feather.replace();\n}\n","export const initializeBaseStyle = () => {\n $(document).foundation();\n}\n","import { icons } from \"./feather\";\n\nconst LIGHT_ICON = \"<i data-feather=\\\"sun\\\"></i>\"\nconst DARK_ICON = \"<i data-feather=\\\"moon\\\"></i>\"\nconst ATTRIBUTE = \"data-theme\"\nconst DARK = \"dark\"\nconst LIGHT = \"light\"\nconst MODE = \"mode\"\n\nfunction setDarkMode() {\n document.documentElement.setAttribute(ATTRIBUTE, DARK);\n $(\"#mode\").find(\"svg\").replaceWith(LIGHT_ICON);\n icons();\n}\n\nfunction setLightMode() {\n document.documentElement.setAttribute(ATTRIBUTE, LIGHT);\n $(\"#mode\").find(\"svg\").replaceWith(DARK_ICON);\n icons();\n}\n\nfunction setPreferedMode(systemPrefersDark) {\n if (systemPrefersDark.matches) {\n setDarkMode();\n } else {\n setLightMode();\n }\n\n sessionStorage.setItem(MODE, '');\n}\n\nexport const setMode = () => {\n let systemPrefersDark = window.matchMedia(\"(prefers-color-scheme: dark)\");\n let mode = sessionStorage.getItem(MODE);\n \n if (mode == DARK) {\n setDarkMode();\n } else if (mode == LIGHT) {\n setLightMode();\n } else {\n setPreferedMode(systemPrefersDark);\n }\n}\n\nexport const switchMode = () => {\n $(\"#mode\").on(\"click\", () => {\n if ($(\"#mode\").find(\"svg\").hasClass(\"feather-moon\")) {\n setDarkMode();\n sessionStorage.setItem(MODE, DARK);\n } else {\n setLightMode();\n sessionStorage.setItem(MODE, LIGHT);\n }\n });\n}\n\nexport default {switchMode, setMode};\n"],"names":["systemPrefersDark","mode","$0abaf8754d6d68dc$export$df03f54e09e486fa","feather","replace","$77af9af8a83584ec$var$ATTRIBUTE","$77af9af8a83584ec$var$DARK","$77af9af8a83584ec$var$LIGHT","$77af9af8a83584ec$var$MODE","$77af9af8a83584ec$var$setDarkMode","document","documentElement","setAttribute","$","find","replaceWith","$77af9af8a83584ec$var$setLightMode","foundation","window","matchMedia","sessionStorage","getItem","matches","setItem","on","hasClass"],"version":3,"file":"main.js.map"}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-bhautiki
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pawan Mishra
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-02-
|
11
|
+
date: 2024-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -175,7 +175,9 @@ files:
|
|
175
175
|
- assets/external/mathjax/js/output/svg/fonts/tex.js
|
176
176
|
- assets/external/mathjax/js/tex-mml-chtml.js
|
177
177
|
- assets/external/pygments/css/default.css
|
178
|
+
- assets/external/pygments/css/default.sass
|
178
179
|
- assets/external/pygments/css/monokai.css
|
180
|
+
- assets/external/pygments/css/monokai.sass
|
179
181
|
- assets/external/tocbot/css/tocbot.css
|
180
182
|
- assets/external/tocbot/js/tocbot.min.js
|
181
183
|
- assets/img/bhautiki-samay.gif
|