jekyll-oedipus-theme 0.3.0 → 0.4.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: 106d1e7e92fa86c8b7750bfddd6e75c2c91fb263636cd898bdd60972b4180ef9
4
- data.tar.gz: 76fe06c21d90753be4a76baf84a6faae0e186ac11610aa7846102419cdc92964
3
+ metadata.gz: ea601fb0f18d07768452f6dd45afa0411ac9c8b369ebce6325abc920b6d125b4
4
+ data.tar.gz: bf3cc12c0c60707c81f4fb54b22b0643cd5d638eb226d8e5b6c341d390bde4a5
5
5
  SHA512:
6
- metadata.gz: cb0f410f1085476e0cc848647b2a0b8e5f62dce0ff06968650461adbd1e0340b0b299a6a223c5103571d304c8acf0b7d64067e33a886dce4bd22e06c8d316dfa
7
- data.tar.gz: e967d721f0b84aeffc9314d38c23c0c4a171a7076e56bacdc8edfddcc97f1c2c5d49bb4f91b51d2254c69f297e6783bbc55615a9629ae69cf024cfdaf6bbba4f
6
+ metadata.gz: 4c39f297c1b7c69f40bb3030a638881770dd1ff446531a0108649a65e78db6f6f5acc0e7628814daebe820a22c266e4a0eb2e1899daf8eedadd8fa2911abcbba
7
+ data.tar.gz: 24857324332bb82efbe14d46c140fe089a6ced5ae6c5e125cafc3ea1b95b1a450539bf6fb52319dc46587751823b685cb3098c794300b41a17731acb4f4ae2ea
data/_config.yml CHANGED
@@ -10,7 +10,10 @@ lang: en
10
10
  encoding: utf-8
11
11
  locale: en_US
12
12
  rights: most rights reserved
13
- license: "text: CC BY-NC-SA 4.0 / code: GNU GPLv3"
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/"
14
17
  madeWith: "♥ in Pennsylvania"
15
18
 
16
19
  # Build settings
@@ -22,6 +25,6 @@ plugins:
22
25
  - jekyll-seo-tag
23
26
 
24
27
  sass:
25
- style: compressed
28
+ style: expanded
26
29
 
27
30
  permalink: /blog/:year/:month/:day/:title/
@@ -1,7 +1,7 @@
1
1
  <footer>
2
2
  <p>
3
3
  &copy; {{ site.time | date: "%Y" }} {{ site.author }}, {{ site.rights }}<br />
4
- {{ site.license }}<br />
4
+ {% include license.html %}
5
5
  made with {{ site.madeWith }}
6
6
  </p>
7
7
  {% include navbar.html id="footer-nav" label="bottom navigation" source=site.data.footer-nav %}
@@ -1,7 +1,7 @@
1
1
  <footer>
2
2
  <p>
3
3
  &copy; {{ site.time | date: "%Y" }} {{ site.author }}, {{ site.rights }}<br />
4
- {{ site.license }}<br />
4
+ {% include license.html %}
5
5
  made with {{ site.madeWith }}
6
6
  </p>
7
7
  </footer>
@@ -0,0 +1,3 @@
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>
3
+ <br />
@@ -1,15 +1,15 @@
1
1
  <table>
2
2
  <thead>
3
3
  <tr>
4
- <th>Date</th>
5
4
  <th>Title</th>
5
+ <th>Date</th>
6
6
  </tr>
7
7
  </thead>
8
8
  <tbody>
9
9
  {% for post in site.posts %}
10
10
  <tr>
11
- <td>{{ post.date | date: "%Y-%m-%d" }}</td>
12
11
  <td><a href="{{ post.url }}">{{ post.title }}</a></td>
12
+ <td>{{ post.date | date: "%Y-%m-%d" }}</td>
13
13
  </tr>
14
14
  {% endfor %}
15
15
  </tbody>
@@ -1,4 +1,4 @@
1
- {% for post in site.posts | limit: 10 %}
1
+ {% for post in site.posts | limit: include.limit %}
2
2
  <article>
3
3
  <h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
4
4
  <p><em>{{ post.description }}</em></p>
@@ -1,15 +1,15 @@
1
1
  <table>
2
2
  <thead>
3
3
  <tr>
4
- <th>Date</th>
5
4
  <th>Title</th>
5
+ <th>Date</th>
6
6
  </tr>
7
7
  </thead>
8
8
  <tbody>
9
- {% for post in site.posts | limit: 10 %}
9
+ {% for post in site.posts | limit: include.limit %}
10
10
  <tr>
11
- <td>{{ post.date | date: "%Y-%m-%d" }}</td>
12
11
  <td><a href="{{ post.url }}">{{ post.title }}</a></td>
12
+ <td>{{ post.date | date: "%Y-%m-%d" }}</td>
13
13
  </tr>
14
14
  {% endfor %}
15
15
  </tbody>
@@ -0,0 +1,3 @@
1
+ <aside id="skip">
2
+ <a href="#content">Skip to Main Content</a>
3
+ </aside>
data/_layouts/base.html CHANGED
@@ -11,6 +11,8 @@
11
11
  {% seo %}
12
12
  </head>
13
13
  <body>
14
+ {% include skip.html %}
14
15
  {{ content }}
16
+ <link rel="stylesheet" type="text/css" href="/assets/print.css" />
15
17
  </body>
16
18
  </html>
@@ -3,7 +3,5 @@ layout: base
3
3
  ---
4
4
 
5
5
  {% include header.html %}
6
- <hr />
7
6
  {{ content }}
8
- <hr />
9
7
  {% include footer.html %}
data/_layouts/home.html CHANGED
@@ -3,9 +3,7 @@ layout: base
3
3
  ---
4
4
 
5
5
  {% include home-header.html %}
6
- <hr />
7
6
  <main id="content">
8
7
  {{ content }}
9
8
  </main>
10
- <hr />
11
9
  {% include home-footer.html %}
data/_layouts/page.html CHANGED
@@ -3,5 +3,6 @@ layout: default
3
3
  ---
4
4
 
5
5
  <main id="content">
6
+ <h1>{{ page.title }}</h1>
6
7
  {{ content }}
7
8
  </main>
data/_layouts/post.html CHANGED
@@ -10,7 +10,6 @@ layout: default
10
10
  <section>
11
11
  {{ content }}
12
12
  </section>
13
- <hr />
14
13
  <footer>
15
14
  <p>
16
15
  Thanks for reading.<br />
data/_sass/dark.scss CHANGED
@@ -43,6 +43,26 @@
43
43
  border: $border-thickness solid invert($fg-color);
44
44
  }
45
45
  }
46
+
47
+ nav {
48
+ p {
49
+ a {
50
+ border: $border-thickness solid invert($link-color);
51
+ }
52
+
53
+ a:hover {
54
+ border: $border-thickness solid invert($link-hover-color);
55
+ }
56
+
57
+ a:active {
58
+ border: $border-thickness solid invert($link-active-color);
59
+ }
60
+
61
+ a:visited {
62
+ border: $border-thickness solid invert($link-visited-color);
63
+ }
64
+ }
65
+ }
46
66
  }
47
67
  }
48
68
  }
