another-theme 0.0.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/algolia.html +80 -0
- data/_includes/dark-mode.html +8 -6
- data/_includes/footer.html +29 -0
- data/_includes/head.html +5 -0
- data/_includes/icons.html +53 -0
- data/_includes/last-posts.html +5 -4
- data/_includes/menu.html +4 -3
- data/_includes/projects.html +5 -4
- data/_includes/social.html +11 -0
- data/_layouts/algolia-feed.html +41 -0
- data/_layouts/default.html +15 -4
- data/_layouts/page.html +12 -8
- data/_layouts/post.html +13 -8
- data/_sass/another.scss +4 -4
- data/_sass/another/_base.scss +9 -2
- data/_sass/another/_bootstrap-variables.scss +67 -0
- data/_sass/another/_buttons.scss +51 -0
- data/_sass/another/_feed.scss +156 -30
- data/_sass/another/_font-face.scss +0 -114
- data/_sass/another/_footer.scss +29 -0
- data/_sass/another/_functions.scss +105 -0
- data/_sass/another/_grid.scss +51 -0
- data/_sass/another/_header.scss +99 -0
- data/_sass/another/_type.scss +10 -4
- data/_sass/another/_utilities.scss +261 -14
- data/_sass/another/_variables.scss +10 -9
- data/_sass/another/bootstrap-grid.scss +29 -0
- data/_sass/another/mixins/_breakpoints.scss +126 -0
- data/_sass/another/mixins/_grid-framework.scss +58 -0
- data/_sass/another/mixins/_grid.scss +39 -0
- data/_sass/another/mixins/_utilities.scss +33 -0
- data/_sass/another/utilities/_api.scss +29 -0
- data/assets/img/cover_posts/2012-11-26-down-the-rabbit-hole.jpg +0 -0
- data/assets/img/cover_posts/2014-08-12-the-businessman-and-fisherman.jpg +0 -0
- data/assets/img/cover_posts/2016-11-19-gettysburg-address.jpg +0 -0
- data/assets/img/cover_posts/2018-03-08-i-have-a-dream.jpg +0 -0
- data/assets/img/cover_posts/2019-05-23-mardown-demo.jpg +0 -0
- data/assets/js/main.js +41 -0
- metadata +38 -41
- data/_layouts/home.html +0 -9
- data/_sass/another/_layout.scss +0 -66
- data/_sass/another/_menu.scss +0 -30
- data/_sass/another/_posts.scss +0 -60
- data/assets/font-files/IBM-Plex/IBMPlexMono-Bold.woff +0 -0
- data/assets/font-files/IBM-Plex/IBMPlexMono-Bold.woff2 +0 -0
- data/assets/font-files/IBM-Plex/IBMPlexMono-BoldItalic.woff +0 -0
- data/assets/font-files/IBM-Plex/IBMPlexMono-BoldItalic.woff2 +0 -0
- data/assets/font-files/IBM-Plex/IBMPlexMono-ExtraLight.woff +0 -0
- data/assets/font-files/IBM-Plex/IBMPlexMono-ExtraLight.woff2 +0 -0
- data/assets/font-files/IBM-Plex/IBMPlexMono-ExtraLightItalic.woff +0 -0
- data/assets/font-files/IBM-Plex/IBMPlexMono-ExtraLightItalic.woff2 +0 -0
- data/assets/font-files/IBM-Plex/IBMPlexMono-Italic.woff +0 -0
- data/assets/font-files/IBM-Plex/IBMPlexMono-Italic.woff2 +0 -0
- data/assets/font-files/IBM-Plex/IBMPlexMono-Light.woff +0 -0
- data/assets/font-files/IBM-Plex/IBMPlexMono-Light.woff2 +0 -0
- data/assets/font-files/IBM-Plex/IBMPlexMono-LightItalic.woff +0 -0
- data/assets/font-files/IBM-Plex/IBMPlexMono-LightItalic.woff2 +0 -0
- data/assets/font-files/IBM-Plex/IBMPlexMono-Medium.woff +0 -0
- data/assets/font-files/IBM-Plex/IBMPlexMono-Medium.woff2 +0 -0
- data/assets/font-files/IBM-Plex/IBMPlexMono-MediumItalic.woff +0 -0
- data/assets/font-files/IBM-Plex/IBMPlexMono-MediumItalic.woff2 +0 -0
- data/assets/font-files/IBM-Plex/IBMPlexMono-Regular.woff +0 -0
- data/assets/font-files/IBM-Plex/IBMPlexMono-Regular.woff2 +0 -0
- data/assets/font-files/IBM-Plex/IBMPlexMono-SemiBold.woff +0 -0
- data/assets/font-files/IBM-Plex/IBMPlexMono-SemiBold.woff2 +0 -0
- data/assets/font-files/IBM-Plex/IBMPlexMono-SemiBoldItalic.woff +0 -0
- data/assets/font-files/IBM-Plex/IBMPlexMono-SemiBoldItalic.woff2 +0 -0
- data/assets/font-files/IBM-Plex/IBMPlexMono-Text.woff +0 -0
- data/assets/font-files/IBM-Plex/IBMPlexMono-Text.woff2 +0 -0
- data/assets/font-files/IBM-Plex/IBMPlexMono-TextItalic.woff +0 -0
- data/assets/font-files/IBM-Plex/IBMPlexMono-TextItalic.woff2 +0 -0
- data/assets/font-files/IBM-Plex/IBMPlexMono-Thin.woff +0 -0
- data/assets/font-files/IBM-Plex/IBMPlexMono-Thin.woff2 +0 -0
- data/assets/font-files/IBM-Plex/IBMPlexMono-ThinItalic.woff +0 -0
- data/assets/font-files/IBM-Plex/IBMPlexMono-ThinItalic.woff2 +0 -0
- data/assets/font-files/IBM-Plex/license.txt +0 -92
- data/assets/img/icons/dark.svg +0 -1
- data/assets/img/icons/light.svg +0 -1
@@ -5,8 +5,8 @@
|
|
5
5
|
}
|
6
6
|
|
7
7
|
[data-theme="dark"] {
|
8
|
-
--primary-color: #
|
9
|
-
--rgb-primary:
|
8
|
+
--primary-color: #f9f9f9;
|
9
|
+
--rgb-primary: 249,249,249;
|
10
10
|
--bg-color: #171717;
|
11
11
|
}
|
12
12
|
|
@@ -18,8 +18,9 @@ $root-letter-spacing: -0.011em;
|
|
18
18
|
$root-line-height: 22px;
|
19
19
|
|
20
20
|
// Responsive
|
21
|
-
$large-breakpoint:
|
22
|
-
$medium-breakpoint:
|
21
|
+
$large-breakpoint: 1200px;
|
22
|
+
$medium-breakpoint: 992px;
|
23
|
+
$small-breakpoint: 768px;
|
23
24
|
$large-font-size: 18px;
|
24
25
|
$large-font-letter-spacing: -0.014em;
|
25
26
|
$large-font-line-height: 25px;
|
@@ -34,13 +35,13 @@ $headings-color: var(--primary-color);
|
|
34
35
|
|
35
36
|
$heading-xl: (
|
36
37
|
font-size: 40px,
|
37
|
-
font-weight:
|
38
|
+
font-weight: 600,
|
38
39
|
letter-spacing: -0.022em,
|
39
40
|
line-height: 56px,
|
40
41
|
);
|
41
42
|
$heading-lg: (
|
42
43
|
font-size: 24px,
|
43
|
-
font-weight:
|
44
|
+
font-weight: 600,
|
44
45
|
letter-spacing: -0.019em,
|
45
46
|
line-height: 34px,
|
46
47
|
);
|
@@ -64,9 +65,9 @@ $heading-xs: (
|
|
64
65
|
);
|
65
66
|
|
66
67
|
$body-lg: (
|
67
|
-
font-size: 18px,
|
68
|
+
font-size: 18px !important,
|
68
69
|
font-weight: 400,
|
69
|
-
letter-spacing: -0.014em,
|
70
|
+
letter-spacing: -0.014em !important,
|
70
71
|
line-height: 25px,
|
71
72
|
);
|
72
73
|
|
@@ -91,7 +92,7 @@ $body-xs: (
|
|
91
92
|
line-height: 18px,
|
92
93
|
);
|
93
94
|
|
94
|
-
$code-font-family: "
|
95
|
+
$code-font-family: "SFMono-Regular",Consolas,"Liberation Mono",Menlo,Courier,monospace;
|
95
96
|
$code-color: #bf616a;
|
96
97
|
|
97
98
|
|
@@ -0,0 +1,29 @@
|
|
1
|
+
/*!
|
2
|
+
* Bootstrap Grid v4.3.1 (https://getbootstrap.com/)
|
3
|
+
* Copyright 2011-2019 The Bootstrap Authors
|
4
|
+
* Copyright 2011-2019 Twitter, Inc.
|
5
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
6
|
+
*/
|
7
|
+
|
8
|
+
html {
|
9
|
+
box-sizing: border-box;
|
10
|
+
}
|
11
|
+
|
12
|
+
*,
|
13
|
+
*::before,
|
14
|
+
*::after {
|
15
|
+
box-sizing: inherit;
|
16
|
+
}
|
17
|
+
|
18
|
+
@import "functions";
|
19
|
+
@import "bootstrap-variables";
|
20
|
+
|
21
|
+
@import "mixins/breakpoints";
|
22
|
+
@import "mixins/grid-framework";
|
23
|
+
@import "mixins/grid";
|
24
|
+
@import "mixins/utilities";
|
25
|
+
|
26
|
+
@import "grid";
|
27
|
+
|
28
|
+
@import "utilities";
|
29
|
+
@import "utilities/api";
|
@@ -0,0 +1,126 @@
|
|
1
|
+
// Breakpoint viewport sizes and media queries.
|
2
|
+
//
|
3
|
+
// Breakpoints are defined as a map of (name: minimum width), order from small to large:
|
4
|
+
//
|
5
|
+
// (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px)
|
6
|
+
//
|
7
|
+
// The map defined in the `$grid-breakpoints` global variable is used as the `$breakpoints` argument by default.
|
8
|
+
|
9
|
+
// Name of the next breakpoint, or null for the last breakpoint.
|
10
|
+
//
|
11
|
+
// >> breakpoint-next(sm)
|
12
|
+
// md
|
13
|
+
// >> breakpoint-next(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
|
14
|
+
// md
|
15
|
+
// >> breakpoint-next(sm, $breakpoint-names: (xs sm md lg xl))
|
16
|
+
// md
|
17
|
+
@function breakpoint-next($name, $breakpoints: $grid-breakpoints, $breakpoint-names: map-keys($breakpoints)) {
|
18
|
+
$n: index($breakpoint-names, $name);
|
19
|
+
@if not $n {
|
20
|
+
@error "breakpoint `#{$name}` not found in `#{$breakpoints}`";
|
21
|
+
}
|
22
|
+
@return if($n < length($breakpoint-names), nth($breakpoint-names, $n + 1), null);
|
23
|
+
}
|
24
|
+
|
25
|
+
// Minimum breakpoint width. Null for the smallest (first) breakpoint.
|
26
|
+
//
|
27
|
+
// >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
|
28
|
+
// 576px
|
29
|
+
@function breakpoint-min($name, $breakpoints: $grid-breakpoints) {
|
30
|
+
$min: map-get($breakpoints, $name);
|
31
|
+
@return if($min != 0, $min, null);
|
32
|
+
}
|
33
|
+
|
34
|
+
// Maximum breakpoint width. Null for the largest (last) breakpoint.
|
35
|
+
// The maximum value is calculated as the minimum of the next one less 0.02px
|
36
|
+
// to work around the limitations of `min-` and `max-` prefixes and viewports with fractional widths.
|
37
|
+
// See https://www.w3.org/TR/mediaqueries-4/#mq-min-max
|
38
|
+
// Uses 0.02px rather than 0.01px to work around a current rounding bug in Safari.
|
39
|
+
// See https://bugs.webkit.org/show_bug.cgi?id=178261
|
40
|
+
//
|
41
|
+
// >> breakpoint-max(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
|
42
|
+
// 767.98px
|
43
|
+
@function breakpoint-max($name, $breakpoints: $grid-breakpoints) {
|
44
|
+
$next: breakpoint-next($name, $breakpoints);
|
45
|
+
@return if($next, breakpoint-min($next, $breakpoints) - .02, null);
|
46
|
+
}
|
47
|
+
|
48
|
+
// Returns a blank string if smallest breakpoint, otherwise returns the name with a dash in front.
|
49
|
+
// Useful for making responsive utilities.
|
50
|
+
//
|
51
|
+
// >> breakpoint-infix(xs, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
|
52
|
+
// "" (Returns a blank string)
|
53
|
+
// >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
|
54
|
+
// "-sm"
|
55
|
+
@function breakpoint-infix($name, $breakpoints: $grid-breakpoints) {
|
56
|
+
@return if(breakpoint-min($name, $breakpoints) == null, "", "-#{$name}");
|
57
|
+
}
|
58
|
+
|
59
|
+
// Media of at least the minimum breakpoint width. No query for the smallest breakpoint.
|
60
|
+
// Makes the @content apply to the given breakpoint and wider.
|
61
|
+
@mixin media-breakpoint-up($name, $breakpoints: $grid-breakpoints) {
|
62
|
+
$min: breakpoint-min($name, $breakpoints);
|
63
|
+
@if $min {
|
64
|
+
@media (min-width: $min) {
|
65
|
+
@content;
|
66
|
+
}
|
67
|
+
} @else {
|
68
|
+
@content;
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
72
|
+
// Media of at most the maximum breakpoint width. No query for the largest breakpoint.
|
73
|
+
// Makes the @content apply to the given breakpoint and narrower.
|
74
|
+
@mixin media-breakpoint-down($name, $breakpoints: $grid-breakpoints) {
|
75
|
+
$max: breakpoint-max($name, $breakpoints);
|
76
|
+
@if $max {
|
77
|
+
@media (max-width: $max) {
|
78
|
+
@content;
|
79
|
+
}
|
80
|
+
} @else {
|
81
|
+
@content;
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
// Media that spans multiple breakpoint widths.
|
86
|
+
// Makes the @content apply between the min and max breakpoints
|
87
|
+
@mixin media-breakpoint-between($lower, $upper, $breakpoints: $grid-breakpoints) {
|
88
|
+
$min: breakpoint-min($lower, $breakpoints);
|
89
|
+
$max: breakpoint-max($upper, $breakpoints);
|
90
|
+
|
91
|
+
@if $min != null and $max != null {
|
92
|
+
@media (min-width: $min) and (max-width: $max) {
|
93
|
+
@content;
|
94
|
+
}
|
95
|
+
} @else if $max == null {
|
96
|
+
@include media-breakpoint-up($lower, $breakpoints) {
|
97
|
+
@content;
|
98
|
+
}
|
99
|
+
} @else if $min == null {
|
100
|
+
@include media-breakpoint-down($upper, $breakpoints) {
|
101
|
+
@content;
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
|
106
|
+
// Media between the breakpoint's minimum and maximum widths.
|
107
|
+
// No minimum for the smallest breakpoint, and no maximum for the largest one.
|
108
|
+
// Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.
|
109
|
+
@mixin media-breakpoint-only($name, $breakpoints: $grid-breakpoints) {
|
110
|
+
$min: breakpoint-min($name, $breakpoints);
|
111
|
+
$max: breakpoint-max($name, $breakpoints);
|
112
|
+
|
113
|
+
@if $min != null and $max != null {
|
114
|
+
@media (min-width: $min) and (max-width: $max) {
|
115
|
+
@content;
|
116
|
+
}
|
117
|
+
} @else if $max == null {
|
118
|
+
@include media-breakpoint-up($name, $breakpoints) {
|
119
|
+
@content;
|
120
|
+
}
|
121
|
+
} @else if $min == null {
|
122
|
+
@include media-breakpoint-down($name, $breakpoints) {
|
123
|
+
@content;
|
124
|
+
}
|
125
|
+
}
|
126
|
+
}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
// Framework grid generation
|
2
|
+
//
|
3
|
+
// Used only by Bootstrap to generate the correct number of grid classes given
|
4
|
+
// any value of `$grid-columns`.
|
5
|
+
|
6
|
+
@mixin make-grid-columns($columns: $grid-columns, $gutter: $grid-gutter-width, $breakpoints: $grid-breakpoints) {
|
7
|
+
// Common properties for all breakpoints
|
8
|
+
%grid-column {
|
9
|
+
position: relative;
|
10
|
+
width: 100%;
|
11
|
+
padding-right: $gutter / 2;
|
12
|
+
padding-left: $gutter / 2;
|
13
|
+
}
|
14
|
+
|
15
|
+
@each $breakpoint in map-keys($breakpoints) {
|
16
|
+
$infix: breakpoint-infix($breakpoint, $breakpoints);
|
17
|
+
|
18
|
+
// Allow columns to stretch full width below their breakpoints
|
19
|
+
@for $i from 1 through $columns {
|
20
|
+
.col#{$infix}-#{$i} {
|
21
|
+
@extend %grid-column;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
.col#{$infix},
|
25
|
+
.col#{$infix}-auto {
|
26
|
+
@extend %grid-column;
|
27
|
+
}
|
28
|
+
|
29
|
+
@include media-breakpoint-up($breakpoint, $breakpoints) {
|
30
|
+
// Provide basic `.col-{bp}` classes for equal-width flexbox columns
|
31
|
+
.col#{$infix} {
|
32
|
+
flex-basis: 0;
|
33
|
+
flex-grow: 1;
|
34
|
+
max-width: 100%;
|
35
|
+
}
|
36
|
+
.col#{$infix}-auto {
|
37
|
+
flex: 0 0 auto;
|
38
|
+
width: auto;
|
39
|
+
max-width: 100%; // Reset earlier grid tiers
|
40
|
+
}
|
41
|
+
|
42
|
+
@for $i from 1 through $columns {
|
43
|
+
.col#{$infix}-#{$i} {
|
44
|
+
@include make-col($i, $columns);
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
// `$columns - 1` because offsetting by the width of an entire row isn't possible
|
49
|
+
@for $i from 0 through ($columns - 1) {
|
50
|
+
@if not ($infix == "" and $i == 0) { // Avoid emitting useless .offset-0
|
51
|
+
.offset#{$infix}-#{$i} {
|
52
|
+
@include make-col-offset($i, $columns);
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
/// Grid system
|
2
|
+
//
|
3
|
+
// Generate semantic grid columns with these mixins.
|
4
|
+
|
5
|
+
@mixin make-container() {
|
6
|
+
width: 93.3333333333%;
|
7
|
+
margin-right: auto;
|
8
|
+
margin-left: auto;
|
9
|
+
}
|
10
|
+
|
11
|
+
@mixin make-row($gutter: $grid-gutter-width) {
|
12
|
+
display: flex;
|
13
|
+
flex-wrap: wrap;
|
14
|
+
margin-right: -$gutter / 2;
|
15
|
+
margin-left: -$gutter / 2;
|
16
|
+
}
|
17
|
+
|
18
|
+
@mixin make-col-ready($gutter: $grid-gutter-width) {
|
19
|
+
position: relative;
|
20
|
+
// Prevent columns from becoming too narrow when at smaller grid tiers by
|
21
|
+
// always setting `width: 100%;`. This works because we use `flex` values
|
22
|
+
// later on to override this initial width.
|
23
|
+
width: 100%;
|
24
|
+
padding-right: $gutter / 2;
|
25
|
+
padding-left: $gutter / 2;
|
26
|
+
}
|
27
|
+
|
28
|
+
@mixin make-col($size, $columns: $grid-columns) {
|
29
|
+
flex: 0 0 percentage($size / $columns);
|
30
|
+
// Add a `max-width` to ensure content within each column does not blow out
|
31
|
+
// the width of the column. Applies to IE10+ and Firefox. Chrome and Safari
|
32
|
+
// do not appear to require this.
|
33
|
+
max-width: percentage($size / $columns);
|
34
|
+
}
|
35
|
+
|
36
|
+
@mixin make-col-offset($size, $columns: $grid-columns) {
|
37
|
+
$num: $size / $columns;
|
38
|
+
margin-left: if($num == 0, 0, percentage($num));
|
39
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
// Utility generator
|
2
|
+
// Used to generate utilities & print utilities
|
3
|
+
@mixin generate-utility($utility, $infix) {
|
4
|
+
$values: map-get($utility, values);
|
5
|
+
|
6
|
+
// If the values are a list or string, convert it into a map
|
7
|
+
@if type-of($values) == "string" or type-of(nth($values, 1)) != "list" {
|
8
|
+
$values: zip($values, $values);
|
9
|
+
}
|
10
|
+
|
11
|
+
@each $key, $value in $values {
|
12
|
+
$properties: map-get($utility, property);
|
13
|
+
|
14
|
+
// Multiple properties are possible, for example with vertical or horizontal margins or paddings
|
15
|
+
@if type-of($properties) == "string" {
|
16
|
+
$properties: append((), $properties);
|
17
|
+
}
|
18
|
+
|
19
|
+
// Use custom class if present
|
20
|
+
$property-class: map-get($utility, class);
|
21
|
+
$property-class: if($property-class, $property-class, nth($properties, 1));
|
22
|
+
|
23
|
+
// Don't prefix if value key is null (eg. with shadow class)
|
24
|
+
$property-class-modifier: if($key, "-" + $key, "");
|
25
|
+
|
26
|
+
.#{$property-class + $infix + $property-class-modifier} {
|
27
|
+
@each $property in $properties {
|
28
|
+
// stylelint-disable-next-line declaration-no-important
|
29
|
+
#{$property}: $value !important;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
// Loop over each breakpoint
|
2
|
+
@each $breakpoint in map-keys($grid-breakpoints) {
|
3
|
+
|
4
|
+
// Generate media query if needed
|
5
|
+
@include media-breakpoint-up($breakpoint) {
|
6
|
+
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
7
|
+
|
8
|
+
// Loop over each utility property
|
9
|
+
@each $key, $utility in $utilities {
|
10
|
+
// The utility can be disabled with `false`, thus check if the utility is a map first
|
11
|
+
// Only proceed if responsive media queries are enabled or if it's the base media query
|
12
|
+
@if type-of($utility) == "map" and (map-get($utility, responsive) or $infix == "") {
|
13
|
+
@include generate-utility($utility, $infix);
|
14
|
+
}
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
|
20
|
+
// Print utilities
|
21
|
+
@media print {
|
22
|
+
@each $key, $utility in $utilities {
|
23
|
+
// The utility can be disabled with `false`, thus check if the utility is a map first
|
24
|
+
// Then check if the utility needs print styles
|
25
|
+
@if type-of($utility) == "map" and map-get($utility, print) == true {
|
26
|
+
@include generate-utility($utility, "-print");
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/assets/js/main.js
CHANGED
@@ -11,3 +11,44 @@ const theme = localStorage.getItem("theme") || "light";
|
|
11
11
|
setTheme(theme);
|
12
12
|
initTheme("light", "dark");
|
13
13
|
initTheme("dark", "light");
|
14
|
+
|
15
|
+
// Exelent little functions to use any time when class modification is needed
|
16
|
+
function hasClass(ele, cls) {
|
17
|
+
return !!ele.className.match(new RegExp('(\\s|^)' + cls + '(\\s|$)'));
|
18
|
+
}
|
19
|
+
|
20
|
+
function addClass(ele, cls) {
|
21
|
+
if (!hasClass(ele, cls)) ele.className += "" + cls;
|
22
|
+
}
|
23
|
+
|
24
|
+
function removeClass(ele, cls) {
|
25
|
+
if (hasClass(ele, cls)) {
|
26
|
+
var reg = new RegExp('(\\s|^)' + cls + '(\\s|$)');
|
27
|
+
ele.className = ele.className.replace(reg, '');
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
// Add event from js the keep the markup clean
|
32
|
+
function init() {
|
33
|
+
let elementsArray = document.querySelectorAll(".menu-toggle");
|
34
|
+
elementsArray.forEach(function(element) {
|
35
|
+
element.addEventListener("click", toggleMenu);
|
36
|
+
});
|
37
|
+
}
|
38
|
+
|
39
|
+
// The actual function
|
40
|
+
function toggleMenu() {
|
41
|
+
var ele = document.getElementsByTagName('body')[0];
|
42
|
+
if (!hasClass(ele, "open")) {
|
43
|
+
addClass(ele, "open");
|
44
|
+
} else {
|
45
|
+
removeClass(ele, "open");
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
// Prevent the function to run before the document is loaded
|
50
|
+
document.addEventListener('readystatechange', function() {
|
51
|
+
if (document.readyState === "complete") {
|
52
|
+
init();
|
53
|
+
}
|
54
|
+
});
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: another-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Milton Olaf P
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -80,6 +80,20 @@ dependencies:
|
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: jekyll-algolia
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: bundler
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -117,65 +131,45 @@ extra_rdoc_files: []
|
|
117
131
|
files:
|
118
132
|
- LICENSE.md
|
119
133
|
- README.md
|
134
|
+
- _includes/algolia.html
|
120
135
|
- _includes/analytics.html
|
121
136
|
- _includes/dark-mode.html
|
137
|
+
- _includes/footer.html
|
122
138
|
- _includes/head.html
|
139
|
+
- _includes/icons.html
|
123
140
|
- _includes/last-posts.html
|
124
141
|
- _includes/menu.html
|
125
142
|
- _includes/projects.html
|
143
|
+
- _includes/social.html
|
144
|
+
- _layouts/algolia-feed.html
|
126
145
|
- _layouts/compress.html
|
127
146
|
- _layouts/default.html
|
128
|
-
- _layouts/home.html
|
129
147
|
- _layouts/page.html
|
130
148
|
- _layouts/post.html
|
131
149
|
- _sass/another.scss
|
132
150
|
- _sass/another/_base.scss
|
151
|
+
- _sass/another/_bootstrap-variables.scss
|
152
|
+
- _sass/another/_buttons.scss
|
133
153
|
- _sass/another/_code.scss
|
134
154
|
- _sass/another/_feed.scss
|
135
155
|
- _sass/another/_font-face.scss
|
136
|
-
- _sass/another/
|
137
|
-
- _sass/another/
|
156
|
+
- _sass/another/_footer.scss
|
157
|
+
- _sass/another/_functions.scss
|
158
|
+
- _sass/another/_grid.scss
|
159
|
+
- _sass/another/_header.scss
|
138
160
|
- _sass/another/_pagination.scss
|
139
|
-
- _sass/another/_posts.scss
|
140
161
|
- _sass/another/_search.scss
|
141
162
|
- _sass/another/_syntax.scss
|
142
163
|
- _sass/another/_type.scss
|
143
164
|
- _sass/another/_utilities.scss
|
144
165
|
- _sass/another/_variables.scss
|
166
|
+
- _sass/another/bootstrap-grid.scss
|
167
|
+
- _sass/another/mixins/_breakpoints.scss
|
168
|
+
- _sass/another/mixins/_grid-framework.scss
|
169
|
+
- _sass/another/mixins/_grid.scss
|
170
|
+
- _sass/another/mixins/_utilities.scss
|
171
|
+
- _sass/another/utilities/_api.scss
|
145
172
|
- assets/css/main.scss
|
146
|
-
- assets/font-files/IBM-Plex/IBMPlexMono-Bold.woff
|
147
|
-
- assets/font-files/IBM-Plex/IBMPlexMono-Bold.woff2
|
148
|
-
- assets/font-files/IBM-Plex/IBMPlexMono-BoldItalic.woff
|
149
|
-
- assets/font-files/IBM-Plex/IBMPlexMono-BoldItalic.woff2
|
150
|
-
- assets/font-files/IBM-Plex/IBMPlexMono-ExtraLight.woff
|
151
|
-
- assets/font-files/IBM-Plex/IBMPlexMono-ExtraLight.woff2
|
152
|
-
- assets/font-files/IBM-Plex/IBMPlexMono-ExtraLightItalic.woff
|
153
|
-
- assets/font-files/IBM-Plex/IBMPlexMono-ExtraLightItalic.woff2
|
154
|
-
- assets/font-files/IBM-Plex/IBMPlexMono-Italic.woff
|
155
|
-
- assets/font-files/IBM-Plex/IBMPlexMono-Italic.woff2
|
156
|
-
- assets/font-files/IBM-Plex/IBMPlexMono-Light.woff
|
157
|
-
- assets/font-files/IBM-Plex/IBMPlexMono-Light.woff2
|
158
|
-
- assets/font-files/IBM-Plex/IBMPlexMono-LightItalic.woff
|
159
|
-
- assets/font-files/IBM-Plex/IBMPlexMono-LightItalic.woff2
|
160
|
-
- assets/font-files/IBM-Plex/IBMPlexMono-Medium.woff
|
161
|
-
- assets/font-files/IBM-Plex/IBMPlexMono-Medium.woff2
|
162
|
-
- assets/font-files/IBM-Plex/IBMPlexMono-MediumItalic.woff
|
163
|
-
- assets/font-files/IBM-Plex/IBMPlexMono-MediumItalic.woff2
|
164
|
-
- assets/font-files/IBM-Plex/IBMPlexMono-Regular.woff
|
165
|
-
- assets/font-files/IBM-Plex/IBMPlexMono-Regular.woff2
|
166
|
-
- assets/font-files/IBM-Plex/IBMPlexMono-SemiBold.woff
|
167
|
-
- assets/font-files/IBM-Plex/IBMPlexMono-SemiBold.woff2
|
168
|
-
- assets/font-files/IBM-Plex/IBMPlexMono-SemiBoldItalic.woff
|
169
|
-
- assets/font-files/IBM-Plex/IBMPlexMono-SemiBoldItalic.woff2
|
170
|
-
- assets/font-files/IBM-Plex/IBMPlexMono-Text.woff
|
171
|
-
- assets/font-files/IBM-Plex/IBMPlexMono-Text.woff2
|
172
|
-
- assets/font-files/IBM-Plex/IBMPlexMono-TextItalic.woff
|
173
|
-
- assets/font-files/IBM-Plex/IBMPlexMono-TextItalic.woff2
|
174
|
-
- assets/font-files/IBM-Plex/IBMPlexMono-Thin.woff
|
175
|
-
- assets/font-files/IBM-Plex/IBMPlexMono-Thin.woff2
|
176
|
-
- assets/font-files/IBM-Plex/IBMPlexMono-ThinItalic.woff
|
177
|
-
- assets/font-files/IBM-Plex/IBMPlexMono-ThinItalic.woff2
|
178
|
-
- assets/font-files/IBM-Plex/license.txt
|
179
173
|
- assets/font-files/Inter/Inter-Black.woff
|
180
174
|
- assets/font-files/Inter/Inter-Black.woff2
|
181
175
|
- assets/font-files/Inter/Inter-BlackItalic.woff
|
@@ -216,8 +210,11 @@ files:
|
|
216
210
|
- assets/font-files/Inter/Inter-upright.var.woff2
|
217
211
|
- assets/font-files/Inter/Inter.var.woff2
|
218
212
|
- assets/font-files/Inter/inter.css
|
219
|
-
- assets/img/
|
220
|
-
- assets/img/
|
213
|
+
- assets/img/cover_posts/2012-11-26-down-the-rabbit-hole.jpg
|
214
|
+
- assets/img/cover_posts/2014-08-12-the-businessman-and-fisherman.jpg
|
215
|
+
- assets/img/cover_posts/2016-11-19-gettysburg-address.jpg
|
216
|
+
- assets/img/cover_posts/2018-03-08-i-have-a-dream.jpg
|
217
|
+
- assets/img/cover_posts/2019-05-23-mardown-demo.jpg
|
221
218
|
- assets/js/main.js
|
222
219
|
homepage: https://miltonolaf.com/another
|
223
220
|
licenses:
|