jekyll-oedipus-theme 0.5.0 → 0.5.1

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: e3e6768b444b549237c61dd99532bb1f0133a47140ee4ed6a85d163f12a28e79
4
- data.tar.gz: ce47ca3de6e0a676a71d6185a91a4c7da4fb6e7d7ea9d54d35b1a13f7d5cf5b1
3
+ metadata.gz: 247f35fd43d5ad6558f3dadfaff25f8c9810cfe6ea3756d497af92d387b20add
4
+ data.tar.gz: 74731ab0f28e29cf73117da85608eb42845410fa3bafbfa8746cbd2806190066
5
5
  SHA512:
6
- metadata.gz: 2e3ff13c887718b872d218d452a7becc7337ade2e8a85ca71abb7f43afadf44405ba5ade01b5b4a99acf438caa88d033b48f4b0bad61ebe2483025c19b88931f
7
- data.tar.gz: '0159cb53f76c71f68e47802cb707b320796664f7aa5dd1fce10f211b3901d1f5f66b6ecd6a73046092e96c95d8d369623d9720748fce7adb9f4e4fa589f3e736'
6
+ metadata.gz: 8947a9c0a5fefdb3d636d8b990803384480dd12758da5a52836e5aef94c34ea67f943bf51a3b7f3e2dc09e13db183cc6c7cdb72a02f6dfa5889222c5704c4590
7
+ data.tar.gz: 0e8400076d1f4ff7f32c741f6e729a55fb47ddabd82470fc62eb21ebd3024c130853a4452a0a86ffa3b990f44311eb0d7a660d6f9f9bb2428929f2582c5a4bfe
data/README.md CHANGED
@@ -4,6 +4,10 @@ Build a motherfucking website with Jekyll (patricide optional).
4
4
 