data/_sass/main.scss CHANGED
@@ -11,6 +11,7 @@ html {
11
11
 
12
12
  a {
13
13
  color: $link-color;
14
+ text-underline-offset: $border-thickness * 1.5;
14
15
  }
15
16
 
16
17
  a:hover {
@@ -39,24 +40,45 @@ html {
39
40
 
40
41
  header {
41
42
  margin-bottom: 2rem;
43
+ padding-bottom: 1rem;
44
+ border-bottom: $border-thickness solid $fg-color;
42
45
  }
43
46
 
44
47
  footer {
45
48
  margin-top: 2rem;
49
+ padding-top: 1rem;
50
+ border-top: $border-thickness solid $fg-color;
46
51
  }
47
52
 
48
53
  nav {
54
+ margin-top: 1.5rem;
49
55
  p {
50
56
  a {
51
57
  margin-left: .5rem;
52
58
  margin-right: .5rem;
59
+ border: $border-thickness solid $link-color;
60
+ border-radius: .5rem;
61
+ padding: .5rem;
62
+ text-decoration: none;
63
+ }
64
+
65
+ a:hover {
66
+ border: $border-thickness solid $link-hover-color;
67
+ }
68
+
69
+ a:active {
70
+ border: $border-thickness solid $link-active-color;
71
+ }
72
+
73
+ a:visited {
74
+ border: $border-thickness solid $link-visited-color;
53
75
  }
54
76
  }
55
77
  }
56
78
 
57
79
  main {
58
80
  margin: 2rem auto;
59
- max-width: 40rem;
81
+ max-width: $content-width;
60
82
  padding: 0 .62rem;
61
83
 
62
84
  article {
@@ -70,7 +92,7 @@ html {
70
92
 
71
93
  article {
72
94
  margin: 2rem auto;
73
- max-width: 40rem;
95
+ max-width: $content-width;
74
96
  padding: 0 .62rem;
75
97
 
76
98
  header, footer {
@@ -82,12 +104,19 @@ html {
82
104
  margin: 2rem auto;
83
105
  }
84
106
 
85
- hr {
86
- border: $hr-border-thickness dashed $fg-color;
107
+ header {
108
+ margin-bottom: 1rem;
109
+ padding-bottom: 0;
110
+ border: none;
111
+ }
112
+
113
+ footer {
114
+ border-top: $hr-border-thickness dashed $fg-color;
87
115
  }
88
116
  }
89
117
 
90
118
  blockquote {
119
+ font-size: 1.2rem;
91
120
  margin: 2rem 4rem;
92
121
  padding: 0 1rem;
93
122
  border-left: $border-thickness solid $fg-color;
@@ -98,6 +127,17 @@ html {
98
127
  }
99
128
  }
100
129
 
130
+ dl {
131
+ dt {
132
+ font-size: 1.1rem;
133
+ font-weight: bold;
134
+ }
135
+
136
+ dd {
137
+ margin-bottom: 1.1rem;
138
+ }
139
+ }
140
+
101
141
  hr {
102
142
  border: $hr-border-thickness solid $fg-color;
103
143
  }
data/_sass/paper.scss ADDED
@@ -0,0 +1,66 @@
1
+ @media print {
2
+ html, body {
3
+ font: 12pt/1.3 serif !important;
4
+ background: $bg-color !important;
5
+ color: $fg-color !important;
6
+ }
7
+
8
+ body {
9
+ header {
10
+ display: none;
11
+ }
12
+
13
+ footer {
14
+ nav {
15
+ display: none;
16
+ }
17
+ }
18
+
19
+ a, a:hover, a:active, a:visited {
20
+ color: $fg-color !important;
21
+ }
22
+ }
23
+
24
+
25
+ main, article {
26
+ width: 100%;
27
+ max-width: 100%;
28
+ margin: 0;
29
+ float: none;
30
+ }
31
+
32
+ h1 {
33
+ font-size: 2rem;
34
+ }
35
+
36
+ h2, h3, h4 {
37
+ font-size: 1.2rem;
38
+ margin-top: 2rem;
39
+ }
40
+
41
+ a {
42
+ page-break-inside: avoid
43
+ }
44
+
45
+ blockquote {
46
+ page-break-inside: avoid;
47
+ }
48
+
49
+ h1, h2, h3, h4, h5, h6 {
50
+ page-break-after: avoid;
51
+ page-break-inside: avoid
52
+ }
53
+
54
+ img {
55
+ page-break-inside: avoid;
56
+ page-break-after: avoid;
57
+ }
58
+
59
+ table, pre {
60
+ page-break-inside: avoid
61
+ }
62
+
63
+ ul, ol, dl {
64
+ page-break-before: avoid
65
+ }
66
+ }
data/_sass/skip.scss ADDED
@@ -0,0 +1,16 @@
1
+ #skip a
2
+ {
3
+ position: absolute;
4
+ left: -10000px;
5
+ top: auto;
6
+ width: 1px;
7
+ height: 1px;
8
+ overflow: hidden;
9
+ }
10
+
11
+ #skip a:focus
12
+ {
13
+ position: static;
14
+ width: auto;
15
+ height: auto;
16
+ }
data/_sass/variables.scss CHANGED
@@ -6,3 +6,4 @@ $link-active-color: #20603C;
6
6
  $link-visited-color: #550000;
7
7
  $border-thickness: 2px;
8
8
  $hr-border-thickness: 1px;
9
+ $content-width: 40rem;
data/assets/print.scss ADDED
@@ -0,0 +1,5 @@
1
+ ---
2
+ ---
3
+
4
+ @import "variables";
5
+ @import "paper";
data/assets/style.scss CHANGED
@@ -3,4 +3,5 @@
3
3
 
4
4
  @import "variables";
5
5
  @import "main";
6
+ @import "skip";
6
7
  @import "dark";
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-oedipus-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Graybosch
@@ -106,12 +106,14 @@ files:
106
106
  - _includes/header.html
107
107
  - _includes/home-footer.html
108
108
  - _includes/home-header.html
109
+ - _includes/license.html
109
110
  - _includes/navbar.html
110
111
  - _includes/navlist.html
111
112
  - _includes/posts-list.html
112
113
  - _includes/posts-table.html
113
114
  - _includes/recent-posts-list.html
114
115
  - _includes/recent-posts-table.html
116
+ - _includes/skip.html
115
117
  - _layouts/base.html
116
118
  - _layouts/default.html
117
119
  - _layouts/home.html
@@ -119,9 +121,12 @@ files:
119
121
  - _layouts/post.html
120
122
  - _sass/dark.scss
121
123
  - _sass/main.scss
124
+ - _sass/paper.scss
125
+ - _sass/skip.scss
122
126
  - _sass/variables.scss
123
127
  - assets/favicon.ico
124
128
  - assets/favicon.svg
129
+ - assets/print.scss
125
130
  - assets/style.scss
126
131
  homepage: https://github.com/matthewgraybosch/jekyll-oedipus-theme
127
132
  licenses:
@@ -135,7 +140,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
135
140
  requirements:
136
141
  - - ">="
137
142
  - !ruby/object:Gem::Version
138
- version: '0'
143
+ version: '2.7'
139
144
  required_rubygems_version: !ruby/object:Gem::Requirement
140
145
  requirements:
141
146
  - - ">="