jekyll-theme-peaceful-gates 1.2.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +21 -21
- data/README.md +48 -48
- data/_includes/footer.html +10 -8
- data/_includes/head.html +42 -42
- data/_includes/menu.html +47 -45
- data/_includes/page-header.html +7 -12
- data/_includes/social-bar.html +35 -35
- data/_includes/social-link.html +5 -5
- data/_layouts/centered.html +12 -12
- data/_layouts/default.html +13 -13
- data/_layouts/index.html +7 -16
- data/_layouts/page.html +11 -11
- data/_layouts/post-index.html +25 -25
- data/_layouts/post.html +20 -20
- data/_sass/fontawesome/_animated.scss +20 -20
- data/_sass/fontawesome/_bordered-pulled.scss +20 -20
- data/_sass/fontawesome/_core.scss +21 -21
- data/_sass/fontawesome/_fixed-width.scss +6 -6
- data/_sass/fontawesome/_icons.scss +1410 -1410
- data/_sass/fontawesome/_larger.scss +23 -23
- data/_sass/fontawesome/_list.scss +18 -18
- data/_sass/fontawesome/_mixins.scss +56 -56
- data/_sass/fontawesome/_rotated-flipped.scss +24 -24
- data/_sass/fontawesome/_screen-reader.scss +5 -5
- data/_sass/fontawesome/_shims.scss +2066 -2066
- data/_sass/fontawesome/_stacked.scss +31 -31
- data/_sass/fontawesome/_variables.scss +1427 -1427
- data/_sass/fontawesome/brands.scss +23 -23
- data/_sass/fontawesome/fontawesome.scss +16 -16
- data/_sass/fontawesome/regular.scss +23 -23
- data/_sass/fontawesome/solid.scss +24 -24
- data/_sass/fontawesome/v4-shims.scss +6 -6
- data/_sass/jekyll-theme-peaceful-gates.scss +16 -16
- data/_sass/jekyll-theme-peaceful-gates/_base.scss +74 -74
- data/_sass/jekyll-theme-peaceful-gates/_button.scss +67 -64
- data/_sass/jekyll-theme-peaceful-gates/_centered.scss +28 -28
- data/_sass/jekyll-theme-peaceful-gates/_code.scss +120 -120
- data/_sass/jekyll-theme-peaceful-gates/_footer.scss +61 -54
- data/_sass/jekyll-theme-peaceful-gates/_menu.scss +111 -106
- data/_sass/jekyll-theme-peaceful-gates/_page.scss +73 -69
- data/_sass/jekyll-theme-peaceful-gates/_theme.scss +35 -35
- data/_sass/jekyll-theme-peaceful-gates/_util.scss +49 -34
- data/_sass/jekyll-theme-peaceful-gates/_variables.scss +30 -29
- data/assets/css/main.scss +2 -2
- data/assets/fonts/fa-brands-400.svg +3570 -3570
- data/assets/fonts/fa-regular-400.svg +803 -803
- data/assets/fonts/fa-solid-900.svg +4700 -4700
- data/assets/js/darkmode-toggle.js +44 -44
- data/assets/js/dropdown-toggle.js +5 -0
- data/assets/js/table-layout.js +13 -13
- metadata +24 -10
- data/assets/js/menu-slide.js +0 -14
@@ -1,45 +1,45 @@
|
|
1
|
-
$(function() {
|
2
|
-
// Get body jQuery
|
3
|
-
let $body = $('body')
|
4
|
-
|
5
|
-
/**
|
6
|
-
* Enable darkmode
|
7
|
-
*/
|
8
|
-
function darkmodeEnable() {
|
9
|
-
$body.addClass('darkmode')
|
10
|
-
console.log('Darkmode enabled!')
|
11
|
-
}
|
12
|
-
|
13
|
-
/**
|
14
|
-
* Disable darkmode
|
15
|
-
*/
|
16
|
-
function darkmodeDisable() {
|
17
|
-
$body.removeClass('darkmode')
|
18
|
-
console.log('Darkmode disabled!')
|
19
|
-
}
|
20
|
-
|
21
|
-
// Get darkmode from localstorage
|
22
|
-
let darkmode = localStorage.getItem('darkmode') || 'off'
|
23
|
-
console.log('Darkmode:', darkmode)
|
24
|
-
|
25
|
-
// Set initial darkmode
|
26
|
-
if (darkmode === 'on') darkmodeEnable();
|
27
|
-
else darkmodeDisable();
|
28
|
-
|
29
|
-
// Darkmode toggle
|
30
|
-
$('#toggle-darkmode').click(function() {
|
31
|
-
console.group('Darkmode Toggle')
|
32
|
-
console.log('Current darkmode:', darkmode)
|
33
|
-
if (darkmode === 'on') {
|
34
|
-
darkmodeDisable();
|
35
|
-
darkmode = 'off';
|
36
|
-
}
|
37
|
-
else {
|
38
|
-
darkmodeEnable()
|
39
|
-
darkmode = 'on'
|
40
|
-
}
|
41
|
-
console.log('Next darkmode:', darkmode)
|
42
|
-
localStorage.setItem('darkmode', darkmode)
|
43
|
-
console.groupEnd()
|
44
|
-
})
|
1
|
+
$(function() {
|
2
|
+
// Get body jQuery
|
3
|
+
let $body = $('body')
|
4
|
+
|
5
|
+
/**
|
6
|
+
* Enable darkmode
|
7
|
+
*/
|
8
|
+
function darkmodeEnable() {
|
9
|
+
$body.addClass('darkmode')
|
10
|
+
console.log('Darkmode enabled!')
|
11
|
+
}
|
12
|
+
|
13
|
+
/**
|
14
|
+
* Disable darkmode
|
15
|
+
*/
|
16
|
+
function darkmodeDisable() {
|
17
|
+
$body.removeClass('darkmode')
|
18
|
+
console.log('Darkmode disabled!')
|
19
|
+
}
|
20
|
+
|
21
|
+
// Get darkmode from localstorage
|
22
|
+
let darkmode = localStorage.getItem('darkmode') || 'off'
|
23
|
+
console.log('Darkmode:', darkmode)
|
24
|
+
|
25
|
+
// Set initial darkmode
|
26
|
+
if (darkmode === 'on') darkmodeEnable();
|
27
|
+
else darkmodeDisable();
|
28
|
+
|
29
|
+
// Darkmode toggle
|
30
|
+
$('#toggle-darkmode').click(function() {
|
31
|
+
console.group('Darkmode Toggle')
|
32
|
+
console.log('Current darkmode:', darkmode)
|
33
|
+
if (darkmode === 'on') {
|
34
|
+
darkmodeDisable();
|
35
|
+
darkmode = 'off';
|
36
|
+
}
|
37
|
+
else {
|
38
|
+
darkmodeEnable()
|
39
|
+
darkmode = 'on'
|
40
|
+
}
|
41
|
+
console.log('Next darkmode:', darkmode)
|
42
|
+
localStorage.setItem('darkmode', darkmode)
|
43
|
+
console.groupEnd()
|
44
|
+
})
|
45
45
|
})
|
data/assets/js/table-layout.js
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
$(function() {
|
2
|
-
$('.horizontal-scroll > table').each(function() {
|
3
|
-
// Get cell width from longest line in table
|
4
|
-
let cellWidth = $(this)
|
5
|
-
.find('th,td')
|
6
|
-
.map(function() { return parseInt($(this).outerWidth()) })
|
7
|
-
.get()
|
8
|
-
.reduce((a, b) => Math.max(a, b))
|
9
|
-
console.log('Table Cell Width:', cellWidth)
|
10
|
-
|
11
|
-
// Set minimum width of table cell to width of longest element
|
12
|
-
$(this).find('th,td').css('min-width', cellWidth)
|
13
|
-
})
|
1
|
+
$(function() {
|
2
|
+
$('.horizontal-scroll > table').each(function() {
|
3
|
+
// Get cell width from longest line in table
|
4
|
+
let cellWidth = $(this)
|
5
|
+
.find('th,td')
|
6
|
+
.map(function() { return parseInt($(this).outerWidth()) })
|
7
|
+
.get()
|
8
|
+
.reduce((a, b) => Math.max(a, b))
|
9
|
+
console.log('Table Cell Width:', cellWidth)
|
10
|
+
|
11
|
+
// Set minimum width of table cell to width of longest element
|
12
|
+
$(this).find('th,td').css('min-width', cellWidth)
|
13
|
+
})
|
14
14
|
})
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-peaceful-gates
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- andydevs
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -16,14 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '4.
|
19
|
+
version: '4.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '4.
|
26
|
+
version: '4.2'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: webrick
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.7'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.7'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: bundler
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,7 +66,7 @@ dependencies:
|
|
52
66
|
- - "~>"
|
53
67
|
- !ruby/object:Gem::Version
|
54
68
|
version: '12.0'
|
55
|
-
description:
|
69
|
+
description:
|
56
70
|
email:
|
57
71
|
- akanshul97@gmail.com
|
58
72
|
executables: []
|
@@ -123,13 +137,13 @@ files:
|
|
123
137
|
- assets/images/showcase/portrait-photo.jpg
|
124
138
|
- assets/images/showcase/square-photo.jpg
|
125
139
|
- assets/js/darkmode-toggle.js
|
126
|
-
- assets/js/
|
140
|
+
- assets/js/dropdown-toggle.js
|
127
141
|
- assets/js/table-layout.js
|
128
142
|
homepage: https://github.com/andydevs/jekyll-theme-peaceful-gates
|
129
143
|
licenses:
|
130
144
|
- MIT
|
131
145
|
metadata: {}
|
132
|
-
post_install_message:
|
146
|
+
post_install_message:
|
133
147
|
rdoc_options: []
|
134
148
|
require_paths:
|
135
149
|
- lib
|
@@ -144,8 +158,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
158
|
- !ruby/object:Gem::Version
|
145
159
|
version: '0'
|
146
160
|
requirements: []
|
147
|
-
rubygems_version: 3.
|
148
|
-
signing_key:
|
161
|
+
rubygems_version: 3.2.3
|
162
|
+
signing_key:
|
149
163
|
specification_version: 4
|
150
164
|
summary: Theme for Andydevs blog
|
151
165
|
test_files: []
|
data/assets/js/menu-slide.js
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
$(function() {
|
2
|
-
$('#open-menu').click(function() {
|
3
|
-
$('#menu-window').show()
|
4
|
-
$('body').addClass('scroll-lock')
|
5
|
-
$('#menu').animate({ left: '0%' }, 400)
|
6
|
-
})
|
7
|
-
|
8
|
-
$('#close-menu').click(function() {
|
9
|
-
$('#menu').animate({ left: '-100%' }, 400, function() {
|
10
|
-
$('body').removeClass('scroll-lock')
|
11
|
-
$('#menu-window').hide()
|
12
|
-
})
|
13
|
-
})
|
14
|
-
})
|