5
5
  [![Gem Version](https://badge.fury.io/rb/jekyll-oedipus-theme.svg)](https://badge.fury.io/rb/jekyll-oedipus-theme)
6
6
 
7
+ ## Screenshot
8
+
9
+ ![Oedipus rendered on a Thinkpad T60 in Firefox ESR](https://github.com/matthewgraybosch/jekyll-oedipus-theme/blob/main/screenshot.png?raw=true)
10
+
7
11
  ## Installation
8
12
 
9
13
  Add this line to your Jekyll site's `Gemfile`:
@@ -30,6 +34,10 @@ Or install it yourself as:
30
34
 
31
35
  TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
32
36
 
37
+ ### Layouts
38
+
39
+ * **base.html**: a wrapper layout that sets language and encoding, sets up a skip navigation link, and links to favicons, stylesheets, and feeds.
40
+
33
41
  ## Contributing
34
42
 
35
43
  I built this theme for my own use. If you find this theme useful, you are welcome to it. If you wish to customize it, by all means fork it. However, I will not accept pull requests unless they suit my tastes. Any support I provide is at my own discretion.
data/_config.yml CHANGED
@@ -9,12 +9,6 @@ github_username: matthewgraybosch
9
9
  lang: en
10
10
  encoding: utf-8
11
11
  locale: en_US
12
- rights: most rights reserved
13
- license-text-name: "CC BY-NC-SA 4.0"
14
- license-text-url: "https://creativecommons.org/licenses/by-nc-sa/4.0/"
15
- license-code-name: "GNU GPL-3.0"
16
- license-code-url: "https://opensource.org/licenses/GPL-3.0/"
17
- madeWith: "♥ in Pennsylvania"
18
12
 
19
13
  # Build settings
20
14
  theme: jekyll-oedipus-theme
@@ -27,4 +21,35 @@ plugins:
27
21
  sass:
28
22
  style: expanded
29
23
 
30
- permalink: /blog/:year/:month/:day/:title/
24
+ permalink: /blog/:year/:month/:day/:title/
25
+
26
+ oedipus:
27
+ rights: most rights reserved
28
+ license:
29
+ text:
30
+ name: "CC BY-NC-SA 4.0"
31
+ url: "https://creativecommons.org/licenses/by-nc-sa/4.0/"
32
+ code:
33
+ name: "GNU GPL-3.0"
34
+ url: "https://opensource.org/licenses/GPL-3.0/"
35
+ madeWith: "♥ in Pennsylvania"
36
+ style:
37
+ bg-color: "#FFFFFF"
38
+ fg-color: "#000000"
39
+ link-color: "#0000B5"
40
+ link-hover-color: "#3A539B"
41
+ link-active-color: "#20603C"
42
+ link-visited-color: "#550000"
43
+ border-thickness: 2px
44
+ hr-border-thickness: 1px
45
+ html-font-size: medium
46
+ body-margin: 1rem
47
+ content-font-size: 1rem
48
+ content-line-height: 1.62
49
+ content-font-family: sans-serif
50
+ preformatted-font-size: 1rem
51
+ preformatted-font-family: monospace
52
+ content-width: 40rem
53
+ content-centered: false
54
+ compact-header: true
55
+ home-header-icon: true
@@ -1,8 +1,8 @@
1
1
  <footer>
2
2
  <p>
3
- &copy; {{ site.time | date: "%Y" }} {{ site.author }}, {{ site.rights }}<br />
3
+ &copy; {{ site.time | date: "%Y" }} {{ site.author }}, {{ site.oedipus.rights }}<br />
4
4
  {% include license.html %}
5
- made with {{ site.madeWith }}
5
+ made with {{ site.oedipus.madeWith }}
6
6
  </p>
7
7
  {% include navbar.html id="footer-nav" label="bottom navigation" source=site.data.footer-nav %}
8
8
  </footer>
@@ -1,5 +1,4 @@
1
1
  <header>
2
- <h1>{{ site.title }}</h1>
3
- <p>{{ site.description }}</p>
2
+ {% include masthead.html %}
4
3
  {% include navbar.html id="header-nav" label="main navigation" source=site.data.header-nav %}
5
4
  </header>
@@ -1,7 +1,7 @@
1
1
  <footer>
2
2
  <p>
3
- &copy; {{ site.time | date: "%Y" }} {{ site.author }}, {{ site.rights }}<br />
3
+ &copy; {{ site.time | date: "%Y" }} {{ site.author }}, {{ site.oedipus.rights }}<br />
4
4
  {% include license.html %}
5
- made with {{ site.madeWith }}
5
+ made with {{ site.oedipus.madeWith }}
6
6
  </p>
7
7
  </footer>
@@ -1,8 +1,9 @@
1
1
  <header>
2
+ {% if site.oedipus.style.home-header-icon %}
2
3
  <img src="/assets/favicon.svg"
3
4
  height="128"
4
5
  width="128"
5
6
  alt="favicon for the Oedipus theme for Jekyll website">
6
- <h1>{{ site.title }}</h1>
7
- <p>{{ site.description }}</p>
7
+ {% endif %}
8
+ {% include masthead.html %}
8
9
  </header>
@@ -1,3 +1,12 @@
1
- text: <a href="{{ site.license-text-url }}">{{ site.license-text-name }}</a>
2
- / code: <a href="{{ site.license-code-url }}">{{ site.license-code-name }}</a>
1
+ {% if site.oedipus.license.text %}
2
+ text: <a href="{{ site.oedipus.license.text.url }}">{{ site.oedipus.license.text.name }}</a>
3
+ {% endif %}
4
+ {% if site.oedipus.license.text and site.oedipus.license.code %}
5
+ /
6
+ {% endif %}
7
+ {% if site.oedipus.license.code %}
8
+ code: <a href="{{ site.oedipus.license.code.url }}">{{ site.oedipus.license.code.name }}</a>
9
+ {% endif %}
10
+ {% if site.oedipus.license.text or site.oedipus.license.code %}
3
11
  <br />
12
+ {% endif %}
@@ -0,0 +1,6 @@
1
+ {% if site.oedipus.style.compact-header %}
2
+ <h1>{{ site.title }}<em>{{ site.description }}</em></h1>
3
+ {% else %}
4
+ <h1>{{ site.title }}</h1>
5
+ <p>{{ site.description }}</p>
6
+ {% endif %}
@@ -1,3 +1,4 @@
1
+ {% if include.source %}
1
2
  <nav id="{{ include.id }}" aria-label=" {{include.label }}">
2
3
  <p>
3
4
  {% for item in include.source %}
@@ -5,3 +6,4 @@
5
6
  {% endfor %}
6
7
  </p>
7
8
  </nav>
9
+ {% endif %}
@@ -1,3 +1,4 @@
1
+ {% if include.source %}
1
2
  <nav id="{{ include.id }}" aria-label=" {{include.label }}">
2
3
  <ul>
3
4
  {% for item in include.source %}
@@ -7,3 +8,4 @@
7
8
  {% endfor %}
8
9
  </ul>
9
10
  </nav>
11
+ {% endif %}
data/_sass/dark.scss CHANGED
@@ -27,6 +27,10 @@
27
27
  border-left: $border-thickness solid invert($fg-color);
28
28
  }
29
29
 
30
+ figure {
31
+ border: $border-thickness solid invert($fg-color);
32
+ }
33
+
30
34
  hr {
31
35
  border: $hr-border-thickness solid invert($fg-color);
32
36
  }
data/_sass/main.scss CHANGED
@@ -1,13 +1,15 @@
1
1
  html {
2
- font-size: medium;
2
+ font-size: $html-font-size;
3
3
  background-color: $bg-color;
4
4
  color: $fg-color;
5
5
 
6
6
  body {
7
7
  background-color: $bg-color;
8
8
  color: $fg-color;
9
- margin: 1rem;
10
- font: 1rem/1.62 sans-serif;
9
+ margin: $body-margin;
10
+ font-size: $content-font-size;
11
+ font-family: $content-font-family;
12
+ line-height: $content-line-height;
11
13
 
12
14
  a {
13
15
  color: $link-color;
@@ -31,10 +33,16 @@ html {
31
33
  }
32
34
 
33
35
  header, footer, nav {
34
- text-align: center;
36
+ text-align: content-alignment;
35
37
 
36
38
  h1 {
39
+ font-size: 1rem;
37
40
  margin-bottom: 1rem;
41
+
42
+ em {
43
+ margin-left: 1rem;
44
+ font-weight: normal;
45
+ }
38
46
  }
39
47
  }
40
48
 
@@ -54,14 +62,17 @@ html {
54
62
  margin-top: 1.5rem;
55
63
  p {
56
64
  a {
57
- margin-left: .5rem;
58
- margin-right: .5rem;
65
+ margin-right: 1rem;
59
66
  border: $border-thickness solid $link-color;
60
67
  border-radius: .5rem;
61
68
  padding: .5rem;
62
69
  text-decoration: none;
63
70
  }
64
71
 
72
+ a:last-child {
73
+ margin-right: 0;
74
+ }
75
+
65
76
  a:hover {
66
77
  border: $border-thickness solid $link-hover-color;
67
78
  }
@@ -77,9 +88,9 @@ html {
77
88
  }
78
89
 
79
90
  main {
80
- margin: 2rem auto;
91
+ margin: $content-margin;
81
92
  max-width: $content-width;
82
- padding: 0 .62rem;
93
+ padding: $content-padding;
83
94
 
84
95
  article {
85
96
  margin-left: 2rem;
@@ -91,9 +102,9 @@ html {
91
102
  }
92
103
 
93
104
  article {
94
- margin: 2rem auto;
105
+ margin: $content-margin;
95
106
  max-width: $content-width;
96
- padding: 0 .62rem;
107
+ padding: $content-padding;
97
108
 
98
109
  header, footer {
99
110
  text-align: left;
@@ -101,7 +112,7 @@ html {
101
112
  }
102
113
 
103
114
  section {
104
- margin: 2rem auto;
115
+ margin: 2rem auto;
105
116
  }
106
117
 
107
118
  header {
@@ -114,9 +125,27 @@ html {
114
125
  border-top: $hr-border-thickness dashed $fg-color;
115
126
  }
116
127
  }
128
+
129
+ main, article {
130
+ h1 {
131
+ font-size: 1.6rem;
132
+ }
133
+
134
+ h2 {
135
+ font-size: 1.4rem;
136
+ }
137
+
138
+ h3 {
139
+ font-size: 1.2rem;
140
+ }
141
+
142
+ h4, h5, h6 {
143
+ font-size: 1.1rem;
144
+ }
145
+ }
117
146
 
118
147
  blockquote {
119
- font-size: 1.2rem;
148
+ font-size: $blockquote-font-size;
120
149
  margin: 2rem 4rem;
121
150
  padding: 0 1rem;
122
151
  border-left: $border-thickness solid $fg-color;
@@ -127,6 +156,22 @@ html {
127
156
  }
128
157
  }
129
158
 
159
+ figure {
160
+ font-size: $blockquote-font-size;
161
+ margin: 2rem 4rem;
162
+ padding: 1rem;
163
+ border: $border-thickness solid $fg-color;
164
+
165
+ img {
166
+ width: 100%;
167
+ }
168
+
169
+ figcaption {
170
+ font-style: normal;
171
+ font-weight: bold;
172
+ }
173
+ }
174
+
130
175
  dl {
131
176
  dt {
132
177
  font-size: 1.1rem;
@@ -152,5 +197,10 @@ html {
152
197
  text-align: left;
153
198
  }
154
199
  }
200
+
201
+ pre, code {
202
+ font-size: $preformatted-font-size;
203
+ font-family: $preformatted-font-family;
204
+ }
155
205
  }
156
206
  }
data/_sass/variables.scss CHANGED
@@ -6,4 +6,16 @@ $link-active-color: #20603C;
6
6
  $link-visited-color: #550000;
7
7
  $border-thickness: 2px;
8
8
  $hr-border-thickness: 1px;
9
+ $html-font-size: medium;
10
+ $body-margin: 2rem;
11
+ $content-font-size: 1rem;
12
+ $content-line-height: 1.62;
13
+ $content-font-family: sans-serif;
14
+ $preformatted-font-size: 1rem;
15
+ $preformatted-font-family: monospace;
9
16
  $content-width: 40rem;
17
+ $content-alignment: center;
18
+ $content-margin: 2rem auto;
19
+ $content-padding: 0 .62rem;
20
+ $blockquote-font-size: 1.1rem;
21
+ $figure-font-size: 1.1rem;
data/assets/print.scss CHANGED
@@ -2,4 +2,12 @@
2
2
  ---
3
3
 
4
4
  @import "variables";
5
+
6
+ // now that our variables are defined, let's override them from the config.
7
+
8
+ {% if site.oedipus.style.content-width %}
9
+ $content-width: {{ site.oedipus.style.content-width }};
10
+ {% endif %}
11
+
12
+
5
13
  @import "paper";
data/assets/style.scss CHANGED
@@ -2,6 +2,83 @@
2
2
  ---
3
3
 
4
4
  @import "variables";
5
+
6
+ // now that our variables are defined, let's override them from the config.
7
+
8
+ {% if site.oedipus.style.bg-color %}
9
+ $bg-color: {{ site.oedipus.style.bg-color }};
10
+ {% endif %}
11
+
12
+ {% if site.oedipus.style.fg-color %}
13
+ $fg-color: {{ site.oedipus.style.fg-color }};
14
+ {% endif %}
15
+
16
+ {% if site.oedipus.style.link-color %}
17
+ $link-color: {{ site.oedipus.style.link-color }};
18
+ {% endif %}
19
+
20
+ {% if site.oedipus.style.link-hover-color %}
21
+ $link-hover-color: {{ site.oedipus.style.link-hover-color }};
22
+ {% endif %}
23
+
24
+ {% if site.oedipus.style.link-active-color %}
25
+ $link-active-color: {{ site.oedipus.style.link-active-color }};
26
+ {% endif %}
27
+
28
+ {% if site.oedipus.style.link-visited-color %}
29
+ $link-visited-color: {{ site.oedipus.style.link-visited-color }};
30
+ {% endif %}
31
+
32
+ {% if site.oedipus.style.border-thickness %}
33
+ $border-thickness: {{ site.oedipus.style.border-thickness }};
34
+ {% endif %}
35
+
36
+ {% if site.oedipus.style.hr-border-thickness %}
37
+ $hr-border-thickness: {{ site.oedipus.style.hr-border-thickness }};
38
+ {% endif %}
39
+
40
+ {% if site.oedipus.style.body-margin %}
41
+ $body-margin: {{ site.oedipus.style.body-margin }};
42
+ {% endif %}
43
+
44
+ {% if site.oedipus.style.html-font-size %}
45
+ $html-font-size: {{ site.oedipus.style.html-font-size }};
46
+ {% endif %}
47
+
48
+ {% if site.oedipus.style.content-font-size %}
49
+ $content-font-size: {{ site.oedipus.style.content-font-size }};
50
+ {% endif %}
51
+
52
+ {% if site.oedipus.style.content-font-family %}
53
+ $content-font-family: {{ site.oedipus.style.content-font-family }};
54
+ {% endif %}
55
+
56
+ {% if site.oedipus.style.content-line-height %}
57
+ $content-line-height: {{ site.oedipus.style.content-line-height }};
58
+ {% endif %}
59
+
60
+ {% if site.oedipus.style.preformatted-font-size %}
61
+ $preformatted-font-size: {{ site.oedipus.style.preformatted-font-size }};
62
+ {% endif %}
63
+
64
+ {% if site.oedipus.style.preformatted-font-family %}
65
+ $preformatted-font-family: {{ site.oedipus.style.preformatted-font-family }};
66
+ {% endif %}
67
+
68
+ {% if site.oedipus.style.content-width %}
69
+ $content-width: {{ site.oedipus.style.content-width }};
70
+ {% endif %}
71
+
72
+ {% if site.oedipus.style.content-centered %}
73
+ $content-alignment: center;
74
+ $content-margin: 2rem auto;
75
+ $content-padding: 0 .62rem;
76
+ {% else %}
77
+ $content-alignment: left;
78
+ $content-margin: 0;
79
+ $content-padding: auto;
80
+ {% endif %}
81
+
5
82
  @import "main";
6
83
  @import "skip";
7
84
  @import "dark";
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-oedipus-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Graybosch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-28 00:00:00.000000000 Z
11
+ date: 2021-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -107,6 +107,7 @@ files:
107
107
  - _includes/home-footer.html
108
108
  - _includes/home-header.html
109
109
  - _includes/license.html
110
+ - _includes/masthead.html
110
111
  - _includes/navbar.html
111
112
  - _includes/navlist.html
112
113
  - _includes/posts-list.html