jekyll-theme-nyx 0.3.1 → 0.3.2
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/{CHANGELOG.md → .github/CHANGELOG.md} +12 -1
- data/Gemfile.lock +1 -1
- data/_config.yml +8 -0
- data/_posts/{2026-01-02-markdown-showcase.md → 2026-01-02-showcase-post.md} +4 -5
- data/_posts/2026-01-07-syntax-highlighting.md +479 -0
- data/_posts/2026-01-08-how-to-use-markdown.md +188 -0
- data/_posts/2026-01-08-how-to-use-nyx.md +36 -0
- data/_sass/nyx/_code.scss +4 -0
- data/_sass/nyx/_layout.scss +1 -0
- data/_tabs/about.md +4 -1
- data/jekyll-theme-nyx.gemspec +2 -2
- data.tar.gz.sig +0 -0
- metadata +9 -6
- metadata.gz.sig +0 -0
- /data/{CODE_OF_CONDUCT.md → .github/CODE_OF_CONDUCT.md} +0 -0
- /data/{SECURITY.md → .github/SECURITY.md} +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5ab7195379e8817b601219399c2271e9765892e7516433d6f994ed79fe38baa7
|
|
4
|
+
data.tar.gz: 825f6b09c84bbfa339a539191dc85ff886506fd69c50171379b0d3b8b29e9232
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '097db29ccfb45115207657e35685e18120341b4038307971b1fff4e194b582e6c5875528cc27973f9d2a0d5e447ed31cc26dd4dca7093a0363d000ce6191c0ba'
|
|
7
|
+
data.tar.gz: 6bf00bb8246da8a62ee601611a2f61725be58e03ff8fe1375a6e921b1ae3ae18718e6061c7335d2d0df397eb7f7aa7ee54f36e9a9fa59224b80c2e62612992b5
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
|
@@ -57,4 +57,15 @@
|
|
|
57
57
|
- Create plugin to generate subpages for tags and categories
|
|
58
58
|
- added styling for tag and category tabs
|
|
59
59
|
- Added Contribution guide
|
|
60
|
-
- Added Security policy
|
|
60
|
+
- Added Security policy
|
|
61
|
+
|
|
62
|
+
#### [0.3.2] - 2026-01-09
|
|
63
|
+
|
|
64
|
+
**BUGS**
|
|
65
|
+
- Fixed [Issue with selecting post in the posts tab](https://github.com/Slavetomints/jekyll-theme-nyx/issues/13)
|
|
66
|
+
|
|
67
|
+
**ENHANCEMENTS**
|
|
68
|
+
- Implemented [Add more demo posts](https://github.com/Slavetomints/jekyll-theme-nyx/issues/14)
|
|
69
|
+
|
|
70
|
+
**MISC**
|
|
71
|
+
- Cleaned up repo root by moving files to `.github`
|
data/Gemfile.lock
CHANGED
data/_config.yml
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
---
|
|
2
|
-
title:
|
|
3
|
-
layout: post
|
|
2
|
+
title: Post Showcase
|
|
4
3
|
author: Slavetomints
|
|
5
4
|
date: 2026-01-02
|
|
6
|
-
categories: [
|
|
7
|
-
tags: [
|
|
8
|
-
description: Showcase of the how
|
|
5
|
+
categories: [Demos]
|
|
6
|
+
tags: [demo, markdown]
|
|
7
|
+
description: Showcase of the how posts look on this site
|
|
9
8
|
---
|
|
10
9
|
|
|
11
10
|
## Headers
|
|
@@ -0,0 +1,479 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Syntax Highlighting
|
|
3
|
+
author: Slavetomints
|
|
4
|
+
date: 2026-01-07
|
|
5
|
+
categories: [Demos]
|
|
6
|
+
tags: [demo, syntax highlighting]
|
|
7
|
+
description: Showcase of how different coding languages look
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
*All code examples were sourced from Wikipedia where available, some were sourced from alternative sites*
|
|
11
|
+
|
|
12
|
+
## Python
|
|
13
|
+
|
|
14
|
+
```py
|
|
15
|
+
text = input('Type a number, and its factorial will be printed: ')
|
|
16
|
+
n = int(text)
|
|
17
|
+
|
|
18
|
+
if n < 0:
|
|
19
|
+
raise ValueError('You must enter a non-negative integer')
|
|
20
|
+
|
|
21
|
+
factorial = 1
|
|
22
|
+
for i in range(2, n + 1):
|
|
23
|
+
factorial *= i
|
|
24
|
+
|
|
25
|
+
print(factorial)
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## JavaScript
|
|
29
|
+
|
|
30
|
+
```js
|
|
31
|
+
function Person(name) {
|
|
32
|
+
this.name = name;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function Student(name, id) {
|
|
36
|
+
Person.call(this, name);
|
|
37
|
+
this.id = id;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
var bob = new Student("Robert", 12345);
|
|
41
|
+
console.log(bob.name); // Robert
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## TypeScript
|
|
45
|
+
|
|
46
|
+
```ts
|
|
47
|
+
function greet(name: string, age?: number): string {
|
|
48
|
+
if (age) {
|
|
49
|
+
return `Hello, ${name}! You are ${age} years old.`;
|
|
50
|
+
} else {
|
|
51
|
+
return `Hello, ${name}!`;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
console.log("Optional Parameters:");
|
|
55
|
+
console.log(greet("Alice"));
|
|
56
|
+
console.log(greet("Bob", 30));
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Java
|
|
60
|
+
|
|
61
|
+
```java
|
|
62
|
+
public class HelloWorld {
|
|
63
|
+
public static void main(String[] args) {
|
|
64
|
+
System.out.println("Hello World!");
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## C
|
|
70
|
+
|
|
71
|
+
```c
|
|
72
|
+
#include <stdio.h>
|
|
73
|
+
|
|
74
|
+
int main(void)
|
|
75
|
+
{
|
|
76
|
+
printf("hello, world\n");
|
|
77
|
+
}
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## C++
|
|
81
|
+
|
|
82
|
+
```c++
|
|
83
|
+
#include <iostream>
|
|
84
|
+
|
|
85
|
+
int main() {
|
|
86
|
+
std::cout << "Hello, world!\n";
|
|
87
|
+
}
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## C#
|
|
91
|
+
|
|
92
|
+
```c#
|
|
93
|
+
using System;
|
|
94
|
+
using System.Collections.Generic;
|
|
95
|
+
using System.Linq;
|
|
96
|
+
using System.Text;
|
|
97
|
+
|
|
98
|
+
namespace check1
|
|
99
|
+
{
|
|
100
|
+
class Program
|
|
101
|
+
{
|
|
102
|
+
static void Main(string[] args)
|
|
103
|
+
{
|
|
104
|
+
int i;
|
|
105
|
+
Console.Write("Enter a Number : ");
|
|
106
|
+
i = int.Parse(Console.ReadLine());
|
|
107
|
+
if (i % 2 == 0)
|
|
108
|
+
{
|
|
109
|
+
Console.Write("Entered Number is an Even Number");
|
|
110
|
+
Console.Read();
|
|
111
|
+
}
|
|
112
|
+
else
|
|
113
|
+
{
|
|
114
|
+
Console.Write("Entered Number is an Odd Number");
|
|
115
|
+
Console.Read();
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
## Go
|
|
123
|
+
|
|
124
|
+
```go
|
|
125
|
+
package main
|
|
126
|
+
|
|
127
|
+
import "fmt"
|
|
128
|
+
|
|
129
|
+
func main() {
|
|
130
|
+
fmt.Println("hello world")
|
|
131
|
+
}
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
## Rust
|
|
135
|
+
|
|
136
|
+
```rust
|
|
137
|
+
fn main() {
|
|
138
|
+
let x = 10;
|
|
139
|
+
if x > 5 {
|
|
140
|
+
println!("value is greater than five");
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
if x % 7 == 0 {
|
|
144
|
+
println!("value is divisible by 7");
|
|
145
|
+
} else if x % 5 == 0 {
|
|
146
|
+
println!("value is divisible by 5");
|
|
147
|
+
} else {
|
|
148
|
+
println!("value is not divisible by 7 or 5");
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
## PHP
|
|
154
|
+
|
|
155
|
+
```php
|
|
156
|
+
function myAge(int $birthYear): string
|
|
157
|
+
{
|
|
158
|
+
// calculate the age by subtracting the birth year from the current year.
|
|
159
|
+
$yearsOld = date('Y') - $birthYear;
|
|
160
|
+
|
|
161
|
+
// return the age in a descriptive string.
|
|
162
|
+
return $yearsOld . ($yearsOld == 1 ? ' year' : ' years');
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
echo 'I am currently ' . myAge(1995) . ' old.';
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
## Ruby
|
|
169
|
+
|
|
170
|
+
```ruby
|
|
171
|
+
class Person
|
|
172
|
+
attr_reader :name, :age
|
|
173
|
+
def initialize(name, age)
|
|
174
|
+
@name, @age = name, age
|
|
175
|
+
end
|
|
176
|
+
def <=>(person) # the comparison operator for sorting
|
|
177
|
+
@age <=> person.age
|
|
178
|
+
end
|
|
179
|
+
def to_s
|
|
180
|
+
"#{@name} (#{@age})"
|
|
181
|
+
end
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
group = [
|
|
185
|
+
Person.new("Bob", 33),
|
|
186
|
+
Person.new("Chris", 16),
|
|
187
|
+
Person.new("Ash", 23)
|
|
188
|
+
]
|
|
189
|
+
|
|
190
|
+
puts group.sort.reverse
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
## Swift
|
|
194
|
+
|
|
195
|
+
```swift
|
|
196
|
+
func divideByTwo(_ aNum: Int) -> Int {
|
|
197
|
+
return aNum / 2
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
func multiplyByTwo(_ aNum: Int) -> Int {
|
|
201
|
+
return aNum * 2
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
let mathOperation = multiplyByTwo
|
|
205
|
+
|
|
206
|
+
print(mathOperation(21)) // Prints "42"
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
## Kotlin
|
|
210
|
+
|
|
211
|
+
```kotlin
|
|
212
|
+
class User(val id: Int, val name: String, val address: String)
|
|
213
|
+
|
|
214
|
+
fun saveUserToDb(user: User) {
|
|
215
|
+
fun validate(user: User, value: String, fieldName: String) {
|
|
216
|
+
require(value.isNotEmpty()) { "Can't save user ${user.id}: empty $fieldName" }
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
validate(user, user.name, "Name")
|
|
220
|
+
validate(user, user.address, "Address")
|
|
221
|
+
// Save user to the database
|
|
222
|
+
...
|
|
223
|
+
}
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
## R
|
|
227
|
+
|
|
228
|
+
```r
|
|
229
|
+
# Create x and y values
|
|
230
|
+
x <- 1:6
|
|
231
|
+
y <- x^2
|
|
232
|
+
|
|
233
|
+
# Linear regression model: y = A + B * x
|
|
234
|
+
model <- lm(y ~ x)
|
|
235
|
+
|
|
236
|
+
# Display an in-depth summary of the model
|
|
237
|
+
summary(model)
|
|
238
|
+
|
|
239
|
+
# Create a 2-by-2 layout for figures
|
|
240
|
+
par(mfrow = c(2, 2))
|
|
241
|
+
|
|
242
|
+
# Output diagnostic plots of the model
|
|
243
|
+
plot(model)
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
## MATLAB
|
|
247
|
+
|
|
248
|
+
```matlab
|
|
249
|
+
b = [3 8 9 4 7 5];
|
|
250
|
+
sum1 = 0;
|
|
251
|
+
for k = 1:4
|
|
252
|
+
sum1 = sum1 + b(k);
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
sum1
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
## Dart
|
|
259
|
+
|
|
260
|
+
```dart
|
|
261
|
+
void main() {
|
|
262
|
+
int i = 20;
|
|
263
|
+
print('fibonacci($i) = ${fibonacci(i)}');
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/// Computes the nth Fibonacci number.
|
|
267
|
+
int fibonacci(int n) {
|
|
268
|
+
return n < 2 ? n : (fibonacci(n - 1) + fibonacci(n - 2));
|
|
269
|
+
}
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
## Scala
|
|
273
|
+
|
|
274
|
+
```scala
|
|
275
|
+
import math.*
|
|
276
|
+
def mathFunction(num: Int) =
|
|
277
|
+
val numSquare = num*num
|
|
278
|
+
(cbrt(numSquare) + log(numSquare)).toInt
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
## Shell / Bash
|
|
282
|
+
|
|
283
|
+
```sh
|
|
284
|
+
#!/bin/bash
|
|
285
|
+
|
|
286
|
+
nmcli connection modify "Wired connection 1" ipv4.dns "1.1.1.1"
|
|
287
|
+
nmcli connection down "Wired connection 1"
|
|
288
|
+
nmcli connection up "Wired connection 1"
|
|
289
|
+
ping archlinux.org -c 1
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
## PowerShell
|
|
293
|
+
|
|
294
|
+
```powershell
|
|
295
|
+
Get-CimInstance -ClassName Win32_LogicalDisk -Filter "DriveType=3" |
|
|
296
|
+
Measure-Object -Property FreeSpace,Size -Sum |
|
|
297
|
+
Select-Object -Property Property,Sum
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
## Objective-C
|
|
301
|
+
|
|
302
|
+
```objective-c
|
|
303
|
+
@interface ClassName : SuperclassName {
|
|
304
|
+
// instance variables
|
|
305
|
+
}
|
|
306
|
+
+ classMethod1;
|
|
307
|
+
+ (return_type)classMethod2;
|
|
308
|
+
+ (return_type)classMethod3:(param1_type)param1_varName;
|
|
309
|
+
|
|
310
|
+
- (return_type)instanceMethod1With1Parameter:(param1_type)param1_varName;
|
|
311
|
+
- (return_type)instanceMethod2With2Parameters:(param1_type)param1_varName
|
|
312
|
+
param2_callName:(param2_type)param2_varName;
|
|
313
|
+
@end
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
## Assembly
|
|
317
|
+
|
|
318
|
+
*The rouge syntax highlighter officially supports ARM Assembly and some other variants. For a full list, check [here](https://github.com/rouge-ruby/rouge/tree/master/lib/rouge/lexers)*
|
|
319
|
+
|
|
320
|
+
```txt
|
|
321
|
+
section .text ; start of the code segment
|
|
322
|
+
global _start ; declare _start to be visible in the generated object file
|
|
323
|
+
|
|
324
|
+
_start:
|
|
325
|
+
mov edx,len ; length of string, third argument to write()
|
|
326
|
+
mov ecx,msg ; address of string, second argument to write()
|
|
327
|
+
mov ebx,1 ; file descriptor (standard output), first argument to write()
|
|
328
|
+
mov eax,4 ; system call number for write()
|
|
329
|
+
int 0x80 ; system call trap
|
|
330
|
+
|
|
331
|
+
mov ebx,0 ; exit code, first argument to exit()
|
|
332
|
+
mov eax,1 ; system call number for exit()
|
|
333
|
+
int 0x80 ; system call trap
|
|
334
|
+
|
|
335
|
+
section .data ; start of data segment
|
|
336
|
+
msg db 'Hello, world!', 0xa ; string to be printed
|
|
337
|
+
len equ $ - msg ; length of that string as a constant calculated at assembly time
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
## Apache Groovy
|
|
341
|
+
|
|
342
|
+
```groovy
|
|
343
|
+
class AGroovyBean {
|
|
344
|
+
String color
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
def myGroovyBean = new AGroovyBean()
|
|
348
|
+
|
|
349
|
+
myGroovyBean.setColor('baby blue')
|
|
350
|
+
assert myGroovyBean.getColor() == 'baby blue'
|
|
351
|
+
|
|
352
|
+
myGroovyBean.color = 'pewter'
|
|
353
|
+
assert myGroovyBean.color == 'pewter'
|
|
354
|
+
```
|
|
355
|
+
|
|
356
|
+
## Perl
|
|
357
|
+
|
|
358
|
+
```perl
|
|
359
|
+
#!/usr/bin/env perl
|
|
360
|
+
use strict;
|
|
361
|
+
use warnings;
|
|
362
|
+
|
|
363
|
+
my ( $remaining, $total );
|
|
364
|
+
|
|
365
|
+
$remaining=$total=shift(@ARGV);
|
|
366
|
+
|
|
367
|
+
STDOUT->autoflush(1);
|
|
368
|
+
|
|
369
|
+
while ( $remaining ) {
|
|
370
|
+
printf ( "Remaining %s/%s \r", $remaining--, $total );
|
|
371
|
+
sleep 1;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
print "\n";
|
|
375
|
+
```
|
|
376
|
+
|
|
377
|
+
## Haskell
|
|
378
|
+
|
|
379
|
+
```haskell
|
|
380
|
+
factorial :: (Integral a) => a -> a
|
|
381
|
+
|
|
382
|
+
-- Using recursion (with the "ifthenelse" expression)
|
|
383
|
+
factorial n = if n < 2
|
|
384
|
+
then 1
|
|
385
|
+
else n * factorial (n - 1)
|
|
386
|
+
|
|
387
|
+
-- Using recursion (with pattern matching)
|
|
388
|
+
factorial 0 = 1
|
|
389
|
+
factorial n = n * factorial (n - 1)
|
|
390
|
+
|
|
391
|
+
-- Using recursion (with guards)
|
|
392
|
+
factorial n
|
|
393
|
+
| n < 2 = 1
|
|
394
|
+
| otherwise = n * factorial (n - 1)
|
|
395
|
+
|
|
396
|
+
-- Using a list and the "product" function
|
|
397
|
+
factorial n = product [1..n]
|
|
398
|
+
|
|
399
|
+
-- Using fold (implements "product")
|
|
400
|
+
factorial n = foldl (*) 1 [1..n]
|
|
401
|
+
|
|
402
|
+
-- Point-free style
|
|
403
|
+
factorial = foldr (*) 1 . enumFromTo 1
|
|
404
|
+
```
|
|
405
|
+
|
|
406
|
+
## Lua
|
|
407
|
+
|
|
408
|
+
```lua
|
|
409
|
+
do
|
|
410
|
+
local oldprint = print
|
|
411
|
+
-- Store current print function as oldprint
|
|
412
|
+
function print(s)
|
|
413
|
+
--[[ Redefine print function. The usual print function can still be used
|
|
414
|
+
through oldprint. The new one has only one argument.]]
|
|
415
|
+
oldprint(s == "foo" and "bar" or s)
|
|
416
|
+
end
|
|
417
|
+
end
|
|
418
|
+
|
|
419
|
+
```
|
|
420
|
+
|
|
421
|
+
## Elixir
|
|
422
|
+
|
|
423
|
+
```elixir
|
|
424
|
+
schema "weather" do
|
|
425
|
+
field :city # Defaults to type :string
|
|
426
|
+
field :temp_lo, :integer
|
|
427
|
+
field :temp_hi, :integer
|
|
428
|
+
field :prcp, :float, default: 0.0
|
|
429
|
+
end
|
|
430
|
+
|
|
431
|
+
Weather |> where(city: "Kraków") |> order_by(:temp_lo) |> limit(10) |> Repo.all
|
|
432
|
+
```
|
|
433
|
+
|
|
434
|
+
## Julia
|
|
435
|
+
|
|
436
|
+
```julia
|
|
437
|
+
function greet(name::AbstractString)
|
|
438
|
+
println("Hello, $name!")
|
|
439
|
+
end
|
|
440
|
+
|
|
441
|
+
greet("Alice")
|
|
442
|
+
```
|
|
443
|
+
|
|
444
|
+
## Visual Basic .NET
|
|
445
|
+
|
|
446
|
+
```vb
|
|
447
|
+
Sub Greet(name As String)
|
|
448
|
+
Console.WriteLine($"Hello, {name}")
|
|
449
|
+
End Sub
|
|
450
|
+
|
|
451
|
+
Greet("Bob")
|
|
452
|
+
```
|
|
453
|
+
|
|
454
|
+
## Cisco IOS
|
|
455
|
+
|
|
456
|
+
```cisco_ios
|
|
457
|
+
int G0/1
|
|
458
|
+
ip addr 192.168.1.1 255.255.255.0
|
|
459
|
+
no shutdown
|
|
460
|
+
exit
|
|
461
|
+
```
|
|
462
|
+
|
|
463
|
+
## COBOL
|
|
464
|
+
|
|
465
|
+
```cobol
|
|
466
|
+
ADD 1 TO x
|
|
467
|
+
ADD 1, a, b TO x ROUNDED, y, z ROUNDED
|
|
468
|
+
|
|
469
|
+
ADD a, b TO c
|
|
470
|
+
ON SIZE ERROR
|
|
471
|
+
DISPLAY "Error"
|
|
472
|
+
END-ADD
|
|
473
|
+
|
|
474
|
+
ADD a TO b
|
|
475
|
+
NOT SIZE ERROR
|
|
476
|
+
DISPLAY "No error"
|
|
477
|
+
ON SIZE ERROR
|
|
478
|
+
DISPLAY "Error"
|
|
479
|
+
```
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: How to Use Markdown
|
|
3
|
+
author: Slavetomints
|
|
4
|
+
date: 2026-01-08
|
|
5
|
+
categories: [Guides]
|
|
6
|
+
tags: [guide, markdown]
|
|
7
|
+
description: How to get started with Markdown
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Headings
|
|
11
|
+
|
|
12
|
+
There are 6 levels of headers, in order to make one, you add a `#` in front of the word, like this:
|
|
13
|
+
|
|
14
|
+
```md
|
|
15
|
+
## example
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
And it looks like this:
|
|
19
|
+
|
|
20
|
+
## example
|
|
21
|
+
|
|
22
|
+
The more `#`'s you add, the higher the level is. Only one `#` is equivalent to a `<h1>` in HTML. 4 `#`'s is equivalent to a `<h4>`.
|
|
23
|
+
|
|
24
|
+
```md
|
|
25
|
+
# Header 1
|
|
26
|
+
## Header 2
|
|
27
|
+
### Header 3
|
|
28
|
+
#### Header 4
|
|
29
|
+
##### Header 5
|
|
30
|
+
###### Header 6
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
# Header 1
|
|
34
|
+
## Header 2
|
|
35
|
+
### Header 3
|
|
36
|
+
#### Header 4
|
|
37
|
+
##### Header 5
|
|
38
|
+
###### Header 6
|
|
39
|
+
|
|
40
|
+
## Paragraphs
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
To have regular text, just start typing! you don't need anything special.
|
|
44
|
+
|
|
45
|
+
```md
|
|
46
|
+
To have regular text, just start typing! you don't need anything special.
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Italics / Bold / Underline / Etc
|
|
50
|
+
|
|
51
|
+
### Italics
|
|
52
|
+
|
|
53
|
+
*Put the text you want to be italicized between two asterisks*
|
|
54
|
+
|
|
55
|
+
```md
|
|
56
|
+
*Put the text you want to be italicized between two asterisks*
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Bold
|
|
60
|
+
|
|
61
|
+
**Put the text you want to be bolded between asterisks, with two on each side**
|
|
62
|
+
|
|
63
|
+
```md
|
|
64
|
+
**Put the text you want to be bolded between asterisks, with two on each side**
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Strikethrough
|
|
68
|
+
|
|
69
|
+
~~Put the text you want to be struck through between tildes, with two on each side~~
|
|
70
|
+
|
|
71
|
+
```md
|
|
72
|
+
~~Put the text you want to be struck through between tildes, with two on each side~~
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Blockquotes
|
|
76
|
+
|
|
77
|
+
> To type a block quote, just put a `>` in front of what you are typing similar to how you type a header.
|
|
78
|
+
> > You can have multiple layers of block quotes by stacking `>`'s
|
|
79
|
+
|
|
80
|
+
```
|
|
81
|
+
> To type a block quote, just put a `>` in front of what you are typing similar to how you type a header.
|
|
82
|
+
> > You can have multiple layers of block quotes by stacking `>`'s
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
## Lists
|
|
86
|
+
|
|
87
|
+
### Ordered Lists
|
|
88
|
+
|
|
89
|
+
For an ordered list, just put numbers in front of the list items as such:
|
|
90
|
+
|
|
91
|
+
1. One
|
|
92
|
+
2. Two
|
|
93
|
+
3. Three
|
|
94
|
+
4. Four
|
|
95
|
+
|
|
96
|
+
```md
|
|
97
|
+
1. One
|
|
98
|
+
2. Two
|
|
99
|
+
3. Three
|
|
100
|
+
4. Four
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### Unordered Lists
|
|
104
|
+
|
|
105
|
+
An unordered list is the same idea as the ordered list, just replace the numbers with dashes (`-`).
|
|
106
|
+
|
|
107
|
+
- One
|
|
108
|
+
- Two
|
|
109
|
+
- Three
|
|
110
|
+
- Four
|
|
111
|
+
|
|
112
|
+
```md
|
|
113
|
+
- One
|
|
114
|
+
- Two
|
|
115
|
+
- Three
|
|
116
|
+
- Four
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
## Multi-Layer Lists
|
|
120
|
+
|
|
121
|
+
To add subitems to a list, simply indent the next entry
|
|
122
|
+
|
|
123
|
+
- One
|
|
124
|
+
- Subitem
|
|
125
|
+
- Two
|
|
126
|
+
- Three
|
|
127
|
+
- Four
|
|
128
|
+
|
|
129
|
+
```md
|
|
130
|
+
- One
|
|
131
|
+
- Subitem
|
|
132
|
+
- Two
|
|
133
|
+
- Three
|
|
134
|
+
- Four
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
## Code snippets
|
|
138
|
+
|
|
139
|
+
For `inline code`, simply surround the section you want with backticks.
|
|
140
|
+
|
|
141
|
+
```md
|
|
142
|
+
For `inline code`, simply surround the section you want with backticks.
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
For a code block, put three backticks on separate lines before and after the code.
|
|
146
|
+
|
|
147
|
+
```
|
|
148
|
+
Hi! This is a code block!
|
|
149
|
+
It looks pretty neat!
|
|
150
|
+
```
|
|
151
|
+
<br>
|
|
152
|
+
```md
|
|
153
|
+
```
|
|
154
|
+
Hi! This is a code block!
|
|
155
|
+
It looks pretty neat!
|
|
156
|
+
```
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
## Links
|
|
160
|
+
|
|
161
|
+
Links can be included as such:
|
|
162
|
+
|
|
163
|
+
```md
|
|
164
|
+
[text that you see](hxxps://linkhere)
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
[text that you see](https://nyx.slavetomints.com/posts/how-to-use-markdown#links)
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
## Images
|
|
171
|
+
|
|
172
|
+
If you want to include an image, see the following syntax:
|
|
173
|
+
|
|
174
|
+
```md
|
|
175
|
+

|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+

|
|
179
|
+
|
|
180
|
+
## Horizontal Rules
|
|
181
|
+
|
|
182
|
+
If you want to break up some content, all you have to do is put three dashes side by side on their own line as such:
|
|
183
|
+
|
|
184
|
+
```md
|
|
185
|
+
---
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
---
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: How to Use Nyx
|
|
3
|
+
author: Slavetomints
|
|
4
|
+
date: 2026-01-08
|
|
5
|
+
categories: [Guides]
|
|
6
|
+
tags: [guide]
|
|
7
|
+
description: How to get started with the theme
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Installation
|
|
11
|
+
|
|
12
|
+
Add this line to your Jekyll site’s `Gemfile`:
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
gem "jekyll-theme-nyx"
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Then install the gem:
|
|
19
|
+
|
|
20
|
+
```sh
|
|
21
|
+
bundle install
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Next, enable the theme in your _config.yml:
|
|
25
|
+
|
|
26
|
+
```yml
|
|
27
|
+
theme: jekyll-theme-nyx
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
And that's how you start to use Nyx!
|
|
31
|
+
|
|
32
|
+
## Editing Configs
|
|
33
|
+
|
|
34
|
+
At the moment, the `_config.yml` file is pretty sparse. The only thing in it that you might want to edit is the `title`. In `_config.yml`, put `title: Your Site's Name`.
|
|
35
|
+
|
|
36
|
+
In the future there will be more fields you can add to your website, so be sure to stay tuned for updates!
|
data/_sass/nyx/_code.scss
CHANGED
data/_sass/nyx/_layout.scss
CHANGED
data/_tabs/about.md
CHANGED
|
@@ -6,4 +6,7 @@ order: 4
|
|
|
6
6
|
|
|
7
7
|
<h1>About</h1>
|
|
8
8
|
|
|
9
|
-
This is your "about me" page, where you can add anything about yourself that you wish for the world to know. It uses the default layout rather than the post layout. Feel free to drop your work experience, resume, or just a little blurb about who you are and who you're trying to become.
|
|
9
|
+
This is your "about me" page, where you can add anything about yourself that you wish for the world to know. It uses the default layout rather than the post layout. Feel free to drop your work experience, resume, or just a little blurb about who you are and who you're trying to become.
|
|
10
|
+
<br><br>
|
|
11
|
+
<br><br>
|
|
12
|
+

|
data/jekyll-theme-nyx.gemspec
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |spec|
|
|
4
4
|
spec.name = 'jekyll-theme-nyx'
|
|
5
|
-
spec.version = '0.3.
|
|
5
|
+
spec.version = '0.3.2'
|
|
6
6
|
spec.authors = ['Slavetomints']
|
|
7
7
|
spec.email = ['me@slavetomints.com']
|
|
8
8
|
|
|
9
|
-
spec.summary = 'Simple Jekyll Theme'
|
|
9
|
+
spec.summary = 'Simple Dark Mode Oriented Jekyll Theme'
|
|
10
10
|
spec.description = <<~DESC
|
|
11
11
|
Nyx is a dark mode based Jekyll theme focused on readability,
|
|
12
12
|
clean typography, and simple blogging.
|
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.
|
|
4
|
+
version: 0.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Slavetomints
|
|
@@ -60,21 +60,21 @@ executables: []
|
|
|
60
60
|
extensions: []
|
|
61
61
|
extra_rdoc_files: []
|
|
62
62
|
files:
|
|
63
|
+
- ".github/CHANGELOG.md"
|
|
64
|
+
- ".github/CODE_OF_CONDUCT.md"
|
|
63
65
|
- ".github/CONTRIBUTING.MD"
|
|
64
66
|
- ".github/ISSUE_TEMPLATE/bug_report.yml"
|
|
65
67
|
- ".github/ISSUE_TEMPLATE/config.yml"
|
|
66
68
|
- ".github/ISSUE_TEMPLATE/feature_request.yml"
|
|
69
|
+
- ".github/SECURITY.md"
|
|
67
70
|
- ".github/pull_request_template.md"
|
|
68
71
|
- ".github/workflows/build-and-deploy.yml"
|
|
69
72
|
- ".gitignore"
|
|
70
|
-
- CHANGELOG.md
|
|
71
|
-
- CODE_OF_CONDUCT.md
|
|
72
73
|
- Gemfile
|
|
73
74
|
- Gemfile.lock
|
|
74
75
|
- LICENSE.txt
|
|
75
76
|
- README.md
|
|
76
77
|
- Rakefile
|
|
77
|
-
- SECURITY.md
|
|
78
78
|
- _config.yml
|
|
79
79
|
- _includes/header.html
|
|
80
80
|
- _layouts/category.html
|
|
@@ -82,7 +82,10 @@ files:
|
|
|
82
82
|
- _layouts/post.md
|
|
83
83
|
- _layouts/tag.html
|
|
84
84
|
- _plugins/taxonomy_pages.rb
|
|
85
|
-
- _posts/2026-01-02-
|
|
85
|
+
- _posts/2026-01-02-showcase-post.md
|
|
86
|
+
- _posts/2026-01-07-syntax-highlighting.md
|
|
87
|
+
- _posts/2026-01-08-how-to-use-markdown.md
|
|
88
|
+
- _posts/2026-01-08-how-to-use-nyx.md
|
|
86
89
|
- _sass/nyx/_base.scss
|
|
87
90
|
- _sass/nyx/_code.scss
|
|
88
91
|
- _sass/nyx/_layout.scss
|
|
@@ -127,5 +130,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
127
130
|
requirements: []
|
|
128
131
|
rubygems_version: 3.6.7
|
|
129
132
|
specification_version: 4
|
|
130
|
-
summary: Simple Jekyll Theme
|
|
133
|
+
summary: Simple Dark Mode Oriented Jekyll Theme
|
|
131
134
|
test_files: []
|
metadata.gz.sig
CHANGED
|
Binary file
|
|
File without changes
|
|
File without changes
|