jekyll-theme-low 1.3.1 → 1.3.4

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: 1dd2772921a98acd512bc0ce8c876ec2080a3ed7d31cc7fd550a72361147f04f
4
- data.tar.gz: 6e510b6feb6a336131edd3697258957f83cb60c69e42d2b369867b2f0ef7f3a5
3
+ metadata.gz: 3a2fb909e894dd5537eb131afbd179a47037f8dc25d6f441ccf6fa14cbffb86a
4
+ data.tar.gz: d2a2588928d18f27c9f65a00116fed54f507f17159d31d3c77b9c53ae4cedf11
5
5
  SHA512:
6
- metadata.gz: da7d0d7c3a5f7ebf8a14c1c7141d42557912d01c671c3205fe27e80573d5496ea01c098fbcb71da2e94b033f22f66ec881491120f95f6465e3924e4f9ca9ea0d
7
- data.tar.gz: 7d7da572c7613ff8942f1bc7fa9d57e7d868f5f7fc96190775485a05bcf4d1cb107d66dab3b4d6321b0ddbaf7d0dd8acc7a897892f088fc9edb5c37339db3f3d
6
+ metadata.gz: 715a70e6ae5c54d3784f4773eddc358ef41bccdd35417b6e7451cd61864702a8b3217704cb839aa996a40e45da39f6d3c3d6203a93a6e4dc5d030b64b4d72223
7
+ data.tar.gz: 5978f8103083ce8355945eeaa4a88f4a7c3c52f3b8576a692733f65c6d06923ea82e7a80cf13604a50db8cb9e234434cb10cc725c9c6356626a6fbaed59893c8
data/_includes/head.html CHANGED
@@ -8,21 +8,14 @@
8
8
  <link rel="icon" href="{{ site.favicon | relative_url }}">
9
9
  {% endif %}
10
10
 
11
+ {% if site.apple_touch_icon %}
12
+ <link rel="apple-touch-icon" sizes="180x180" href="{{ site.apple_touch_icon | relative_url }}">
13
+ {% endif %}
14
+
11
15
  <link rel="alternate" type="application/rss+xml" title="{{ site.title }} RSS" href="{{ site.feed.path | default: '/rss.xml' | relative_url }}">
12
16
 
13
17
  {% seo %}
14
18
 
15
- {% assign post_image = page.image | default: site.image %}
16
- {% if post_image %}
17
- {% unless post_image contains "://" %}
18
- {% assign post_image = post_image | absolute_url %}
19
- {% endunless %}
20
- <meta property="og:image" content="{{ post_image }}">
21
- <meta name="twitter:image" content="{{ post_image }}">
22
- {% endif %}
23
-
24
- <meta name="twitter:description" content="{{ page.description | default: site.description | strip_html | truncate: 160 }}">
25
-
26
19
  {% if page.layout == 'post' %}
27
20
  <script type="application/ld+json">
28
21
  {
@@ -1,7 +1,9 @@
1
- <p style="text-align:left; margin-bottom:1ch;">
1
+ <ul class="post-list">
2
2
  {% assign posts_sorted = include.posts | default: site.posts | sort: "date" | reverse %}
3
3
  {% for post in posts_sorted %}
4
- {{ post.date | date: "%d/%m/%Y" }}:
5
- <a href="{{ post.url | relative_url }}">{{ post.title }}</a><br>
4
+ <li>
5
+ <time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%d/%m/%Y" }}</time>
6
+ &mdash; <a href="{{ post.url | relative_url }}">{{ post.title }}</a>.
7
+ </li>
6
8
  {% endfor %}
7
- </p>
9
+ </ul>
@@ -2,18 +2,16 @@
2
2
  {% assign reading_time = words | divided_by: 200 %}
3
3
  {% if reading_time == 0 %}{% assign reading_time = 1 %}{% endif %}
4
4
 
5
- <p class="meta" style="margin:0 0 2ch 0; opacity:.8;">
6
- <time datetime="{{ page.date | date_to_xmlschema }}">
7
- {{ page.date | date: "%d/%m/%Y" }}
8
- </time>
9
- · {{ reading_time }} min read
5
+ <p class="meta">
6
+ <time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%d/%m/%Y" }}</time>
7
+ &middot; {{ reading_time }} min read
10
8
  {% if page.categories and page.categories.size > 0 %}
11
- · {{ page.categories | array_to_sentence_string }}
9
+ &middot; {{ page.categories | array_to_sentence_string }}
12
10
  {% endif %}
13
11
  {% if page.tags and page.tags.size > 0 %}
14
- · tags:
12
+ &middot; tags:
15
13
  {% for tag in page.tags %}
16
- <a class="tag-link" href="{{ site.baseurl }}/tags/{{ tag | slugify }}/">{{ tag }}</a>{% unless forloop.last %},{% endunless %}
14
+ <a class="tag-link" href="{{ '/tags/' | append: tag | slugify | relative_url }}/">{{ tag }}</a>{% unless forloop.last %},{% endunless %}
17
15
  {% endfor %}
18
16
  {% endif %}
19
17
  </p>
@@ -1,19 +1,14 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
- <div class="heading">Archive</div>
4
+ <h1 class="heading">Archive</h1>
5
5
  <hr>
6
6
 
7
7
  {% assign grouped = site.posts | group_by_exp: 'post', 'post.date | date: "%Y"' %}
8
8
  {% assign grouped = grouped | sort: 'name' | reverse %}
9
9
  {% for year in grouped %}
10
- <h2 style="margin-top:2ch;">{{ year.name }}</h2>
10
+ <h2 class="heading">{{ year.name }}</h2>
11
11
  <hr>
12
- <p style="text-align:left; margin-bottom:1ch;">
13
- {% assign posts_sorted = year.items | sort: "date" | reverse %}
14
- {% for post in posts_sorted %}
15
- {{ post.date | date: "%d/%m/%Y" }}:
16
- <a href="{{ post.url | relative_url }}">{{ post.title }}</a><br>
17
- {% endfor %}
18
- </p>
12
+ {% assign posts_sorted = year.items | sort: "date" | reverse %}
13
+ {% include post-list.html posts=posts_sorted %}
19
14
  {% endfor %}
@@ -8,11 +8,9 @@ layout: nil
8
8
  </head>
9
9
  <body>
10
10
  {% include header.html %}
11
- <div style="margin-bottom: 2ch; text-transform: none;"></div>
12
11
  <main class="container">
13
12
  {{ content }}
14
13
  </main>
15
14
  {% include footer.html %}
16
15
  </body>
17
16
  </html>
18
-
data/_layouts/home.html CHANGED
@@ -1,20 +1,11 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
- <h1 class="heading">{{ site.tagline | default: site.title }}</h1>
4
+ <h1 class="heading">{{ site.title }}</h1>
5
5
  <hr>
6
-
7
- <p>{{ site.description }}</p>
8
-
9
6
  {{ content }}
10
-
11
7
  <h2 class="heading">Articles</h2>
12
8
  <hr>
13
9
  {% include post-list.html %}
14
-
15
- <h2 class="heading">Projects</h2>
16
10
  <hr>
17
- Ongoing… <a href="{{ '/projects/' | relative_url }}">Projects</a>
18
-
19
- <hr>
20
- <center><span class="sun">*</span></center>
11
+ <div class="sun-rule"><span class="sun">*</span></div>
data/_layouts/post.html CHANGED
@@ -33,36 +33,26 @@ layout: default
33
33
  {% endfor %}
34
34
 
35
35
  {% if related_posts.size > 0 %}
36
- <h2 class="heading">Related Articles</h2>
37
- <hr>
38
- <p style="text-align:left; margin-bottom:1ch;">
39
- {% for post in related_posts limit: 3 %}
40
- {{ post.date | date: "%d/%m/%Y" }}: <a href="{{ post.url | relative_url }}">{{ post.title }}</a><br>
41
- {% endfor %}
42
- </p>
36
+ {% assign shown = related_posts | slice: 0, 3 %}
37
+ <h2 class="heading">Related Articles</h2>
38
+ <hr>
39
+ {% include post-list.html posts=shown %}
43
40
  {% elsif site.posts.size > 1 %}
44
- <h2 class="heading">More Articles</h2>
45
- <hr>
46
- <p style="text-align:left; margin-bottom:1ch;">
47
- {% assign other_count = 0 %}
48
- {% for post in site.posts %}
49
- {% if post.url != page.url and other_count < 3 %}
50
- {{ post.date | date: "%d/%m/%Y" }}: <a href="{{ post.url | relative_url }}">{{ post.title }}</a><br>
51
- {% assign other_count = other_count | plus: 1 %}
52
- {% endif %}
53
- {% endfor %}
54
- </p>
41
+ {% assign others = site.posts | where_exp: "post", "post.url != page.url" | slice: 0, 3 %}
42
+ <h2 class="heading">More Articles</h2>
43
+ <hr>
44
+ {% include post-list.html posts=others %}
55
45
  {% endif %}
56
46
 
57
- <nav class="post-nav" style="display:flex; justify-content:space-between; margin-top:2ch;">
47
+ <nav class="post-nav">
58
48
  <div class="prev">
59
49
  {% if page.previous %}
60
- <a href="{{ page.previous.url | relative_url }}">{{ page.previous.title }}</a>
50
+ &larr; <a href="{{ page.previous.url | relative_url }}">{{ page.previous.title }}</a>
61
51
  {% endif %}
62
52
  </div>
63
- <div class="next" style="text-align:right;">
53
+ <div class="next">
64
54
  {% if page.next %}
65
- <a href="{{ page.next.url | relative_url }}">{{ page.next.title }}</a>
55
+ <a href="{{ page.next.url | relative_url }}">{{ page.next.title }}</a> &rarr;
66
56
  {% endif %}
67
57
  </div>
68
58
  </nav>
data/_layouts/tag.html CHANGED
@@ -1,13 +1,11 @@
1
1
  ---
2
2
  layout: default
3
3
  ---
4
- <h1>TAG: {{ page.tag | upcase }}</h1>
4
+ <h1 class="heading">Tag: {{ page.tag | upcase }}</h1>
5
5
  <hr>
6
6
  {% assign tagged_posts = site.posts | where_exp: "post", "post.tags contains page.tag" %}
7
7
  {% if tagged_posts.size == 0 %}
8
8
  <p>No posts found.</p>
9
9
  {% else %}
10
- {% for post in tagged_posts %}
11
- {% include post-list.html %}
12
- {% endfor %}
10
+ {% include post-list.html posts=tagged_posts %}
13
11
  {% endif %}
data/assets/css/main.scss CHANGED
@@ -27,11 +27,11 @@
27
27
  BASE RESET
28
28
  =============================== */
29
29
  * {
30
- font-size: 16px;
31
30
  box-sizing: border-box;
32
31
  }
33
32
 
34
33
  html {
34
+ font-size: 16px;
35
35
  font-family: 'fabfont', 'DejaVu Sans Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
36
36
  max-width: 900px;
37
37
  margin: 0 auto;
@@ -45,6 +45,20 @@ html {
45
45
  body {
46
46
  margin: 0;
47
47
  padding: 0;
48
+ font-size: 1rem;
49
+ }
50
+
51
+ p, li, dt, dd, td, th, figcaption, label, small, blockquote {
52
+ font-size: 1rem;
53
+ }
54
+
55
+ input, button, select, textarea {
56
+ font: inherit;
57
+ color: inherit;
58
+ }
59
+
60
+ main.container {
61
+ margin-top: 2ch;
48
62
  }
49
63
 
50
64
  /* ===============================
@@ -72,23 +86,25 @@ sup {
72
86
  /* ===============================
73
87
  HEADINGS
74
88
  =============================== */
75
- div.heading {
89
+ h1, h2, h3, h4, h5, h6, .heading {
76
90
  font-weight: bold;
77
91
  text-transform: uppercase;
78
92
  margin-top: 4ch;
79
93
  }
80
94
 
81
- h1, h2, h3, h4 {
82
- font-weight: bold;
83
- text-transform: uppercase;
84
- margin-top: 4ch;
85
- }
95
+ h1 { font-size: 1.6rem; }
96
+ h2 { font-size: 1.35rem; }
97
+ h3 { font-size: 1.15rem; }
98
+ h4 { font-size: 1rem; }
99
+ h5 { font-size: 1rem; }
100
+ h6 { font-size: 1rem; }
86
101
 
87
102
  /* ===============================
88
103
  CODE & PRE BLOCKS
89
104
  =============================== */
90
- pre, code {
91
- font-family: 'fabfont', monospace;
105
+ pre, code, kbd, samp, tt {
106
+ font-family: 'fabfont', 'DejaVu Sans Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
107
+ font-size: 1rem;
92
108
  }
93
109
 
94
110
  pre {
@@ -106,12 +122,16 @@ code {
106
122
  font-weight: bold;
107
123
  }
108
124
 
109
- /* Inline code inside pre shouldn't have double background */
110
125
  pre code {
111
126
  background: none;
112
127
  padding: 0;
113
128
  border-radius: 0;
114
129
  font-weight: normal;
130
+ font-size: inherit;
131
+ }
132
+
133
+ h1 code, h2 code, h3 code, h4 code, h5 code, h6 code {
134
+ font-size: inherit;
115
135
  }
116
136
 
117
137
  /* ===============================
@@ -135,7 +155,6 @@ img.pixel, canvas.pixel {
135
155
  image-rendering: crisp-edges;
136
156
  }
137
157
 
138
- /* For blog images inside posts */
139
158
  .post img,
140
159
  article img {
141
160
  border: 1px solid black;
@@ -166,6 +185,10 @@ blockquote div {
166
185
  padding: 0 2px;
167
186
  }
168
187
 
188
+ .sun-rule {
189
+ text-align: center;
190
+ }
191
+
169
192
  /* ===============================
170
193
  TRIVIA BLOCK
171
194
  =============================== */
@@ -188,14 +211,14 @@ blockquote div {
188
211
  margin-top: 4ch;
189
212
  margin-bottom: 2ch;
190
213
  opacity: 0.7;
191
- font-size: 0.9em;
214
+ font-size: 0.9rem;
192
215
  }
193
216
 
194
217
  /* ===============================
195
218
  RESPONSIVE
196
219
  =============================== */
197
220
  @media (max-width: 500px) {
198
- * {
221
+ html {
199
222
  font-size: 12px;
200
223
  }
201
224
  }
@@ -272,3 +295,44 @@ nav.post-nav a {
272
295
  /* ===============================
273
296
  SYTAX STYLE END
274
297
  =============================== */
298
+
299
+ /* ===============================
300
+ POST LISTS
301
+ =============================== */
302
+ .post-list,
303
+ .tag-list {
304
+ list-style: none;
305
+ padding-left: 0;
306
+ margin: 0 0 1ch 0;
307
+ }
308
+
309
+ .post-list li,
310
+ .tag-list li {
311
+ margin-bottom: 0.5ch;
312
+ }
313
+
314
+ .post-list time {
315
+ white-space: nowrap;
316
+ }
317
+
318
+ /* ===============================
319
+ POST META
320
+ =============================== */
321
+ p.meta {
322
+ margin: 0 0 2ch 0;
323
+ opacity: .8;
324
+ }
325
+
326
+ /* ===============================
327
+ POST NAV LAYOUT
328
+ =============================== */
329
+ nav.post-nav {
330
+ display: flex;
331
+ justify-content: space-between;
332
+ gap: 2ch;
333
+ margin-top: 2ch;
334
+ }
335
+
336
+ nav.post-nav .next {
337
+ text-align: right;
338
+ }
data/lib/low/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  module Low
3
- VERSION = "1.3.1"
3
+ VERSION = "1.3.4"
4
4
  end
5
5
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-low
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Levent Kaya