jekyll-theme-nyx 0.3.2 → 0.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5ab7195379e8817b601219399c2271e9765892e7516433d6f994ed79fe38baa7
4
- data.tar.gz: 825f6b09c84bbfa339a539191dc85ff886506fd69c50171379b0d3b8b29e9232
3
+ metadata.gz: '0867bb1d569a3922b3b82ef7853a4e22009945ccd2e349d9f066b9277c316872'
4
+ data.tar.gz: 7f44dcdb21d5b135b038c542caebdcf48899131590ddfeaaf2bd0d7217486869
5
5
  SHA512:
6
- metadata.gz: '097db29ccfb45115207657e35685e18120341b4038307971b1fff4e194b582e6c5875528cc27973f9d2a0d5e447ed31cc26dd4dca7093a0363d000ce6191c0ba'
7
- data.tar.gz: 6bf00bb8246da8a62ee601611a2f61725be58e03ff8fe1375a6e921b1ae3ae18718e6061c7335d2d0df397eb7f7aa7ee54f36e9a9fa59224b80c2e62612992b5
6
+ metadata.gz: 1a5253afa73969d4b2ec5391d952074505afcc161c04e7a6baf35c22ba92601496dc04a12d20ce2638abde5473f2c79a9dac0cd965cacf17d3cff871dbff218a
7
+ data.tar.gz: 54b82388da9dafe2f57f86dfa2a0608dc056f4a1d5ecc09c041db766700a38ef9686a41aac6c21f327ab7111692d007ab0afc04fef125410077a98cea2b769ed
checksums.yaml.gz.sig CHANGED
Binary file
data/.github/CHANGELOG.md CHANGED
@@ -68,4 +68,16 @@
68
68
  - Implemented [Add more demo posts](https://github.com/Slavetomints/jekyll-theme-nyx/issues/14)
69
69
 
70
70
  **MISC**
71
- - Cleaned up repo root by moving files to `.github`
71
+ - Cleaned up repo root by moving files to `.github`
72
+
73
+ #### [0.3.3] - 2026-01-16
74
+
75
+ **BUGS**
76
+ - Fixed a [fix mobile header padding bug](https://github.com/Slavetomints/jekyll-theme-nyx/pull/24)
77
+
78
+ **ENHANCEMENTS**
79
+ - Added a [Table of Contents](https://github.com/Slavetomints/jekyll-theme-nyx/pull/26)
80
+ - Added a [favicon](https://github.com/Slavetomints/jekyll-theme-nyx/pull/25)
81
+
82
+ ***MISC**
83
+ There is now a linked [GitHub Project](https://github.com/users/Slavetomints/projects/1) for this gem.
data/Gemfile CHANGED
@@ -4,3 +4,5 @@ source 'https://rubygems.org'
4
4
 
5
5
  # Specify your gem's dependencies in jekyll-theme-nyx.gemspec
6
6
  gemspec
7
+
8
+ gem "jekyll-toc", "~> 0.19.0"
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jekyll-theme-nyx (0.3.2)
4
+ jekyll-theme-nyx (0.3.3)
5
5
  jekyll (~> 4.0)
6
6
 
7
7
  GEM
@@ -18,12 +18,8 @@ GEM
18
18
  eventmachine (>= 0.12.9)
19
19
  http_parser.rb (~> 0)
20
20
  eventmachine (1.2.7)
21
- ffi (1.17.3)
22
21
  ffi (1.17.3-x86_64-linux-gnu)
23
22
  forwardable-extended (2.6.0)
24
- google-protobuf (4.33.2)
25
- bigdecimal
26
- rake (>= 13)
27
23
  google-protobuf (4.33.2-x86_64-linux-gnu)
28
24
  bigdecimal
29
25
  rake (>= 13)
@@ -51,6 +47,9 @@ GEM
51
47
  webrick (~> 1.7)
52
48
  jekyll-sass-converter (3.1.0)
53
49
  sass-embedded (~> 1.75)
50
+ jekyll-toc (0.19.0)
51
+ jekyll (>= 3.9)
52
+ nokogiri (~> 1.12)
54
53
  jekyll-watch (2.2.1)
55
54
  listen (~> 3.0)
56
55
  json (2.18.0)
@@ -63,9 +62,12 @@ GEM
63
62
  rb-fsevent (~> 0.10, >= 0.10.3)
64
63
  rb-inotify (~> 0.9, >= 0.9.10)
65
64
  mercenary (0.4.0)
65
+ nokogiri (1.19.0-x86_64-linux-gnu)
66
+ racc (~> 1.4)
66
67
  pathutil (0.16.2)
67
68
  forwardable-extended (~> 2.6)
68
69
  public_suffix (7.0.0)
70
+ racc (1.8.1)
69
71
  rake (13.3.0)
70
72
  rb-fsevent (0.11.2)
71
73
  rb-inotify (0.11.1)
@@ -73,9 +75,6 @@ GEM
73
75
  rexml (3.4.4)
74
76
  rouge (4.7.0)
75
77
  safe_yaml (1.0.5)
76
- sass-embedded (1.97.1)
77
- google-protobuf (~> 4.31)
78
- rake (>= 13)
79
78
  sass-embedded (1.97.1-x86_64-linux-gnu)
80
79
  google-protobuf (~> 4.31)
81
80
  terminal-table (3.0.2)
@@ -84,11 +83,11 @@ GEM
84
83
  webrick (1.9.2)
85
84
 
86
85
  PLATFORMS
87
- ruby
88
86
  x86_64-linux
89
87
 
90
88
  DEPENDENCIES
91
89
  jekyll-theme-nyx!
90
+ jekyll-toc (~> 0.19.0)
92
91
 
93
92
  BUNDLED WITH
94
93
  2.6.7
data/_config.yml CHANGED
@@ -25,10 +25,14 @@ collections:
25
25
  permalink: /:name/
26
26
  sort_by: order
27
27
 
28
+ plugins:
29
+ - jekyll-toc
30
+
28
31
  defaults:
29
32
  - scope:
30
33
  path: ""
31
34
  type: posts
32
35
  values:
33
36
  layout: post
34
- permalink: /posts/:title/
37
+ permalink: /posts/:title/
38
+ toc: true
@@ -0,0 +1,7 @@
1
+ <head>
2
+ <meta charset="UTF-8">
3
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
4
+ <link rel="stylesheet" href="{{ "/assets/css/nyx.css" | relative_url }}">
5
+ <link rel="icon" type="image/x-icon" href="/assets/img/favicons/favicon.png">
6
+ <title>{{ site.title }}</title>
7
+ </head>
@@ -1,12 +1,7 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="en">
3
3
 
4
- <head>
5
- <meta charset="UTF-8">
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
- <link rel="stylesheet" href="{{ "/assets/css/nyx.css" | relative_url }}">
8
- <title>{{ site.title }}</title>
9
- </head>
4
+ {% include head.html %}
10
5
 
11
6
  <body>
12
7
  {% include header.html %}
data/_layouts/post.md CHANGED
@@ -5,5 +5,13 @@ layout: default
5
5
  <h1>{{ page.title }}</h1>
6
6
  <p>{{ page.date | date: "%B %d, %Y" }} – Written by {{ page.author }}</p>
7
7
  </header>
8
- {{ content }}
9
8
 
9
+ <div id="post-container">
10
+ <article>
11
+ {{ content }}
12
+ </article>
13
+ <aside>
14
+ <h2>Table of Contents</h2>
15
+ {{ content | toc_only }}
16
+ </aside>
17
+ </div>
data/_sass/nyx/_base.scss CHANGED
@@ -41,6 +41,7 @@ header ul{
41
41
  flex-direction: row;
42
42
  justify-content: space-around;
43
43
  list-style-type: none;
44
+ padding: 0px;
44
45
  }
45
46
 
46
47
  img {
@@ -5,6 +5,22 @@ footer {
5
5
  padding: $space-2 $space-3;
6
6
  }
7
7
 
8
+ aside {
9
+ width: auto;
10
+ flex-shrink: 0;
11
+
12
+ position: sticky;
13
+ top: $space-4;
14
+
15
+ max-height: calc(100vh - $space-4 * 2);
16
+ overflow-y: auto;
17
+
18
+ @media (max-width: 600px) {
19
+ display: none;
20
+ }
21
+ }
22
+
23
+
8
24
  main {
9
25
  display: flex;
10
26
  flex-direction: column;
@@ -16,6 +32,17 @@ main {
16
32
  }
17
33
  }
18
34
 
35
+ /* POST CONTAINER */
36
+ #post-container {
37
+ display: flex;
38
+ gap: $space-4;
39
+ @media (max-width: 600px) {
40
+ display: block;;
41
+ }
42
+ }
43
+
44
+
45
+
19
46
  /* STYLING FOR /POSTS/ */
20
47
 
21
48
  .post-list {
@@ -124,3 +151,17 @@ main {
124
151
  padding: 0.15rem 0.5rem;
125
152
  border-radius: 999px;
126
153
  }
154
+
155
+
156
+ #toc li {
157
+ list-style: none;
158
+ }
159
+
160
+ #toc a {
161
+ color: $muted
162
+ }
163
+
164
+ #toc a:hover{
165
+ text-decoration: none;
166
+ color: $fg;
167
+ }
Binary file
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'jekyll-theme-nyx'
5
- spec.version = '0.3.2'
5
+ spec.version = '0.3.3'
6
6
  spec.authors = ['Slavetomints']
7
7
  spec.email = ['me@slavetomints.com']
8
8
 
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-nyx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Slavetomints
@@ -76,6 +76,7 @@ files:
76
76
  - README.md
77
77
  - Rakefile
78
78
  - _config.yml
79
+ - _includes/head.html
79
80
  - _includes/header.html
80
81
  - _layouts/category.html
81
82
  - _layouts/default.html
@@ -98,6 +99,7 @@ files:
98
99
  - _tabs/tags.md
99
100
  - assets/css/nyx.scss
100
101
  - assets/img/black-logo.svg
102
+ - assets/img/favicons/favicon.png
101
103
  - assets/img/white-logo.svg
102
104
  - certs/slavetomints.pem
103
105
  - index.md
metadata.gz.sig CHANGED
Binary file