baltic 0.0.0 → 0.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 496296ba54faaa2380ca0345bcda7fc69a6e272c5bede6f129d4f8fa659d5eb6
4
- data.tar.gz: 88d131829689797d7435742d5ae958bfcb10bd41209592c6213ad49b54d7f635
3
+ metadata.gz: fee29e4131560e1e0cd51a428a132b06e8955d9803b8181fe8ace2b636a9a265
4
+ data.tar.gz: 6f8abbbcdb964b580ca81b8faec4452f72a3e62a06a75f82a12b2b6d3db13679
5
5
  SHA512:
6
- metadata.gz: 937b560c139390d83f9377a0bcff0caeab2ba857d916b94916d6e4fae651af9a400b6f8996dd5df79ac6708380375744ed04178113313703ce48a909dcae2519
7
- data.tar.gz: 81c895ef4e12bd88bce9bed215d2132c38f3bd78b90f5ea39826c27f2d91363896a7699da0cfe7f670fea7ab3c999ca61f031f94d0a4b05e5f961238ae1a5bfa
6
+ metadata.gz: 7452b214a12a784249724ca1b096d9f153ab4845d852e361c49633646036e20cde1cd8ac89d360981d523f710612ac1899cded8d72acc79def8fedbcf0730d8a
7
+ data.tar.gz: d5fc4518ee85686a86adabe673546ce04820d9d1da80bfb6e4f3f04674eb976ecd17d321178c9ed393b38b06be8454883c139eb139e6480b6cb41fc4e5f1fa3a
@@ -0,0 +1,9 @@
1
+
2
+ <figure class="image">
3
+ <img src="{{include.source | uri_escape }}" alt="{{include.caption | escape}}"/>
4
+ {%- if include.caption != "" -%}
5
+ <figcaption>
6
+ {{include.caption}}
7
+ </figcaption>
8
+ {%- endif -%}
9
+ </figure>
@@ -0,0 +1,14 @@
1
+
2
+ <figure class="video">
3
+ <video controls>
4
+ {%- assign sources = include.source_list | split: "," -%}
5
+ {%- for source in sources -%}
6
+ <source src="{{ source | uri_escape }}" type="">
7
+ {%- endfor -%}
8
+ </video>
9
+ {%- if include.caption != "" -%}
10
+ <figcaption>
11
+ {{include.caption}}
12
+ </figcaption>
13
+ {%- endif -%}
14
+ </figure>
@@ -0,0 +1,3 @@
1
+ <link rel="preconnect" href="https://fonts.googleapis.com">
2
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
3
+ <link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap" rel="stylesheet">
data/_includes/head.html CHANGED
@@ -1,4 +1,5 @@
1
1
  <meta charset="UTF-8" />
2
2
  <meta name="viewport" content="width=device-width, initial-scale=1" />
3
3
  <link rel="stylesheet" href="{{'/assets/css/style.css' | absolute_url}}">
4
- {{fonts}}
4
+ <title>{{page.title}} - {{site.title}}</title>
5
+ {%- include fonts.html -%}
@@ -0,0 +1,20 @@
1
+ <header class="header">
2
+ {%- assign nav_pages = site.header_pages -%}
3
+ {%- assign nav_size = nav_pages | size -%}
4
+
5
+ <div class="header-title">
6
+ <a class="header-title-link" href="/">{{site.title}}</a>
7
+ </div>
8
+
9
+ {%- if nav_size > 0 -%}
10
+ <nav class="header-nav">
11
+ {%- for path in nav_pages -%}
12
+ {%- assign page = site.pages | where: "path", path | first -%}
13
+ {%- if page.title -%}
14
+ <a class="header-nav-link" href="{{ page.url | relative_url }}">{{page.title | escape}}</a>
15
+ {%- endif -%}
16
+ {%- endfor -%}
17
+ </nav>
18
+ {%- endif -%}
19
+
20
+ </header>
data/_layouts/base.html CHANGED
@@ -1,11 +1,15 @@
1
1
  <!DOCTYPE html>
2
- <html>
2
+ <html lang="{{ page.lang | default: site.lang | default: "en-US" }}">
3
3
 
4
4
  {%- include head.html -%}
5
5
 
6
- <body>
6
+ <body class="{{ page.colorset | default: site.colorset | default: "normal" }}">
7
7
 
8
- {{content}}
8
+ {%- include header.html -%}
9
+
10
+ <main class="content-area">
11
+ {{content}}
12
+ </main>
9
13
 
