jekyll-theme-hamilton 0.2.1 → 1.0.0

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: 5f249693147fe84b3daec97be5eced96d45f3f8bd49bb539232e37928d54546a
4
- data.tar.gz: 83e131e6b92b3e83e7249f4b945fb68bd7a263fba27a391a4f13e41307d50979
3
+ metadata.gz: 0a6b59699830a2080fb59cdbca897d67525267787589e144aa36c6a2816e37d1
4
+ data.tar.gz: 416c614671b59ee0bac70087605215af75b32d242c4b4b6eabd6d9ab15eddcc1
5
5
  SHA512:
6
- metadata.gz: 2d3342f2f17ce90b1e2ebc310ddf45b8978b181d94be59ab2e0937b6877b7ca52a0f224ee4a20d6cfd3202ced9a60898ff8b5620c1d2c4e26672d33630176a8a
7
- data.tar.gz: e5099f913e02e14f47a961f086437cc2b6a18a2708c049a983be665003c436f0375ddf1edab2e26dcba9124a4e2c952bbce2ef2d514b71ebbae56f02c1e610d0
6
+ metadata.gz: e6faabfcbdd0720732955aad14f7f3b8a9118ea92074739003c6b33a90d955b7c30755f4c2c67bc479dd4b47339f234c5907786e8d005e35faee361d94a54805
7
+ data.tar.gz: 3160d0962cd6abd080997910db9a6750cbd7141711620df854d79c6db7e0495cf0f66374e05065b0975abd2239d04360b3fce88920c796ed49745644f1c0e33c
data/_layouts/home.html CHANGED
@@ -13,21 +13,18 @@ layout: default
13
13
  {% endif %}
14
14
 
15
15
  {%- if posts.size > 0 -%}
16
- {%- if page.list_title -%}
17
- <h2 class="post-list-heading">{{ page.list_title }}</h2>
18
- {%- endif -%}
19
16
  <ul class="post-list">
20
17
  {%- assign date_format = site.date_format | default: "%b %-d, %Y" -%}
21
18
  {%- for post in posts -%}
22
19
  <li>
23
- <h3>
20
+ <h2>
24
21
  <a class="post-link" href="{{ post.url | relative_url }}">
25
22
  {{ post.title | escape }}
26
23
  </a>
27
- </h3>
24
+ </h2>
28
25
  <span class="post-meta">{{ post.date | date: date_format }}</span>
29
- {%- if page.show_excerpts != false -%}
30
- <p>{{ post.excerpt }}</p>
26
+ {%- if post.show_excerpts != false -%}
27
+ <div class="post-excerpt">{{ post.excerpt }}</div>
31
28
  {%- endif -%}
32
29
  </li>
33
30
  {%- endfor -%}
@@ -121,29 +121,36 @@
121
121
  margin-top: $spacing-unit;
122
122
  }
123
123
 
124
- .post-list-heading {
125
- @include relative-font-size(1.75);
126
- }
127
-
128
124
  .post-list {
129
125
  margin-left: 0;
130
126
  padding-left: 0;
131
127
  list-style: none;
132
128
 
133
129
  li {
130
+ padding-top: $spacing-unit / 2;
134
131
  padding-bottom: $spacing-unit / 2;
135
132
  border-bottom: 1px solid;
136
- margin-bottom: 2 * $spacing-unit;
133
+ margin-bottom: $spacing-unit;
134
+
135
+ h2 {
136
+ margin-bottom: 0;
137
+ }
138
+
139
+ .post-excerpt {
140
+ margin-top: $spacing-unit / 2;
141
+
142
+ p {
143
+ margin-bottom: 0;
144
+ }
145
+ }
137
146
  }
138
147
  }
139
148
 
140
149
  .post-link {
141
- display: block;
142
- line-height: $base-line-height * $base-font-size * 2;
143
- @include relative-font-size(2);
150
+ @include relative-font-size(1.5);
144
151
 
145
152
  @media screen and (min-width: $on-large) {
146
- @include relative-font-size(2.236);
153
+ @include relative-font-size(1.55);
147
154
  }
148
155
  }
149
156
 
@@ -198,8 +205,8 @@
198
205
  margin-right: $spacing-unit / 2;
199
206
  }
200
207
 
201
- // Formula of calculating the relative font size of hn: 1 + 2 * 0.618^n
202
208
 
209
+ // About font sizes for h1-h6, refer to https://stackoverflow.com/a/6140504/13261366
203
210
  .post-title,
204
211
  .post-content h1 {
205
212
  @include relative-font-size(2);
@@ -208,7 +215,7 @@
208
215
  line-height: $base-line-height * $base-font-size * 2;
209
216
 
210
217
  @media screen and (min-width: $on-large) {
211
- @include relative-font-size(2.236);
218
+ @include relative-font-size(2.5);
212
219
  }
213
220
  }
214
221
 
@@ -221,31 +228,31 @@
221
228
  h5, h6 { margin-top: $spacing-unit }
222
229
 
223
230
  h2 {
224
- @include relative-font-size(1.6);
231
+ @include relative-font-size(1.5);
225
232
 
226
233
  @media screen and (min-width: $on-large) {
227
- @include relative-font-size(1.764);
234
+ @include relative-font-size(1.55);
228
235
  }
229
236
  }
230
237
 
231
238
  h3 {
232
- @include relative-font-size(1.4);
239
+ @include relative-font-size(1.17);
233
240
 
234
241
  @media screen and (min-width: $on-large) {
235
- @include relative-font-size(1.472);
242
+ @include relative-font-size(1.175);
236
243
  }
237
244
  }
238
245
 
239
246
  h4 {
240
- @include relative-font-size(1.292);
247
+ @include relative-font-size(1.12);
241
248
  }
242
249
 
243
250
  h5 {
244
- @include relative-font-size(1.18);
251
+ @include relative-font-size(0.83);
245
252
  }
246
253
 
247
254
  h6 {
248
- @include relative-font-size(1.111);
255
+ @include relative-font-size(0.75);
249
256
  }
250
257
  }
251
258
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-hamilton
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shangzhi Huang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-20 00:00:00.000000000 Z
11
+ date: 2020-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll