jekyll-whiteglass 1.5.0 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f945fe5fdeebb7c7735e5ac97d67d9f42a3940158cce71a345f210871061ee5d
4
- data.tar.gz: daec61afd0ec7015372173ebc435359787c6f20b31b9117180cba3689c919de7
3
+ metadata.gz: d9009cb05943048fffbf23fcaf8cc1887461b472c99f5ecc60c6500c1810370f
4
+ data.tar.gz: 33fd5d03e5fa3274fb3975ad1df628249171b25e15f62491928e0336e2268720
5
5
  SHA512:
6
- metadata.gz: bfa7ecf365fcabb0acf46080e2f21b99bb9c0680025a88ccadd4df22e2c8f4453e8182358bccb7f58369481665688b1ec5a3d7cf7f4821e420d711bb2d3e5efd
7
- data.tar.gz: d70c55727ccb6950be7c979910d946a17873c2921f300432d534b6241c4a20d42ed6dd2ed53ad6b138816fb5e05188f2e3d5482740702e4aab072959b13db400
6
+ metadata.gz: eb258c0441820890a8f4b9707bdfc1c03ce53dda6c7ac56bb8e8c302c5bf3beb6565ec8ea943e4048ac3544cd76447d2f4bbdea2092ed61ea759600954d4f55a
7
+ data.tar.gz: 12c0fe374e54bcaf9e326a9c49e23674cf9ee581d6620dff533cd2fae6a898e8eb0c486c0b77030f98ae18eb60c451e4f224527132b8214369b42f712d9e7b14
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # ChangeLog
2
2
 
3
+ ## 1.6.0 (2018-04-09)
4
+
5
+ - Appropriately size h1s in the post body (#19)
6
+ - Update code for Web Font Loader
7
+ - Link external URL directly for each post (#20)
8
+
3
9
  ## 1.5.0 (2017-12-27)
4
10
 
5
11
  - Support tags (#17)
data/README.md CHANGED
@@ -53,7 +53,7 @@ gem install jekyll-whiteglass
53
53
 
54
54
  ``` yaml
55
55
  theme: jekyll-whiteglass
56
- gems:
56
+ plugins:
57
57
  - jekyll-archives
58
58
  - jekyll-paginate
59
59
  - jekyll-sitemap
data/_includes/fonts.html CHANGED
@@ -2,13 +2,10 @@
2
2
  WebFontConfig = {
3
3
  google: { families: [ 'Bitter:400,700,400italic:latin' ] }
4
4
  };
5
- (function() {
6
- var wf = document.createElement('script');
7
- wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
8
- '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
9
- wf.type = 'text/javascript';
10
- wf.async = 'true';
11
- var s = document.getElementsByTagName('script')[0];
5
+ (function(d) {
6
+ var wf = d.createElement('script'), s = d.scripts[0];
7
+ wf.src = 'https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js';
8
+ wf.async = true;
12
9
  s.parentNode.insertBefore(wf, s);
13
- })();
10
+ })(document);
14
11
  </script>
@@ -19,10 +19,19 @@ layout: default
19
19
  {{ post.date | date: "%b %-d, %Y" }}
20
20
  {% if post.categories != empty or post.tags != empty %}
21
21
  {% include category_links.html categories=post.categories tags=post.tags %}
22
- {% endif %}</span>
22
+ {% endif %}
23
+ {% if post.external-url %}
24
+ • <a href="{{ post.url | relative_url }}">Permalink</a>
25
+ {% endif %}
26
+ </span>
23
27
 
24
28
  <h2>
25
- <a class="post-link" href="{{ post.url | relative_url }}"{% if lang != empty %} lang="{{ lang }}"{% endif %}>{{ post.title | escape }}{% if post.external-url %} &rarr;{% endif %}</a>
29
+ {% capture link_lang %}{% if lang != empty %} lang="{{ lang }}"{% endif %}{% endcapture %}
30
+ {% if post.external-url %}
31
+ <a class="post-link" href="{{ post.external-url }}"{{ link_lang }}>{{ post.title | escape }} &rarr;</a>
32
+ {% else %}
33
+ <a class="post-link" href="{{ post.url | relative_url }}"{{ link_lang }}>{{ post.title | escape }}</a>
34
+ {% endif %}
26
35
  </h2>
27
36
  </li>
28
37
  {% endfor %}
@@ -17,10 +17,19 @@ layout: default
17
17
  {{ post.date | date: "%b %-d, %Y" }}
18
18
  {% if post.categories != empty or post.tags != empty %}
19
19
  {% include category_links.html categories=post.categories tags=post.tags %}
20
- {% endif %}</span>
20
+ {% endif %}
21
+ {% if post.external-url %}
22
+ • <a href="{{ post.url | relative_url }}">Permalink</a>
23
+ {% endif %}
24
+ </span>
21
25
 
22
26
  <h2>
23
- <a class="post-link" href="{{ post.url | relative_url }}"{% if lang != empty %} lang="{{ lang }}"{% endif %}>{{ post.title | escape }}{% if post.external-url %} &rarr;{% endif %}</a>
27
+ {% capture link_lang %}{% if lang != empty %} lang="{{ lang }}"{% endif %}{% endcapture %}
28
+ {% if post.external-url %}
29
+ <a class="post-link" href="{{ post.external-url }}"{{ link_lang }}>{{ post.title | escape }} &rarr;</a>
30
+ {% else %}
31
+ <a class="post-link" href="{{ post.url | relative_url }}"{{ link_lang }}>{{ post.title | escape }}</a>
32
+ {% endif %}
24
33
  </h2>
25
34
  </li>
26
35
  {% endfor %}
data/_layouts/feed.xml CHANGED
@@ -43,7 +43,12 @@ layout: null
43
43
  {% else %}
44
44
  <title type="html">{{ post.title | smartify | strip_html | normalize_whitespace | xml_escape }}</title>
45
45
  {% endif %}
46
+ {% if post.external-url %}
47
+ <link href="{{ post.external-url }}" rel="alternate" type="text/html" />
48
+ <link href="{{ post.url | absolute_url }}" rel="related" type="text/html" title="{{ post.title | xml_escape }}" />
49
+ {% else %}
46
50
  <link href="{{ post.url | absolute_url }}" rel="alternate" type="text/html" title="{{ post.title | xml_escape }}" />
51
+ {% endif %}
47
52
  <published>{{ post.date | date_to_xmlschema }}</published>
48
53
  <updated>{{ post.last_modified_at | default: post.date | date_to_xmlschema }}</updated>
49
54
  <id>{{ post.id | absolute_url | xml_escape }}</id>
data/_layouts/home.html CHANGED
@@ -16,10 +16,22 @@ layout: default
16
16
  <li{% if lang != empty %} lang="{{ lang }}"{% endif %}>
17
17
  <header class="post-header">
18
18
  <h1 class="post-title">
19
- <a class="post-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}{% if post.external-url %} &rarr;{% endif %}</a>
19
+ {% if post.external-url %}
20
+ <a class="post-link" href="{{ post.external-url }}">{{ post.title | escape }} &rarr;</a>
21
+ {% else %}
22
+ <a class="post-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
23
+ {% endif %}
20
24
  </h1>
21
25
 
22
- <p class="post-meta">{{ post.date | date: "%b %-d, %Y" }}{% if post.categories != empty or post.tags != empty %}{% include category_links.html categories=post.categories tags=post.tags %}{% endif %}</p>
26
+ <p class="post-meta">
27
+ {{ post.date | date: "%b %-d, %Y" }}
28
+ {% if post.categories != empty or post.tags != empty %}
29
+ {% include category_links.html categories=post.categories tags=post.tags %}
30
+ {% endif %}
31
+ {% if post.external-url %}
32
+ • <a href="{{ post.url | relative_url }}">Permalink</a>
33
+ {% endif %}
34
+ </p>
23
35
  </header>
24
36
 
25
37
  <div class="post-content">
@@ -160,6 +160,14 @@
160
160
  .post-content {
161
161
  margin-bottom: $spacing-unit;
162
162
 
163
+ h1 {
164
+ font-size: 38px;
165
+
166
+ @include media-query($on-laptop) {
167
+ font-size: 34px;
168
+ }
169
+ }
170
+
163
171
  h2 {
164
172
  font-size: 32px;
165
173
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-whiteglass
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chayoung You
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-27 00:00:00.000000000 Z
11
+ date: 2018-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -146,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  version: '0'
147
147
  requirements: []
148
148
  rubyforge_project:
149
- rubygems_version: 2.7.3
149
+ rubygems_version: 2.7.6
150
150
  signing_key:
151
151
  specification_version: 4
152
152
  summary: Minimal, responsive Jekyll theme for hackers.