10
14
  </body>
11
15
 
@@ -1,3 +1,23 @@
1
+ $titles: #f8fafe;
2
+ $body: #eaf4f8;
3
+ $titles_dark: #162238;
4
+ $body_dark: #303b52;
1
5
  $baltic: #24323f;
6
+ $waves: #222d36;
7
+ $seafloor: #2a3948;
2
8
  $kaliningrad: #293846;
3
- $riga: #473321;
9
+ $nord: #2e3440;
10
+ $kihnu: #4f6a92;
11
+ $gotland: #5e81ac;
12
+ $helsinki: #7f9fbf;
13
+ $vilnius: #86bfd4;
14
+ $stockholm: #92c1bf;
15
+ $gothenburg: #a2bf8f;
16
+ $sarek: #ebb591;
17
+ $kurische: #ffea91;
18
+ $tallinn: #c0656f;
19
+ $riga: #f75341;
20
+ $dainava: #b77fb1;
21
+ $nord_snow_dark: #d8dee9;
22
+ $nord_snow_med: #e5e9f0;
23
+ $nord_snow_light: #eceff4;
@@ -0,0 +1,3 @@
1
+
2
+ $pad_h: 10vw;
3
+ $border_radius: 12px;
@@ -0,0 +1,100 @@
1
+ .highlight {
2
+
3
+ background-color: $nord;
4
+ color: $body;
5
+ border-radius: 12px;
6
+ padding: 10px;
7
+ box-sizing: border-box;
8
+ max-width: 90ch;
9
+ overflow-x:scroll;
10
+ margin: 20px 0;
11
+
12
+ .hll {
13
+ background-color: $waves;
14
+ }
15
+
16
+ .c,
17
+ .ch,
18
+ .cm,
19
+ .cp,
20
+ .cpf,
21
+ .c1 {
22
+ color: $kihnu;
23
+ }
24
+ .cs {
25
+ color: $vilnius;
26
+ font-weight: 700;
27
+ }
28
+
29
+ .err {
30
+
31
+ }
32
+
33
+ .esc {
34
+
35
+ }
36
+
37
+ .g,
38
+ .p,
39
+ .l,
40
+ .x {
41
+ color: $titles;
42
+ }
43
+
44
+ .k {
45
+ color: $gotland;
46
+ font-weight: 700;
47
+ }
48
+
49
+ .l,
50
+ .sa,
51
+ .sb,
52
+ .sc,
53
+ .dl,
54
+ .sd,
55
+ .s2,
56
+ .se,
57
+ .sh,
58
+ .si,
59
+ .sx,
60
+ .sr,
61
+ .s1,
62
+ .ss {
63
+ color: $gothenburg;
64
+ }
65
+
66
+ .m,
67
+ .mb,
68
+ .mf,
69
+ .mh,
70
+ .mi,
71
+ .mo,
72
+ .il {
73
+ color: $dainava;
74
+ }
75
+
76
+ .n,
77
+ .vc,
78
+ .vg,
79
+ .vi,
80
+ .vm {
81
+ color: $sarek;
82
+ }
83
+
84
+ .nc {
85
+ color: $stockholm;
86
+ }
87
+
88
+ .nf {
89
+ color: $vilnius;
90
+ }
91
+
92
+ .kd {
93
+ color: $helsinki;
94
+ }
95
+
96
+ .o {
97
+ color: $stockholm;
98
+ }
99
+
100
+ }
data/_sass/baltic.scss CHANGED
@@ -2,7 +2,109 @@
2
2
 
3
3
  @import "baltic/color";
4
4
  @import "baltic/layout";
5
+ @import "baltic/rouge-nord";
5
6
 
6
7
  html {
7
8
  font-family: "Jetbrains Mono", "Courier New", monospace;
8
- }
9
+ }
10
+
11
+ html,
12
+ body {
13
+ margin: 0;
14
+ padding: 0;
15
+ }
16
+
17
+ body {
18
+ background-color: $seafloor;
19
+ color: $body;
20
+
21
+ &.light {
22
+ background-color: $titles;
23
+ color: $body_dark;
24
+ }
25
+ }
26
+
27
+ h1 {
28
+ font-weight: 900;
29
+ color: $gotland;
30
+ }
31
+
32
+ h3 {
33
+ font-weight: 200;
34
+ }
35
+
36
+ strong {
37
+ font-weight: 900;
38
+ }
39
+
40
+ a {
41
+ text-decoration: none;
42
+ }
43
+
44
+ hr {
45
+ color: $vilnius;
46
+ max-width: 90ch;
47
+ margin: 40px 0;
48
+ }
49
+
50
+ .header {
51
+ display: grid;
52
+ grid-template-columns: auto auto;
53
+ padding: 40px $pad_h;
54
+ background-color: $baltic;
55
+ border-bottom:4px solid #222d36;
56
+
57
+ .header-title-link {
58
+ font-weight: 700;
59
+ color: $body;
60
+ transition: 0.2s;
61
+
62
+ &:hover {
63
+ color: $riga;
64
+ }
65
+ }
66
+
67
+ .header-nav {
68
+
69
+ }
70
+
71
+ .header-nav-link {
72
+ margin: 0 20px;
73
+ font-weight: 500;
74
+ color: $vilnius;
75
+ transition: 0.2s;
76
+
77
+ &:hover {
78
+ color: $dainava;
79
+ }
80
+ }
81
+ }
82
+
83
+ .content-area {
84
+ display: block;
85
+ max-width: calc(100vw - $pad_h);
86
+ margin: 40px $pad_h;
87
+
88
+ p {
89
+ max-width: 90ch;
90
+ }
91
+
92
+ figure {
93
+ margin: 0;
94
+
95
+ figcaption {
96
+ margin: 10px 0 20px $border_radius;
97
+ padding: $border_radius;
98
+ border-left: 4px solid $riga;
99
+ font-size: 0.85em;
100
+ font-style: italic;
101
+ color: $tallinn;
102
+ }
103
+ }
104
+
105
+ video,
106
+ img {
107
+ max-width: 100%;
108
+ border-radius: 12px;
109
+ }
110
+ }
data/readme.md CHANGED
@@ -1,5 +1,37 @@
1
1
  # Baltic
2
2
 
3
- ![Up North](./header.jpg)
3
+ Baltic is a Jekyll theme inspired by the popular Nord color theme.
4
4
 
5
- Todo: the rest of the readme
5
+ ## Features
6
+
7
+ ![Video Embedding](./baltic-video-embed.png)
8
+
9
+ ![Captioned Images](./baltic-image-captions.png)
10
+
11
+ ![Nord-Color Syntax Highlighting](./baltic-syntax-highlighting.png)
12
+
13
+ ## Example Site
14
+
15
+ ![Example index file](./screenshot.png)
16
+
17
+ ## Installation
18
+
19
+ Add this line to your Jekyll site's `Gemfile`:
20
+
21
+ ```ruby
22
+ gem "baltic"
23
+ ```
24
+
25
+ And add this line to your Jekyll site's `_config.yml`:
26
+
27
+ ```yaml
28
+ theme: baltic
29
+ ```
30
+
31
+ And then execute:
32
+
33
+ $ bundle
34
+
35
+ Or install it yourself as:
36
+
37
+ $ gem install baltic
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: baltic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew MacGillivray
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-16 00:00:00.000000000 Z
11
+ date: 2024-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -32,24 +32,32 @@ dependencies:
32
32
  version: '5.0'
33
33
  description: "A personal blog theme styled for developers. \nInspired by popular \"Nord\"
34
34
  IDE and terminal themes, my adventures in Canada, and the Baltic & Nordic regions
35
- where I dream to go.\n"
35
+ I hope to someday visit.\n"
36
36
  email: agjmacgill@gmail.com
37
37
  executables: []
38
38
  extensions: []
39
39
  extra_rdoc_files: []
40
40
  files:
41
+ - _includes/embed-image.html
42
+ - _includes/embed-video.html
43
+ - _includes/fonts.html
41
44
  - _includes/head.html
45
+ - _includes/header.html
42
46
  - _layouts/base.html
43
47
  - _sass/baltic.scss
44
48
  - _sass/baltic/color.scss
45
49
  - _sass/baltic/layout.scss
50
+ - _sass/baltic/rouge-nord.scss
46
51
  - assets/css/style.scss
47
52
  - license.txt
48
53
  - readme.md
49
54
  homepage: https://github.com/amacgillivray/baltic
50
55
  licenses:
51
56
  - MIT
52
- metadata: {}
57
+ metadata:
58
+ bug_tracker_uri: https://github.com/amacgillivray/baltic/issues
59
+ homepage_uri: https://github.com/amacgillivray/baltic
60
+ source_code_uri: https://github.com/amacgillivray/baltic
53
61
  post_install_message:
54
62
  rdoc_options: []
55
63
  require_paths: